]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4702/2: Add conversion function creator make-semitone->pitch
authorDavid Kastrup <dak@gnu.org>
Wed, 9 Dec 2015 18:35:45 +0000 (19:35 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 28 Dec 2015 08:53:08 +0000 (09:53 +0100)
commitd9e5d62a3028e1b5e2ee150cc40d375599c98538
tree7526be9faa0e4c4061b3eb1f6a913bcb887b9ae8
parent0365d088246f222afe9f9a91818ab949d2f13336
Issue 4702/2: Add conversion function creator make-semitone->pitch

Also contains a function shift-semitone->pitch for moving a given
conversion function to a different key.

The functions work on semitones rather than the whole tones that
LilyPond uses in the accidentals of its pitches since the semitones
are the more natural basis for most applications (including
Midi-related work) as well as for humans: 6 whole notes per octave
sounds a lot less common than 12 semitones.

There are currently no uses of those functions: they are provided as a
convenience.
scm/translation-functions.scm