lilypond-user
[Top][All Lists]
Advanced

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

Re: Re: DrumVoice Polyphony and MIDI


From: Mats Bengtsson
Subject: Re: Re: DrumVoice Polyphony and MIDI
Date: Thu, 29 Aug 2019 09:51:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0


On 2019-08-28 13:14, Stefano Antonelli wrote:
On Wed, 2019-08-28 at 09:01 +0200, Federico Bruni wrote:
Il giorno lun 26 ago 2019 alle 20:08, Stefano Antonelli
<address@hidden> ha scritto:
That is not always a convenient format for working with drum parts
though.  I would like to be able to use a syntax more like the
following:

test = \drummode {
   <<
   { \voiceOne cymc4 cymc4 cymc4 cymc4 }
   { \voiceOne s4    sn4   s4    sn4   }
   \\
   { \voiceTwo bd4   s4    bd4   s4    }
   >>
}

\score {
   \new DrumStaff {
     <<
       \set Staff.instrumentName = #"Drums"
       \new DrumVoice {
         \test
%       \morePolyphonicPieces
       }
     >>
   }
   \layout { }
   \midi {
     \tempo 4 = 84
   }
}
\version "2.18.2"

The above code generates a score just fine, but the MIDI file is
empty
(aside from a header).

I don't actually know much about MIDI.  I'm just using the play
button
in Frescobaldi.  It's helpful when transcribing.
The MIDI file is not empty when I compile above snippet.
And I don't see why it should happen to you.
Did you check carefully? Are you working on a saved file or a draft
in
Frescobaldi?
Operating system?
...
OS is Windows 7 on a computer I don't use often.  Frescobaldi is
version 3.0.1.  Lilypond is 2.18.2.

I also just tried it on my primary linux machine.  Similar results.
  Bad file is 162 bytes and the good file is 216 bytes.  The bad file
doesn't work in audacity, but the good file does.  Using lilypond from
the command line.  Version is 2.18.2.

Seems to be consistent with this version of lilypond.  What version are
you using?

I can confirm that the problem appears in 2.18.2, but seems to have been fixed in 2.19, several years ago. As has already been stated many times on this list, there's no reason whatsoever to avoid the "unstable" version 2.19.83. If you really want to keep 2.18.2 for some strange reason, just add the following at the top of your file


%%%\midi{
  \context {
    \Staff
    \name DrumStaff
    \alias Staff
    midiInstrument = #"drums"
    \denies Voice
    \accepts DrumVoice
    \defaultchild DrumVoice
  }
  \context {
    \Voice
    \name DrumVoice
    \alias Voice
    \remove "Note_performer"
    \consists "Drum_note_performer"
  }
}




reply via email to

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