bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enharmonic problem with \transpose - should we modify it?


From: Keith OHara
Subject: Re: enharmonic problem with \transpose - should we modify it?
Date: Sat, 25 Jun 2011 15:12:17 -0700
User-agent: Opera Mail/11.11 (Win32)

Janek Warchoł writes:

 I have a piece written in es minor, which contains a lot of sharps and
naturals (along with passages of flat notes). I'd like to "transpose it
enharmonically" so that sharp notes become flat notes a scale step above,
natural notes become double-flatted notes, but regular passages of flat
notes aren't affected.

Benkő Pál writes :

- \naturalizeMusic is far closer to your needs, it just have to be enhanced
 to know the key in the spirit of modal transposition

That is a very good idea.   We can
1) transpose from E-flat minor to A minor (no accidentals in the key signature)
1a) so that foreign notes now have large alterations, then
2) apply \naturalizeMusic, and
3) transpose back to E-flat minor.

==8<==
% Include naturalizeMusic from Reference Manual section 1.1.2
% or from  http://lsr.dsi.unimi.it/LSR/Item?id=266

music = \relative c' { \key es\minor es a bes e | es2 cis4 b }

{ \music }
\transpose a es \naturalizeMusic \transpose es a { \music }

% Janek said he also wanted to convert some natural notes into double-flats;
% to do this, we transpose a couple steps further around the circle of fifths
\transpose b es \naturalizeMusic \transpose es b { \music }

Attachment: naturalize.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]