Ach!! I entered a small mistake in test2.ly. Here it is the correct one.

On 11 January 2018 at 12:53, Gianmaria Lari <gianmarial...@gmail.com> wrote:

> On 11 January 2018 at 11:25, Sebastian Menge <s.me...@gmx.de> wrote:
>
>> Thanks Gianmaria, thanks for this. VerY interesting! The output looks
>> good, but I would to change it a bit. I have to learn a little scheme for
>> this as it seems.
>>
>> Btw: I have frequent challenges when writing for accordion and wonder if
>> I am the only one. Examples are:
>>
>> - Registers (current module can be improved)
>> - Stradella bass
>> - Specific signs for bellows related stuff like signs for changing
>> pull/push (like breathing), Vibrato, Bellowsshake
>>
>> Are there instrument specific sub communities ??
>>
>> Thanks, Sebastian!
>>
>
> Ciao Sebastian,
>
> I have very modest competence in lilypond. I have rewritten many pieces
> for accordion with lilypond but just for my personal use (well, not really
> for me, for my daughter). My first interest is about midi output and this
> is surely not the first lilypond goal. Anyway, regarding your questions: I
> wrote something to make easier writing using "standard" bass accordion
> notation for stradella bass system. It is in the attached file
> AccordionStandardBass.ly.
>
> The file test2.ly is an example.
>
> The basic idea was write just one command to generate the "standard" bass
> accordion notation for chords and also generate the corresponding midi
> output.
> For example this code:
>
>   \xco \xcM \removeWithTag #'chordLetter {\xcM \xcM }
>
> will render this:
>
> [image: Inline images 1]
>
> and at the same time generate this midi output
>
> [image: Inline images 2]
>
> My solution has a lot of limitations but it works for what I need. And
> today I could probably improve it. Sorry also for the naming (xco, xcM etc.
> etc.). These should also be refactored.
>
> Try it, if you're interested I will be happy to explain more and better,
> how to use it.
>
> Best regards, g.
> P.S. Sorry if I put the image "in the email" and I didn't attached them.
> Let me know if this is always a bad netiquette. I found it much more
> practical for the readers having text and related image near each other.
>
>
>
\version "2.19.80"
\include "AccordionStandardBass.ly"


rh = \fixed c' {
  \time 3/4
  \tempo 4=150
  \repeat unfold 10 r2.
}

lh = \fixed c {
  \clef bass
  <>4_4 \xco <>4_3 \xcM \removeWithTag #'chordLetter \xcM
  <>4 \cf 4 \xeo <>4_3 \xcM \removeWithTag #'chordLetter \xcM
  <>4 \cf 4 \xeo <>4_3 \xcM \removeWithTag #'chordLetter \xcM
  <>4_4 \xco <>4_3 \xcM \removeWithTag #'chordLetter \xcM
  <>4_3 \xdo <>4_2 \xgs \removeWithTag #'chordLetter \xgs
  <>4_4 \xgo <>4_2 \xgs \removeWithTag #'chordLetter \xgs
  <>4 \cf 4 \xbo <>4_2 \xgs \removeWithTag #'chordLetter \xgs
  <>4_4 \xgo <>4_2 \xgs \removeWithTag #'chordLetter \xgs
  <>4_4 \xco <>4_3 \xcM \removeWithTag #'chordLetter \xcM
  <>4_2 \xgo <>4_3 \xcM \removeWithTag #'chordLetter \xcM
}


\score 
{  
  \new PianoStaff 
  <<
    \new Staff = "right" {\rh}    
    \new Staff = "left"  {\keepWithTag #'screenOut \lh}
  >>
  \layout { }
}

\score {
  \new PianoStaff 
  <<
    \new Staff = "right" \with { midiInstrument = "accordion"} {\rh}
    \new Staff = "left" \with { midiInstrument = "accordion"} {\keepWithTag #'midiOut \lh}
  >>
  \midi { }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to