lilypond-user
[Top][All Lists]
Advanced

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

Re: Re: midi \breathe


From: Flaming Hakama by Elaine
Subject: Re: Re: midi \breathe
Date: Wed, 18 Oct 2017 14:43:42 -0700


From: Gianmaria Lari <address@hidden>
To: lilypond-user <address@hidden>

Date: Wed, 18 Oct 2017 14:10:57 +0200
Subject: midi \breathe
I would like to introduce a small breath in the midi file. I tried using the \breathe command with \articulate script like in the following code....

\version "2.19.65"
\include "articulate.ly"

music = \fixed c' {
  c4 d e f \breathe
  c4 d e f
}

\score {
  \articulate \music
  \layout {}
  \midi{}
}

but it doesn't look to work. 

I could put a partial measure with a pause in the midi like this

\version "2.19.65"
\include "articulate.ly"

music = \fixed c' {
  c4 d e f
  \partial 4 r4
  c4 d e f
}

\score {
  \articulate \music
  \layout {}
  \midi{}
}

but I wonder if there is anything more simpler/standard.....

Thank you, g.

Here is an common approch:  use tags to identify content that is MIDI-specific, as well as PDF-specific.

Then use two scores, and target different tags for each score.


\version "2.19.15"
\include "articulate.ly"

 music = \relative c' {

    c4 d e f

    \tag #'(PDF) {
        %  This tag isn't necessary, but I'm adding it just to show the pattern,
        %  since you might have PDF-specific content, as well as MIDI-specific content.
        %  In this case, you could leave the breath mark in the MIDI, too,
        %  but it will be ignored as you have found out.  Here, it is clear it only applies to the PDF

        <>\breathe
    }

    \tag #'(MIDI) {
        \partial 4 r4
    }

    c4 d e f
}

\score {
    \keepWithTag #'(PDF) \music
    \layout {}
}

\score {
    \articulate \keepWithTag #'(MIDI) \music
    \midi{}
}




HTH,

David Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



reply via email to

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