|
From: | Han-Wen Nienhuys |
Subject: | Re: Octave checks, relative, and spurious warnings ... |
Date: | Wed, 07 Jun 2006 12:19:43 +0200 |
User-agent: | Thunderbird 1.5.0.2 (X11/20060501) |
Anthony Youngman schreef:
The manual says there's a difference between "=" and \octave (section 6.2.2) but both of them are giving me warnings - is there any way I can say "I need this absolute note" in this sort of situation without generating warnings?
does this help?I wrote it for Darius a while back, but maybe we should add it to the standard .ly include ?
resetOctave = #(def-music-function (parser location reference-note) (ly:music?) (let* ((notes (ly:music-property reference-note 'elements)) (pitch (ly:music-property (car notes) 'pitch)) ) (set! (ly:music-property reference-note 'elements) '()) (set! (ly:music-property reference-note 'to-relative-callback) (lambda (music last-pitch) pitch)) reference-note )) \relative c' { c d e \resetOctave c'' b } -- Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com
[Prev in Thread] | Current Thread | [Next in Thread] |