Re: How can I get good layout and good midi without writing everything twice?

2011-04-13 Thread Marc Hohl

Am 13.04.2011 01:55, schrieb Michael Ellis:




On Tue, Apr 12, 2011 at 12:38 PM, Helge Hafting helge.haft...@hist.no 
mailto:helge.haft...@hist.no wrote:


What I need, is to get the midi output for
 \appoggiatura{e16 fis} e16
but the layout for
 e16\prall



Hi Helge,
You could use tags.


Or, if you are using the latest development version, you can use \articulate
in your \midi { } block.

\score {
  \myMusic
  \layout { }
}

\score {
  \articulate \myMusic
  \midi { }
}

HTH,

Marc
The following produced the desired results for me even though LilyPond 
(2.13.54) issued a warning: programming error: Going back in MIDI time.


I think the warning will go away if there's some music before the 
grace notes.


music = {
  \tag #'played {\appoggiatura{e16 fis} e16}
  \tag #'printed {e16\prall}
}

\score {
\removeWithTag #'played \music
\layout {}
}
\score {
\removeWithTag #'printed \music
\midi {}
}

Hope this helps,
Mike



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can I get good layout and good midi without writing everything twice?

2011-04-13 Thread Martin Tarenskeen



On Wed, 13 Apr 2011, Marc Hohl wrote:


Or, if you are using the latest development version, you can use \articulate
in your \midi { } block.


don't you forget
\include articulate.ly
?

or is that not necessary anymore in the latest development version ?



\score {
 \myMusic
 \layout { }
}

\score {
 \articulate \myMusic
 \midi { }


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can I get good layout and good midi without writing everything twice?

2011-04-13 Thread Marc Hohl

Am 13.04.2011 08:56, schrieb Martin Tarenskeen:



On Wed, 13 Apr 2011, Marc Hohl wrote:

Or, if you are using the latest development version, you can use 
\articulate

in your \midi { } block.


don't you forget
\include articulate.ly
?

or is that not necessary anymore in the latest development version ?

Oh, yes, of course! Thanks for the hint!

Marc




\score {
 \myMusic
 \layout { }
}

\score {
 \articulate \myMusic
 \midi { }





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


How can I get good layout and good midi without writing everything twice?

2011-04-12 Thread Helge Hafting
I know that a simple melody is easy, just use layout{} and \midi{} to 
get both. It is not always that easy though.


I am typing some traditional folk music into lilypond. In the original 
manuscript, grace notes is used to specify how some pralls are to be 
played. After a few of these constructs, a prall symbol (black zigzag 
line above the staff) is used instead.


This saves space. And according to a musician friend, it makes life 
easier for the musician too. If grace notes were used all the way, the 
musician would have to read closely in case there were any subtle 
differences along the way. But using trill symbols, the musician

knows to play every trill the same way.

Now the problem: I can reproduce the look, and get nice sheet music. But 
I am not much of a musician myself, so I listen to the midi. But 
lilyponds midi output does not interpret a prall as play the same 
sequence of grace notes as last time.


If I write the grace notes every time, the sheet music does not look so 
good. I could write the piece twice - once for print and once for midi. 
Cut  paste means it won't be that much work initially. But then the two 
pieces could get out of sync, with errors corrected in one and not the 
other.


What I need, is to get the midi output for
 \appoggiatura{e16 fis} e16
but the layout for
  e16\prall

Is there a way to achieve this? Without having two copies
of all the notes?



The original can be found at the Petrucci Music Library
http://imslp.org/wiki/Special:ImagefromIndex/63468
page 3.

Helge Hafting

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can I get good layout and good midi without writing everything twice?

2011-04-12 Thread Michael Ellis
On Tue, Apr 12, 2011 at 12:38 PM, Helge Hafting helge.haft...@hist.nowrote:

 What I need, is to get the midi output for
  \appoggiatura{e16 fis} e16
 but the layout for
  e16\prall



Hi Helge,
You could use tags. The following produced the desired results for me even
though LilyPond (2.13.54) issued a warning: programming error: Going back
in MIDI time.

I think the warning will go away if there's some music before the grace
notes.

music = {
  \tag #'played {\appoggiatura{e16 fis} e16}
  \tag #'printed {e16\prall}
}

\score {
\removeWithTag #'played \music
\layout {}
}
\score {
\removeWithTag #'printed \music
\midi {}
}

Hope this helps,
Mike
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user