Jean and others on this list, thank you so much for your help. It was so
supportive! I was really surprised and pleased with how supportive this
community was.
It was certainly challenging to learn so much so quickly but I have
accomplished a score for general use, and also a specific viola
> mappingOne = { }
> mappingTwo = { }
>
> music = { c' d' e' }
>
> \transformPitches \mappingOne \music
> \transformPitches \mappingTwo \music
This is exactly what I needed.
Once again I am impressed by the generosity of your time.
> Since you seem interested by the Scheme level,
Yes,
Le 02/08/2021 à 11:25, Jean Abou Samra a écrit :
Like this perhaps? The mapping is defined in chords,
internally converted to an alist. It just seemed easier
to input { } than #`((#{ c' #} . #{ d' #})).
Sorry, I meant:
#`((,#{ c' #} . ,#{ d' #}))
Jean
Le 02/08/2021 à 02:27, Craig Comstock a écrit :
Related to my other question of note names I am wondering if it is
possible to maybe write a mapping function of some sort for pitches?
I know there is transpose like shown here:
https://lilypond.org/doc/v2.22/Documentation/web/text-input
Oh no. A typo in my alist. I’ll be quiet now for a while and dig before asking
more. :)
>> Where transformOne would map c’ to say e’ and d’ to g’’.
>
> So I would expect to define transformOne something like
>
> ((c' . e') (d' . g'’))
Thanks,
Craig
To be clear, I would like to transform all of the notes in a particular part or
staff. Ideally defining a map like an alist is it in scheme?
> \version "2.20.0"
> riff = { c' r d' r }
> <<
> \new Staff \riff
> % \new Staff \transformOne \riff
> >>
>
> Where transformOne would map c’ to say e’
Related to my other question of note names I am wondering if it is possible to
maybe write a mapping function of some sort for pitches?
I know there is transpose like shown here:
https://lilypond.org/doc/v2.22/Documentation/web/text-input