Whats wrong with my midi file?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Whats wrong with my midi file?

Jannik Jeppesen
Hi
Can anyone tell me what I have done wrong in the following file? It shall create a midi file
first play drumvoice 1 6 times
then nr 2 6 times
then 3, 4 and 5.
 
Now it is playing only the last one [with some other stuff as well)
I really dont get it...
 
I Hope some of you have the answer...
 
Jannik
 
=============================
\version "2.6.3"
 
\score {
\new DrumStaff <<
  \new DrumVoice { \drummode {
    \repeat unfold 5 {
      <bd hh>8 hh <sn hh> hh <bd hh> hh <sn hh> hh
      <bd hh> hh <sn hh> hh <bd hh> <bd hh> <sn hh> hh
    }
  }
 
  \drummode {
    \repeat unfold 5 {
      <bd hh>8 <bd hh> <sn hh> <bd hh> hh hh <sn hh> <bd hh>
      hh <bd hh> <sn hh> hh <bd hh> <bd hh> <sn hh> hh
    }
  }
 
  \drummode {
    <bd hh>8 <bd hh> <bd sn hh> hh hh hh <sn hh> <bd hh>
    hh <bd hh> <sn hh> <bd hh> <bd hh> hh <sn hh> hh
  }
 
  \drummode {
    <bd hh>8 hh <bd sn hh> hh <bd hh> hh <bd sn hh> hh
    <bd hh>8 hh <bd sn hh> hh <bd hh> hh <bd sn hh> hh
  }
 
  \drummode {
    <bd hh>8 <bd hh> <bd hh> hh <sn hh> hh hh <bd hh>
    <bd hh>8 <bd hh> <bd hh> hh <sn hh> hh hh <bd hh>
    <bd hh>8 <bd hh> <bd hh> hh <sn hh> <bd hh> <bd hh> <sn hh>
    <bd hh>8 <bd hh> <sn hh> <bd hh> sn sn tomml toml
  }}
>>
\midi {\tempo 4=170}
}
================================

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Whats wrong with my midi file?

Thies Albrecht
Hi Jannik!

> Now it is playing only the last one [with some other stuff as well)
> I really dont get it...
Maybe it will discourage you a bit... for me on native Windows v2.7.12
your file produces exactly what you desire... except for...

> first play drumvoice 1 6 times
> then nr 2 6 times
> then 3, 4 and 5.
If you want no. 1 to be played six times you will have to write 'repeat
unfold 6'.

Kind regards
Thies



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Whats wrong with my midi file?

Mats Bengtsson-6
In reply to this post by Jannik Jeppesen
Why not include also a \layout{} block to see what LilyPond does
when it expands the \repeat unfold commands?

I hope you know that <<...>> means "play things in parallel".
If you want things played in a sequence, you enclose the sequence
in curly braces, {...}, instead. However, for some intricate reasons
your example does actually give a sequence anyway.

Also, do you have any specific reason to explicitly specify a DrumVoice
only for the first section? Why not include all the piece in the same
DrumVoice context, or simply remove the "\new DrumVoice{", since
LilyPond will create one automatically anyway..

As has already been pointed out earlier, you should use \repeat unfold 6
if you want something repeated 6 times.

   /Mats

Jannik Jeppesen wrote:

> Hi
> Can anyone tell me what I have done wrong in the following file? It
> shall create a midi file
> first play drumvoice 1 6 times
> then nr 2 6 times
> then 3, 4 and 5.
>  
> Now it is playing only the last one [with some other stuff as well)
> I really dont get it...
>  
> I Hope some of you have the answer...
>  
> Jannik
>  
> =============================
> \version "2.6.3"
>  
> \score {
> \new DrumStaff <<
>   \new DrumVoice { \drummode {
>     \repeat unfold 5 {
>       <bd hh>8 hh <sn hh> hh <bd hh> hh <sn hh> hh
>       <bd hh> hh <sn hh> hh <bd hh> <bd hh> <sn hh> hh
>     }
>   }
>  
>   \drummode {
>     \repeat unfold 5 {
>       <bd hh>8 <bd hh> <sn hh> <bd hh> hh hh <sn hh> <bd hh>
>       hh <bd hh> <sn hh> hh <bd hh> <bd hh> <sn hh> hh
>     }
>   }
>  
>   \drummode {
>     <bd hh>8 <bd hh> <bd sn hh> hh hh hh <sn hh> <bd hh>
>     hh <bd hh> <sn hh> <bd hh> <bd hh> hh <sn hh> hh
>   }
>  
>   \drummode {
>     <bd hh>8 hh <bd sn hh> hh <bd hh> hh <bd sn hh> hh
>     <bd hh>8 hh <bd sn hh> hh <bd hh> hh <bd sn hh> hh
>   }
>  
>   \drummode {
>     <bd hh>8 <bd hh> <bd hh> hh <sn hh> hh hh <bd hh>
>     <bd hh>8 <bd hh> <bd hh> hh <sn hh> hh hh <bd hh>
>     <bd hh>8 <bd hh> <bd hh> hh <sn hh> <bd hh> <bd hh> <sn hh>
>     <bd hh>8 <bd hh> <sn hh> <bd hh> sn sn tomml toml
>   }}
> >>
> \midi {\tempo 4=170}
> }
> ================================
>
>------------------------------------------------------------------------
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user