lilypond-user
[Top][All Lists]
Advanced

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

Re: random notes


From: anders . vinjar
Subject: Re: random notes
Date: Tue, 04 Nov 2014 10:40:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi Stefan

    S> how can I generate pitches with sharp and flats?

Have a look at the docs for ly:make-pitch, esp. the last argument to the
function.

    S> How can I change the range of input notes?

You mean register or octave for the generated notes?  Same thing as
above, only check first argument to ly:make-pitch instead.

Getting guile running, w. lilypond loaded is invaluable for
experimenting with things like this.  Eg. (in a terminal):

$ lilypond scheme-sandbox
GNU LilyPond 2.19.16
Processing `/usr/local/share/lilypond/2.19.16/ly/scheme-sandbox.ly'
Parsing...
guile> (ly:make-pitch 2 2 -1/2)
#<Pitch ees''' >
guile> 

Good luck!

-anders




reply via email to

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