lilypond-user
[Top][All Lists]
Advanced

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

Halving/doubling durations


From: peter
Subject: Halving/doubling durations
Date: Wed, 14 Jun 2017 20:02:11 +1000
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hi Folks,
   Lots of older music is written in 4/2 or 3/2 time, and uses minims
   as the standard note.  I'd like to be able to enter it exactly for
   proof reading, then halve all the note values (and the time
   signature) so the main melody is in crotchets instead of minims.

   Example, the old Hymn Tune, `All Saints'

\score {
          \new Staff \relative c'' {
               \key bes \major  \time 4/2
               bes2 f g g |
               f es d4( c) bes2
           }
}

I'd like to convert this automatically to

\score {
          \new Staff \relative c'' {
               \key bes \major  \time 4/4
               bes4 f g g |
               f es d8( c) bes4
          }
}

by something like
   \halveDurations { music ... }


It'd be fairly easy to write a music function that does this,  but I
wanted to ask first if there was one already existing I could use.

Peter C



reply via email to

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