lilypond-user
[Top][All Lists]
Advanced

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

applying scaleDurations to a custom context


From: Kieren MacMillan
Subject: applying scaleDurations to a custom context
Date: Mon, 27 Apr 2009 07:17:41 -0400

Hi all,

How can a make a custom context with a "built-in" scaleDuration factor? e.g. I have

  \context
  {
    \Voice
    \name CustomVoice
    \alias Voice
    \override NoteHead #'duration-log = #8
  }

Now, rather than writing

  myMusic = \scaleDurations #'(1 . 8) \relative { ...

I'd like to just write

  myMusic = \relative { ...

and then use

  \new CustomVoice \myMusic

so that the context compresses the music for me. What do I add to the context definition?

Thanks,
Kieren.




reply via email to

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