lilypond-user
[Top][All Lists]
Advanced

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

Re: grace notes MIDI playback


From: Gilberto Agostinho
Subject: Re: grace notes MIDI playback
Date: Sun, 29 Nov 2015 15:37:03 -0700 (MST)

Hi all,

I found a workaround for my problem and I am sharing it here. If I define
these in the beginning of the score and use the articulate.ly script, the
grace notes will behave as I expect:

#(define ac:defaultGraceBackwardness 0)
#(define ac:defaultGraceFactor 1)

Example:

\include "articulate.ly"
\version "2.19.28"

%%%%%%%%%%%% grace on beat and no compression %%%%%%%%%%%%
#(define ac:defaultGraceBackwardness 0) % default 1, meaning it goes back in
time
#(define ac:defaultGraceFactor 1) % compression factor

A = \relative c'' {e2 \grace {dis32[ e, a' bes,]} ees,4 \grace {dis'32}
ees,4}
B = {\clef bass c,4 c, c, c,}
\markup {"score"}
\score {
  <<
    \new Staff \A
    \new Staff \B
  >>
  \layout {}
}
\markup {"playback"}
\score {
  <<
    \new Staff \articulate \A
    \new Staff \B
  >>
  \layout {}
  \midi {}
}

Producing:
<http://lilypond.1069038.n5.nabble.com/file/n184263/30.png> 

and:  example.mid
<http://lilypond.1069038.n5.nabble.com/file/n184263/example.mid>  

Cheers,
Gilberto




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/grace-notes-MIDI-playback-tp184215p184263.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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