lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: pitch-semitone et notation absolute


From: Daniel Cartron
Subject: Re: pitch-semitone et notation absolute
Date: Mon, 13 Apr 2015 16:09:20 +0200
User-agent: KMail/4.13.3 (Linux/3.13.0-48-generic; KDE/4.13.3; x86_64; ; )

Le lundi 13 avril 2015, 15:05:39 Gilles THIBAULT a écrit :
> ly:pitch-semitones ?
> 
> %%%%%%%%%%%%%%%%%%
> %music = \relative c' { c d e f g c e }
> music = { c' d' e' f' g' c'' e''}
> 
> #(let ((pitches (map (lambda(x)(ly:music-property x 'pitch))
>                      (extract-named-music music 'NoteEvent))))
>    (display "Nombre de 1/2 tons à partir du do central :\n")
>    (for-each
>     (lambda(x)
>       (format #t "~a\t -> ~2,' d\n" x (ly:pitch-semitones x)))
>     pitches))
> %%%%%%%%%%%%%%%%%%%

OK si ça marche comme ça c'est que j'ai qq chose de pas correct dans ma 
fonction à moi. J'essaye de c omprendre sinon j'envoie un exemple minimaliste.

Merci.

-- 
Cordialement, Daniel Cartron
« On a beau avoir une santé de fer, on finit toujours par rouiller. »
Jacques Prévert   




reply via email to

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