lilypond-user
[Top][All Lists]
Advanced

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

Re: About Timing_translator


From: Philippe Hezaine
Subject: Re: About Timing_translator
Date: Tue, 09 Mar 2010 12:17:57 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20100224)

Neil Puttock a écrit :
On 4 March 2010 22:14, Philippe Hezaine <address@hidden> wrote:

Sorry to carry on a monologue but...
I can even say that when I only write a single time signature like 3/4 in a
single variable the resulting TimeSig in midicomp is 4/4 yet.

Can you post a sample file?

No, I don't want! For the next release the Gigsaw will integrate
randomization. Kudos to Brett Stahlman who gives me a gvim function
which works flawlessly so far. What a song and dance! You'll be able to
destroy all the stuff! You're so strong. :-P
Well! Seriously see below. ( And keep in mind the randomization is a
real thing now)


This reminds me of an old thread,
http://lists.gnu.org/archive/html/bug-lilypond/2009-02/msg00144.html,
where I couldn't verify the bug.

One thing to note is that the Time_signature_performer lives in the
Score context (unlike the Time_signature_engraver), so if you move it
to the Staff context (with the Timing_translator), you should see
separate time signatures in the midi output if you're typesetting
polymetric music.

Regards,
Neil

Keep cool. For standard midi output midicomp shows the right TimeSig.
The interesting thing is when you use Timing-translator in a *midi*
block. It seems layout block is not relevant.
There are 2 examples: the .ly file is written in 3/4.

1. Timing-translator-ex-min-1-midi-block
In this sample:
\context  {
%      \Score
%      \remove "Timing_translator"
        }
is commented out
and
           \context { \DrumStaff
               \consists "Timing_translator"
             }
is active. I get the midicomp ascii file with a 4/4 TimeSig. (line 6)

2. Timing-translator-ex-min-2-midi-block
Here all is active
         \midi {
           \context {
             \Score
             \remove "Timing_translator"
             tempoWholesPerMinute = #(ly:make-moment 110 4)
             }

           \context { \DrumStaff
               \consists "Timing_translator"
             }
           }
and I get an ascii file without TimeSig. However if you look at the
timestamps you'll see 4 beats. (They start from 00 to 03.)
Notice the barcheck is commented out. Perhaps it's significant.
If you want others samples with a different config don't hesitate to
ask, it's so easy for me to get these ascii files. I'm your servant.
As I said previously I hope it isn't a bug. Anyway midi output is OK.
As if it was the most natural thing in the world Lilypond do all the
maths with brilliance.
Oh please, if you destroy all the stuff send me a post! :)
--
         Phil.










Attachment: Timing-translator-ex-min-1-midi-block.asc
Description: PGP signature

\version "2.12.2"

 #(ly:set-option 'delete-intermediate-files #t)

pulse = \drummode {  

 \time 3/4 
 \tempo 4 = 110

        <bd_\ff cymca_\mp>8 r8 <ss_\fff cab_\fff>16 cab16_\mf cab8_\ff <ss_\fff 
cab_\sf>16 cab16_\mf r8 %| 

        bd8_\ff r8 r2 %| 

        \bar "|."

        }

 \score {
      \new DrumStaff 
        \new DrumVoice { \pulse }

  \layout {
        }

  \midi {
    \context {
%      \Score
%      \remove "Timing_translator"
      tempoWholesPerMinute = #(ly:make-moment 110 4)
      }

    \context { \DrumStaff
        \consists "Timing_translator"
             }

    }
 }








Attachment: Timing-translator-ex-min-2-midi-block.asc
Description: PGP signature

\version "2.12.2"

 #(ly:set-option 'delete-intermediate-files #t)

pulse = \drummode {  

 \time 3/4 
 \tempo 4 = 110

        <bd_\ff cymca_\mp>8 r8 <ss_\fff cab_\fff>16 cab16_\mf cab8_\ff <ss_\fff 
cab_\sf>16 cab16_\mf r8 %| 

        bd8_\ff r8 r2 %| 

        \bar "|."

        }

 \score {
      \new DrumStaff 
        \new DrumVoice { \pulse }

  \layout {
        }

  \midi {
    \context {
      \Score
      \remove "Timing_translator"
      tempoWholesPerMinute = #(ly:make-moment 110 4)
      }

    \context { \DrumStaff
        \consists "Timing_translator"
             }

    }
 }









reply via email to

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