Converting pitch-class integers to MIDI notes?

is there any method in SC to convert a sequence of pitch-class integers e.g. [0 1 2 3 4 5 6 7 8 9 10 11] to MIDI notes? or, better, converted to Lilypond pitch names? the only constraint would be to specify the octave span within which the pitch-classes would be converted.

In Events, you can use \note and \octave.

If you’re not using Events: with 12 notes to the octave, the size in semitones of a number of octaves is 12 * octave, and then simply add the pitch class.


1 Like