Re: printing rest in ChordNames context
2009/5/14 Carl D. Sorensen : > Not right now. I will investigate to see if it is easily done. I think the only way, short of introducing a new event class which includes both types of rest, would be to remove the listener for rests and instead add one for rythmic-event. You could then filter out all the listened events apart from rests using in_event_class (). Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
On May 14, 2009, at 9:12 AM, Carl D. Sorensen wrote: On 5/14/09 8:07 AM, "Tim McNamara" wrote: into the \chords feels clunky and intrusive to me. I'd prefer to minimize putting formatting code in the music content as much as possible. Being able to write something like nc1 (or r1) and have it interpreted by LilyPond as N.C. would be much more elegant and intuitive: This solution to the N.C. problem (use r to indicate N.C.) is currently being implemented for 2.13.1. It should be available in git by the end of the day, for those who can build their own binary. For those who cannot build their own binary, Marc's solution should work until 2.13.1 is released. Thanks for the heads-up on this, Carl! ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
On 5/14/09 9:03 AM, "Gilles Sadowski" wrote: > Hi. > >> This solution to the N.C. problem (use r to indicate N.C.) > ^^^ > Will R also work? Not right now. I will investigate to see if it is easily done. Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Hi. > This solution to the N.C. problem (use r to indicate N.C.) ^^^ Will R also work? Thanks, Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
On 5/14/09 8:07 AM, "Tim McNamara" wrote: > > into the \chords feels clunky and intrusive to me. I'd prefer to > minimize putting formatting code in the music content as much as > possible. Being able to write something like nc1 (or r1) and have it > interpreted by LilyPond as N.C. would be much more elegant and > intuitive: > This solution to the N.C. problem (use r to indicate N.C.) is currently being implemented for 2.13.1. It should be available in git by the end of the day, for those who can build their own binary. For those who cannot build their own binary, Marc's solution should work until 2.13.1 is released. Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
On May 14, 2009, at 1:03 AM, Marc Hohl wrote: Tim McNamara schrieb: [...] In jazz lead sheets, the usual method is to write "N.C." above the staff ("No Chord") which cues the chordal instruments and rhythm section to stop playing to allow the break. There's a workaround that Martial wrote to facilitate this, but it would be nice to have a way of writing this more simply (e.g., nc+duration such as nc1, nc2, nc4, nc8 etc.). What about writing just r1, r2, r4 as usual, and let lilypond convert this into "N.C."? I have no perfect solution, but it should be possible by including the Rest_engraver and defining it to simply print the "N.C.". With this solution, you can use the chords as notes /and/ as text symbols. That's an interesting possibility that I'd have to look into, since I haven't got a clue about using the Rest_engraver, although I suspect it would involve putting in a lot of code inside the music content. Many things in Lilypond currently result in inelegant coding in the .ly file to get the job done, although this will eventually be refined. If I had any computer programming skills I'd be happy to help with writing those refinements, but alas I wold first have to go back to school and learn computer programming! Martial's snippet from a couple of days ago is very helpful in creating a "N.C." in the chords above the staff and works well: \version "2.12.2" NCString = { -\markup { \whiteout { \hspace #-2 " N.C." }}} ChrdExcep = #(append (sequential-music-to-chord-exceptions NCString #t) ignatzekExceptions) {<< { \chords { a2:m7 d2:7.9- g2:m7 c2:7 \set chordNameExceptions = #ChrdExcep c1 %chord as NCString \unset chordNameExceptions a2:m7 d2:7.9- } } \relative c' { a'2 d2 g,2 c2 c4 c4 c4 c4 a2 r2} >> } but having to put \set chordNameExceptions = #ChrdExcep c1 %chord as NCString \unset chordNameExceptions into the \chords feels clunky and intrusive to me. I'd prefer to minimize putting formatting code in the music content as much as possible. Being able to write something like nc1 (or r1) and have it interpreted by LilyPond as N.C. would be much more elegant and intuitive: {<< { \chords { a2:m7 d2:7.9- g2:m7 c2:7 nc1 a2:m7 d2:7.9- } } \relative c' { a'2 d2 g,2 c2 c4 c4 c4 c4 a2 r2} >> } IMHO, YMMV. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Marc Hohl schrieb: Tim McNamara schrieb: [...] In jazz lead sheets, the usual method is to write "N.C." above the staff ("No Chord") which cues the chordal instruments and rhythm section to stop playing to allow the break. There's a workaround that Martial wrote to facilitate this, but it would be nice to have a way of writing this more simply (e.g., nc+duration such as nc1, nc2, nc4, nc8 etc.). What about writing just r1, r2, r4 as usual, and let lilypond convert this into "N.C."? I have no perfect solution, but it should be possible by including the Rest_engraver and defining it to simply print the "N.C.". With this solution, you can use the chords as notes /and/ as text symbols. Now I have a solution, which is not perfect, but at least as a first attempt: \version "2.12.2" NC = \markup { \lower #0.5 { \sans \fontsize #1 "N.C." } } \score { << \context ChordNames \with { \consists "Rest_engraver" \override Rest #'stencil = #ly:text-interface::print \override Rest #'text = #NC } { \chordmode { c1 a:m r2 g2 f1 c4 r2.} } \context Voice \relative c' { c4 d e g a b a e es4. es8 d2 f1 e1 } >> } Marc ___ 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 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Tim McNamara schrieb: [...] In jazz lead sheets, the usual method is to write "N.C." above the staff ("No Chord") which cues the chordal instruments and rhythm section to stop playing to allow the break. There's a workaround that Martial wrote to facilitate this, but it would be nice to have a way of writing this more simply (e.g., nc+duration such as nc1, nc2, nc4, nc8 etc.). What about writing just r1, r2, r4 as usual, and let lilypond convert this into "N.C."? I have no perfect solution, but it should be possible by including the Rest_engraver and defining it to simply print the "N.C.". With this solution, you can use the chords as notes /and/ as text symbols. Marc ___ 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: printing rest in ChordNames context
On May 13, 2009, at 11:11 PM, James E. Bailey wrote: Am 13.05.2009 um 23:07 schrieb Stjepan Brbot: Simon Bailey-2 wrote: hi zoli, Zoltan Kota wrote: Is it possible somehow to display rest symbols in a ChordNames context? yes. use: \score << \context ChordNames \with { \consists "Rest_engraver" } { ... } I've never seen something like that. What this rest in chords should mean? For chords stop usually the following sign is used: ¬ -- I don't do much with chords, but I would imagine it means "don't play a chord here". In jazz lead sheets, the usual method is to write "N.C." above the staff ("No Chord") which cues the chordal instruments and rhythm section to stop playing to allow the break. There's a workaround that Martial wrote to facilitate this, but it would be nice to have a way of writing this more simply (e.g., nc+duration such as nc1, nc2, nc4, nc8 etc.). ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Am 14.05.2009 um 07:08 schrieb Brett Duncan: James E. Bailey wrote: Am 13.05.2009 um 23:07 schrieb Stjepan Brbot: Simon Bailey-2 wrote: hi zoli, Zoltan Kota wrote: Is it possible somehow to display rest symbols in a ChordNames context? yes. use: \score << \context ChordNames \with { \consists "Rest_engraver" } { ... } I've never seen something like that. What this rest in chords should mean? For chords stop usually the following sign is used: ¬ -- I don't do much with chords, but I would imagine it means "don't play a chord here". The usual notation is "N.C." for no chord - I cannot say that I have ever seen a rest symbol used for this purpose. Maybe it's a regional thing (or maybe a composer who doesn't know). I'm in germany, and I had to figure out how to get a rest in the ChordNames because the composer was insistent. Regardless, I imagine the people who have to play it would understand what the rest symbol meant. What N.C. could stand for in german would probably make at least a 2 minute stand up sketch comedy skit. James E. Bailey ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Am 13.05.2009 um 23:07 schrieb Stjepan Brbot: Simon Bailey-2 wrote: hi zoli, Zoltan Kota wrote: Is it possible somehow to display rest symbols in a ChordNames context? yes. use: \score << \context ChordNames \with { \consists "Rest_engraver" } { ... } I've never seen something like that. What this rest in chords should mean? For chords stop usually the following sign is used: ¬ -- I don't do much with chords, but I would imagine it means "don't play a chord here". James E. Bailey ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
Simon Bailey-2 wrote: > > hi zoli, > > Zoltan Kota wrote: >> Is it possible somehow to display rest symbols in a ChordNames context? > > yes. use: > \score << > \context ChordNames \with { \consists "Rest_engraver" } { > ... > } > >> > > I've never seen something like that. What this rest in chords should mean? For chords stop usually the following sign is used: ¬ -- View this message in context: http://www.nabble.com/printing-rest-in-ChordNames-context-tp23171128p23529967.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: printing rest in ChordNames context
hi zoli, Zoltan Kota wrote: Is it possible somehow to display rest symbols in a ChordNames context? yes. use: \score << \context ChordNames \with { \consists "Rest_engraver" } { ... } >> regards, sb <>___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user