Re: custom replace/map of one set of pitches to another

2023-09-01 Thread David Kastrup
Lukas-Fabian Moser writes: > Hi Valentin, > > Am 01.09.23 um 00:41 schrieb Valentin Petzel: >> I don’t think this is a particularly good idea. Lilypond conceptually first >> creates data for the sementic meaning of the music (or the actual content) >> and >> have engravers turn this into

Re: custom replace/map of one set of pitches to another

2023-09-01 Thread Lukas-Fabian Moser
Hi Valentin, Am 01.09.23 um 00:41 schrieb Valentin Petzel: I don’t think this is a particularly good idea. Lilypond conceptually first creates data for the sementic meaning of the music (or the actual content) and have engravers turn this into graphical content. Mapping pitches to other

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Michael Winter via LilyPond user discussion
Thank you Valentin for this solution and the following explanation why it is likely safer. All responses have been much appreciated. Best, Michael Sep 1, 2023, 00:15 by valen...@petzel.at: > Hi Michael, > > some time ago I created a function for exactly that for a stackexchange > question:

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Valentin Petzel
Hello Lukas, I don’t think this is a particularly good idea. Lilypond conceptually first creates data for the sementic meaning of the music (or the actual content) and have engravers turn this into graphical content. Mapping pitches to other pitches is not a layout option, but a musical

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Valentin Petzel
Hi Michael, some time ago I created a function for exactly that for a stackexchange question: https://music.stackexchange.com/questions/127175/lilypond-transpose-a-sequence-to-modes-with-different-intervallic-structure Essentially it introduces a function to map one scale to another, and it

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Michael Winter via LilyPond user discussion
That is very helpful. Thank you. I will ping again if I have any further questions. Aug 31, 2023, 14:35 by l...@gmx.de: > Hi Michael, > > over time, I found that doing something like this in an engraver (as opposed > to a music function) is actually much easier and conceptually clear, in spite

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Lukas-Fabian Moser
Hi Michael, over time, I found that doing something like this in an engraver (as opposed to a music function) is actually much easier and conceptually clear, in spite of the seeming difficulty of the engraver syntax. The advantage of using an engraver being that you see the "actual" pitches

Re: custom replace/map of one set of pitches to another

2023-08-31 Thread Michael Winter via LilyPond user discussion
I am now realizing that it would be useful to have this both at the level of the entire score and individually for each part. Aug 31, 2023, 12:53 by mwin...@unboundedpress.org: > I would like to do something (hopefully simple), which is basically a custom > find and replace for a set of notes

custom replace/map of one set of pitches to another

2023-08-31 Thread Michael Winter via LilyPond user discussion
I would like to do something (hopefully simple), which is basically a custom find and replace for a set of notes in an entire score. For example {c cis d dis fih g aih} -> {c cis dih dis f gis a} So basically on arbitrary list of pitches / scale  to another. Is this possible without writing a