[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Calculating Tempi for midi output
From:       Mats Bengtsson <mats.bengtsson () ee ! kth ! se>
Date:       2007-02-28 9:21:51
Message-ID: 45E549AF.2020808 () ee ! kth ! se
[Download RAW message or body]

The feature is already available! Example:

\version "2.10.0"
#(define base-tempo 100)
\score{
\relative c'{
\set Score.tempoWholesPerMinute = #(ly:make-moment base-tempo 4)
  c d e f
\set Score.tempoWholesPerMinute = #(ly:make-moment (/ (* base-tempo 3) 4) 4)
  c d e f
}
\midi{}
}

An extra advantage of this solution in this specific application is that it
doesn't result in new printed metronome marks.

   /Mats

Graham Percival wrote:
> Thanks, feature request added as
> http://code.google.com/p/lilypond/issues/detail?id=319
>
> Cheers,
> - Graham
>
> live action wrote:
>> I was wondering if the metronome number in a \tempo command could be 
>> a scheme number.  This would make it easier to do effects for fermata 
>> and ritards and relative tempo changes, in midi files.
>>
>> For example, it would be nice to be able to do something like this:
>>
>> ----------------
>> #(define base-tempo 100)
>>
>> \tempo 4 = #base-tempo
>>
>> % some music
>> % insert markup for "half note = dotted quarter" metronome mark
>> % and override so the following is invisible in the score
>>
>> \tempo 4 = #( / ( * base-tempo 3) 4)
>> ---------------
>>
>> This way, one could change the base tempo in one place, and all the 
>> tempi would adjust automatically.
>>
>> I'm guessing from the error messages I get when I try this, that  
>> this is a feature request, but it would be awesome to be able to do 
>> this.
>>
>>       ---------------------------------
>> Looking for earth-friendly autos?  Browse Top Cars by "Green Rating" 
>> at Yahoo! Autos' Green Center. 
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
=============================================
	Mats Bengtsson
	Signal Processing
	Signals, Sensors and Systems
	Royal Institute of Technology
	SE-100 44  STOCKHOLM
	Sweden
	Phone: (+46) 8 790 8463				
        Fax:   (+46) 8 790 7260
	Email: mats.bengtsson@ee.kth.se
	WWW: http://www.s3.kth.se/~mabe
=============================================




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic