Re: Transform notes in a variable?

2021-10-02 Thread Craig Comstock
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

Re: Transform notes in a variable?

2021-08-02 Thread Craig Comstock
> 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,

Re: Transform notes in a variable?

2021-08-02 Thread Jean Abou Samra
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

Re: Transform notes in a variable?

2021-08-02 Thread Jean Abou Samra
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

Re: Transform notes in a variable?

2021-08-01 Thread Craig Comstock
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

Re: Transform notes in a variable?

2021-08-01 Thread Craig Comstock
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’

Transform notes in a variable?

2021-08-01 Thread Craig Comstock
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