midi ok in windows but only drums in linux
I have the same script extracted from the manuals which was written and working on a windows box. I got it home and put it on the ubuntu machine and only the drums sound. I have lost the flute notes? (when played with movie player) Have I not assigned the midi properly? or is it something weird on this ubuntu machine. \version 2.12.3 \score { \new Staff \new Voice \relative c''' { \set midiInstrument = #flute \voiceOne \key g \major \time 2/2 r2 g-Flute ~ g fis ~ fis4 g8 fis e2 ~ e4 d8 cis d2 } \new DrumStaff { \drummode{bassdrum4 snare8 bd r bd sn4} } \layout{} \midi{} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi ok in windows but only drums in linux
vector457 vector...@gmail.com writes: I have the same script extracted from the manuals which was written and working on a windows box. I got it home and put it on the ubuntu machine and only the drums sound. I have lost the flute notes? (when played with movie player) Have I not assigned the midi properly? or is it something weird on this ubuntu machine. \version 2.12.3 \score { \new Staff \new Voice \relative c''' { \set midiInstrument = #flute The Midi support changed shortly before 2.14, so this could be due to different versions. Or it could be due to the limited number of instruments supported by free samples on Ubuntu. If you try timidity whatever.midi you should likely get a warning on the terminal if the file contains unsupported instruments. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi ok in windows but only drums in linux
ahh thanks David.. seems it works fine under timidity but not under movie player.. strange as I just went thru a stack of mid files on my pc(source unknown) and sure enough some dont work in movie player but are fine under timidity..go figure On 12/06/2012 08:02 PM, David Kastrup wrote: vector457 vector...@gmail.com writes: I have the same script extracted from the manuals which was written and working on a windows box. I got it home and put it on the ubuntu machine and only the drums sound. I have lost the flute notes? (when played with movie player) Have I not assigned the midi properly? or is it something weird on this ubuntu machine. \version 2.12.3 \score { \new Staff \new Voice \relative c''' { \set midiInstrument = #flute The Midi support changed shortly before 2.14, so this could be due to different versions. Or it could be due to the limited number of instruments supported by free samples on Ubuntu. If you try timidity whatever.midi you should likely get a warning on the terminal if the file contains unsupported instruments. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: produce midi drums but hide staff
yeah I want to keep the drums in the midi output but not display it in the pdf On 12/06/2012 04:32 PM, Nathan wrote: On Wed, Dec 5, 2012 at 8:07 PM, vector vector...@gmail.com wrote: Hi there, Im getting the hang of this even tho it might not look it ;) thanks for all your inputs. I wanted to add a simple drumbeat to the previous script and produce a basic chord and drums midi. so far I have this working. But I want to remove the drums completely from the pdf output. ie just show chord progression only. Do you want to do this temporarily for debugging purposes? If so, you can use block comments. %{ \new DrumStaff \stopStaff \hideNotes \new DrumVoice {\voiceOne \up} \new DrumVoice { \voiceTwo \down } %} but \new DrumStaff \stopStaff \hideNotes \new DrumVoice {\voiceOne \up} \new DrumVoice { \voiceTwo \down } did just that, it hid the staff but the notes are left floating. hideNotes had no effect :( maybe its in the wrong place? Angle brackets indicate simultaneous music, while curly brackets { } indicate sequential music. To make the DrumVoices come after the \stopStaff and \hideNotes, use curly brackets: \new DrumStaff { \stopStaff \hideNotes \new DrumVoice {\voiceOne \up} \new DrumVoice { \voiceTwo \down } } Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Codemirror editor for Lilypond tweak
Just for reference: If the 'Codemirror' online editor is being used for lilypond files, it needs to have this line added to the sTeX mode file: plugins[concat] = addPluginPattern(concat, tag, [, [atom]); after the var plugins = new Array(); line and the same applies for any lilypond keyword (anything that begins with a \ I mean) that is also a javascript object method ( I can't think of any besides 'concat' but there may be others). Otherwise, the lilypond file won't load if it contains '\concat...' M. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: produce midi drums but hide staff
Hello, 2012/12/6 vector457 vector...@gmail.com yeah I want to keep the drums in the midi output but not display it in the pdf You can have separate \score blocks for layout and for midi - this way you can get what you want. Like this: \score { \new Staff... \layout {} } \score { \new Staff... \new DrumStaff \midi {} } Marek http://gregoriana.sk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi ok in windows but only drums in linux
vector457 vector...@gmail.com writes: ahh thanks David.. seems it works fine under timidity but not under movie player.. strange as I just went thru a stack of mid files on my pc(source unknown) and sure enough some dont work in movie player but are fine under timidity..go figure Huh. I would have thought that in the absence of a hardware Midi player, _everything_ would get routed through timidity, so I am somewhat surprised at the difference. No idea just _what_ the movie player does here. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Marks above and below simultaneously
On 3 December 2012 00:31, Daniel Rosen drose...@gmail.com wrote: OK, I think I've mostly figured this out: \version 2.16.1 marks = { \tempo Tempo s1 \mark \default } \new Score \new Staff \new Voice { c''1 c'' } \new Voice { \marks } \new Dynamics \with { \consists Metronome_mark_engraver \consists Mark_engraver } { \marks } The only problem now is that metronome mark is aligned with the start of the music instead of the time signature. I'm guessing this has something to do with the fact that it's in a Dynamics context--can someone tell me how to fix it? Hi, Wihout the need of a Dynamics context, I personnaly use Neil's #multi-mark-engraver which provide an easy and (IMHO) efficient way to print simultaneous rehearsal marks. I think it could be expanded to metronome marks (maybe a Scheme guru could have a look). I find this multi-mark-engraver so much useful, I hope a nice implementation of it could be integrated directly within LilyPond. I don't know what is the current version of LilyPond installed on the LSR. When this code was produced by Neil it could not be included in the LSR because of LilyPond version installed on it. Cheers, Xavier -- Forwarded message -- From: Xavier Scheuer x.sche...@gmail.com Date: 17 August 2012 14:52 Subject: Re: Simultaneous rehearsal marks and staff spacing To: Nick Payne nick.pa...@internode.on.net Cc: lilypond-user@gnu.org lilypond-user@gnu.org, Neil Puttock n.putt...@gmail.com Hi, I use Neil's great multi-mark-engraver and I can put two simultaneous rehearsal marks with different directions, self-alignment-X, etc. AFAIK it works great and does not exhibit side effect on staff spacing. See http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html for the definition of multi-mark-engraver. Lily code % you should include the definition of multi-mark-engraver % http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html \layout { \context { \Score \remove Mark_engraver \consists #multi-mark-engraver \consists Tweak_engraver } } \relative c'{ \repeat unfold 60 { c4 } \tweak #'self-alignment-X #RIGHT \mark \markup \normalsize \musicglyph #scripts.segno \tweak #'direction #DOWN \tweak #'self-alignment-X #RIGHT \mark \markup \normalsize Menuetto D.C. } End of lily code -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text on slurs (faking bends etc)
Meanwhile... here's a code snippet which offers a double-stop bend solution by using multiple (two) voices. It may be of some use to others, who find this thread with the search engine: I'm using separate sets of 'music data' for the tab and the conventional notes, which I'm pretty sure is not a 'best practice', but sometimes I do it this way. Also, there is a minor spacing issue between staves, but for code clarity I've omitted the easy solution. Let me know if you need it. best, --p --double-stop-bend.ly- \version 2.16.0 \include bend.ly notes = \relative c'' { \new Voice { r16 g'16 (a8 g4) fis16 (gis8. fis4) } \\ { s16 e16 fis8 e4 d16 e8. d4 } } tab = \relative c' { \new TabVoice { \bendOn r16 g'16\2 (a8\2) g4\2 fis16\2 (gis8.\2) (fis4\2) \bendOff } \\ { \bendOn r16 e16\3 (fis8\3) e4\3 d16\3 (e8.\3) \parenthesize d4\3 \bendOff } } \score { \new StaffGroup \new Staff \notes \new TabStaff \tab \layout {} % \midi {} } --fin -- View this message in context: http://lilypond.1069038.n5.nabble.com/Text-on-slurs-faking-bends-etc-tp35037p137267.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: produce midi drums but hide staff
That would mean Id have to write out the pitch notes (ie new staff) twice? once for the layout and then again with the drums for the midi. On 12/06/2012 08:48 PM, Marek Klein wrote: Hello, 2012/12/6 vector457 vector...@gmail.com mailto:vector...@gmail.com yeah I want to keep the drums in the midi output but not display it in the pdf You can have separate \score blocks for layout and for midi - this way you can get what you want. Like this: \score { \new Staff... \layout {} } \score { \new Staff... \new DrumStaff \midi {} } Marek http://gregoriana.sk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: produce midi drums but hide staff
2012/12/6 vector457 vector...@gmail.com That would mean Id have to write out the pitch notes (ie new staff) twice? once for the layout and then again with the drums for the midi. Of course not: melody = \relative c' { c4 d e f } \score { \new Staff { \melody } \layout { } } \score { \new Staff { \melody } \new DrumStaff... \midi { } } HTH. Marek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custom key signature stencils, differentiating major and minor keys
On Dec 5, 2012, at 5:58 PM, Thomas Morley thomasmorle...@googlemail.com wrote: Sorry to send this again, forgot to cc the list. 2012/12/5 Thomas Morley thomasmorle...@googlemail.com: 2012/12/5 Paul Morris p...@paulwmorris.com: On Dec 4, 2012, at 7:27 PM, Thomas Morley thomasmorle...@googlemail.com wrote: [...] May I ask, if you could add a commented 2.16-version of it? Although your code will work for 2.16.1 up to 2.17.6 (so far I tested), it would be nice to show the new make-engraver-macro and the possibility of #{ #} in scheme-code, once the LSR is updated. Ok, I just uploaded a new version with the 2.16 code commented out. The make-engraver-macro is quite nice. Thanks for doing this! Glad to help! It was a little tricky figuring out the #{ \markup ... #} syntax after getting used to the scheme version. If it were not for the need to demonstrate the new syntax (which I'm happy to help with) I'd probably just stick with the scheme version at this point. I know what you mean. :) I tend to use only scheme-syntax in longer scheme-expressions. It's nice to show #{ #}, though. I eventually got it working in all cases, but had to move the accidental markups into variables Well, I do like variables. :) Yeah, in this case they were only used once each, so it seemed like overkill to assign them to variables. Maybe it's clearer that way though. to avoid too much nesting, which wasn't working. Namely this part: (if (pair? tonic-acc) (set! key-name (markup key-name (if (= acc-type 0.5 ) (markup #:translate (cons (* mult -0.3) (* mult 0.8)) #:magnify (* mult 0.9) #:sharp) (markup #:translate (cons (* mult -0.2) (* mult 0.4)) #:magnify (* mult 0.9) #:flat) % the following doesn't work: (if (pair? tonic-acc) (set! key-name #{ \markup #key-name #(if (= acc-type 0.5 ) #{ \markup { \translate #(cons (* mult -0.3) (* mult 0.8)) \magnify #(* mult 0.9) \sharp } #} #{ \markup { \translate #(cons (* mult -0.2) (* mult 0.4)) \magnify #(* mult 0.9) \flat } #} ) #} )) It will work, while adding two braces: (if (pair? tonic-acc) (set! key-name #{ \markup { % == #key-name #(if (= acc-type 0.5 ) #{ \markup { \translate #(cons (* mult -0.3) (* mult 0.8)) \magnify #(* mult 0.9) \sharp } #} #{ \markup { \translate #(cons (* mult -0.2) (* mult 0.4)) \magnify #(* mult 0.9) \flat } #}) } % = #})) Argh! The missing braces strike again. I should have caught that. Your reformatting makes it much easier to follow. % but this does: (if (pair? tonic-acc) (set! key-name #{ \markup { #key-name #(if (= acc-type 0.5 ) txt-sharp txt-flat ) } #} )) Regards, -Paul Now approved: http://lsr.dsi.unimi.it/LSR/Item?id=856 Regards, Harm P.S. I cc-ed the list, because I think it might be of interest for all. Thanks again! -Paul ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: preview (-d flag) padding
Curt Siffert wrote Is it at all possible to manually add a few pixels of padding to -dpreview ? I am regularly running into problems with a few pixels of an image being cut off. I've reported a bug (https://code.google.com/p/lilypond/issues/detail?id=2968) but since it appears this issue has existed in some form or another for many years now, I don't have high hopes that it will be resolved soon. So I'm just looking for a way to work around it manually in the meantime. Hopefully something that will work in a wide variety of snippets - some of my mine have only \markup code (no staves). you can try sth like \override Clef #'[minimum-]Y-extent = #'(-5 . 3.5) for staves. for markups I did not find any problems - can you give an example!? Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/preview-d-flag-padding-tp137044p137274.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: produce midi drums but hide staff
Thanks Marek, I had been doing as you indicate. And, after thinking it thru, duplicating like this is far more flexible than my thoughts of a switch on off like command, especially when the score gets more complicated. cheers On 12/06/2012 10:42 PM, Marek Klein wrote: 2012/12/6 vector457 vector...@gmail.com mailto:vector...@gmail.com That would mean Id have to write out the pitch notes (ie new staff) twice? once for the layout and then again with the drums for the midi. Of course not: melody = \relative c' { c4 d e f } \score { \new Staff { \melody } \layout { } } \score { \new Staff { \melody } \new DrumStaff... \midi { } } HTH. Marek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aleatoric / modern notation
Hi all, Could someone please take a look at the latest scheme code in this thread and figure out how we can use this frame engraver construct on multiple staffs in the same score simultaneously? It's pretty important for preceding in my work, and I can't figure out how to get it working. thank you, Jeff On Sun, Nov 25, 2012 at 5:19 PM, David Nalesnik david.nales...@gmail.comwrote: Hi Jeffrey, On Sat, Nov 24, 2012 at 11:47 AM, Jeffrey Trevino jeffrey.trevi...@gmail.com wrote: Hi David, Yes, I think it's reasonable to confine the frame to a single line, even though the arrow must be breakable. I'm also having problems using the construct on parallel staffs within a score. It works fine for a single staff, but when I try to use the same construct on two staffs simultaneously, I get, warning: No start to this box. Preprocessing graphical objects...frameEngraver4.ly:124:23: In procedure ly:grob-property in expression (ly:grob-property frame (quote padding)):frameEngraver4.ly:124:23: Wrong type argument in position 1 (expecting Grob): () I don't know how the Scheme is working here, so maybe you can try out two of these in parallel and let me know if it's working for you. Nope, I get the same error... Argh! I'm not sure why this is happening. As soon as I get some time, I'll need to go over the engraver with a fine-toothed comb. I know how to approach the issue of the broken extender line, but I want to make sure I'm working from a sound base first. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Slurs, phrasing slurs and fingering
Am 03.12.2012 07:06, schrieb David Kastrup: David Kastrup d...@gnu.org writes: Noeck noeck.marb...@gmx.de writes: Why has that been inverted? To me, \shape PhrasingSlur #… is easier to read than \shape #… PhrasingSlur. Could someone briefly explain the reason for that? The old syntax was \shape PhrasingSlur #'((0 . 1) (0 . 1.8) (0 . 1.8) (0 . 0)) cis8 \( The new one supports either \shape #'((0 . 1) (0 . 1.8) (0 . 1.8) (0 . 0)) PhrasingSlur cis8 \( or cis8 -\shape #'((0 . 1) (0 . 1.8) (0 . 1.8) (0 . 0)) \( This saves you from having to remember that \( is a PhrasingSlur, and it makes it possible to change the shape of a double slur cis8 ^\( _\) by shaping each of the constituting slurs independently with its own call of \shape. This is not actually a full explanation since the tweak-like usage would not strictly have necessitated switching the argument order. It turns out, however, that if you stack more than one tweak-like command on the same music expression, not having the music expression for each tweak come last makes for a completely awful syntax, like cis8 -\shape \tweak #'color #red \( #'((0 . 1) (0 . 1.8) (0 . 1.8) (0. 0)) rather than cis8 -\shape #'((0 . 1) (0 . 1.8) (0 . 1.8) (0. 0)) \tweak #'color #red \( Thanks a lot for explaining! Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: TupletNumber direction
2012/11/11 Daniel Rosen drose...@gmail.com: I can't speak to whether the code is sound, but if it is, this should be added to the LSR. Quite frankly, I'm surprised something similar isn't there already. DR I added a snippet to the LSR. Preview at http://lsr.dsi.unimi.it/LSR/Item?u=1id=860 Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tuplet bracket collides with fingering when slurred
2012/12/4 Olivier Biot olivier.b...@gmail.com: Dear all, As a follow-up, here's another snippet featuring the same or similar behavior. I haven't found the way to solve this problem yet. % BEGIN snippet 2 \version 2.16.1 theMusic = \new Staff { \relative d' { \clef bass \key g \major \time 2/4 \times 4/6 { g,,16 ( b' g' ) g ( b, g, )c,--\f ( e'-3 c'-4 ) c ( e, c, ) } | % Test 1: sextuplets \times 2/3 { g'16 ( b' g' ) g ( b, g, ) } \times 2/3 { c,--\f ( e'-3 c'-4 ) c ( e, c, ) } | % Test 2: triplets } } \score { \theMusic \layout { \context { \Staff \override Fingering #'add-stem-support = ##t \override Fingering #'avoid-slur = #'outside \override TupletBracket #'bracket-visibility = ##t } } } % END snippet 2 Best regards, Olivier On Fri, Nov 23, 2012 at 10:58 PM, Olivier Biot olivier.b...@gmail.com wrote: Dear LilyPond users, How can I avoid the tuplet bracket colliding with fingerings in case the tuplet has a slur? Example of tuplet without and with slur, illustrating the problem: % BEGIN \version 2.16.1 \score { \new Staff { \relative c, { \key g \major \time 2/4 \clef bass \times 2/3 { c16--\f e'-3 c'-4 c e, c, } \times 2/3 { c16--\f ( e'-3 c'-4 ) c ( e, c, ) } } } \layout { \context { \Staff \override Fingering #'add-stem-support = ##t \override Fingering #'avoid-slur = #'outside \override TupletBracket #'bracket-visibility = ##t \override TupletBracket #'avoid-slur = ##t \override TupletNumber #'avoid-slur = ##t } } } % END Is this related to the following issue? http://code.google.com/p/lilypond/issues/detail?id=2397 Best regards, Olivier ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Hi Olivier, fiddling about the values of TupletBracket 'outside-staff-priority seems to do the job: \version 2.16.1 \score { \new Staff { \relative c, { \key g \major \time 2/4 \clef bass \override TupletBracket #'outside-staff-priority = #0 \times 2/3 { c16--\f e'-3 c'-4 c e, c, } \times 2/3 { c16--\f ( e'-3 c'-4 ) c ( e, c, ) } } } \layout { \context { \Staff \override Fingering #'add-stem-support = ##t \override Fingering #'avoid-slur = #'outside \override TupletBracket #'bracket-visibility = ##t } } } theMusic = \new Staff { \relative d' { \clef bass %% Using a value 250 will place the DynamicText outside the %% TupletBracket, depends on what you want. \override TupletBracket #'outside-staff-priority = #250 \key g \major \time 2/4 % Test 1: sextuplets \times 4/6 { g,,16 ( b' g' ) g ( b, g, )c,--\f ( e'-3 c'-4 ) c ( e, c, ) } | % Test 2: triplets \times 2/3 { g'16 ( b' g' ) g ( b, g, ) } \times 2/3 { c,--\f ( e'-3 c'-4 ) c ( e, c, ) } | } } \score { \theMusic \layout { \context { \Staff \override Fingering #'add-stem-support = ##t \override Fingering #'avoid-slur = #'outside \override TupletBracket #'bracket-visibility = ##t } } } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bold-tenuto - new LSR-snippet
2012/11/27 Thomas Morley thomasmorle...@googlemail.com: To the author of http://lsr.dsi.unimi.it/LSR/Item?u=1id=858 I want to approve your new snippet, but discuss the possibilities to make it more concise. If you're on the list, please contact me. Best, Harm Found him at the german forum. Snippet is now approved: http://lsr.dsi.unimi.it/LSR/Item?id=858 -Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: TupletNumber direction
Hello: The e-mails with suggestions often contain snippets. Some of them I understand (with the help of Frescobaldi), some are a bit beyond my current practice, and all of them could be helpful in the future. If a library of snippets exists, where is it located? Thank you for your kind attention. Mark Stephen Mrotek -Original Message- From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Thomas Morley Sent: Thursday, December 06, 2012 2:03 PM To: Daniel Rosen Cc: David Kastrup; lilypond-user@gnu.org; David Nalesnik Subject: Re: TupletNumber direction 2012/11/11 Daniel Rosen drose...@gmail.com: I can't speak to whether the code is sound, but if it is, this should be added to the LSR. Quite frankly, I'm surprised something similar isn't there already. DR I added a snippet to the LSR. Preview at http://lsr.dsi.unimi.it/LSR/Item?u=1id=860 Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tuplet bracket collides with fingering when slurred
2012/12/6 Thomas Morley thomasmorle...@googlemail.com: [...] %% Using a value 250 will place the DynamicText outside the %% TupletBracket, depends on what you want. Sorry. Should read: %% Using a value 250 will place the DynamicText *inside* the %% TupletBracket, depends on what you want. -Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: new and context
Am 05.12.2012 09:39, schrieb Trevor Daniels: Noeck, you wrote Tuesday, December 04, 2012 8:43 PM what is the difference between \new and \context? Very little. In most situations they can be used interchangeably. One difference is that \context Staff = A will search for a previously defined Staff with the same name and use that existing context, whereas \new Staff = A will always create a new context, even if a context with the same name already exists. I always use \new the first time a context is created and \context to refer back to an existing context, but this is just a convention and other users have different conventions. I have read 5.1.2 Creating contexts, but I don't understand it yet. It talks about 3 commands for a context: \new type music expression \context type = id music \context type music Why is \new type = id music not listed with an extra bullet? Or, why is \context type = id and \new type = id is not? This section of the documentation was last amended in 2006, when the style was much more casual than the way the earlier sections of the Notation Reference are now written. It is likely the author was not very clear how contexts worked. It's time this section was revisited. Thanks for drawing our atttention to it. Where would I need \context? There is an example: \new Staff \context Voice = A \music \context Voice = A \arts But I could write \new Staff \music \\ \arts , couldn't I? Yes. Ok, I see some differences in the stem directions, but it's not clear to me why. I would be very happy, if anyone could explain that to me. The former uses a single Voice context, the latter uses two. Would a syntax be possible without new and LilyPond creates the context if it is not there and references an exising one, if it has the same name? That's essentially what \context does. Trevor Thanks, I understand it better now. It still seems to me like there might be a possiblity to simplify the ly-syntax. Let me make a little comparison: In C++, if you want to declare a new variable you have to specify the type (e.g. int) and the name (e.g. var) and you can assign a value (e.g. 5). If you want to use it, you only need the name: int var = 5 var = 10 In Python, the type is determined from the assignment, which saves some typing: var = 5 var = 10 In LilyPond the type (e.g. Staff) can not be guessed, but the two lines at the end of the C++ paragraph are quite verbose in LilyPond and compare to: \new Staff = var { a4 } \context Staff = var … I do not know the parser, but wouldn't it be possible to recognize whether a named context already exists and use that one and if not create a new one. That those lines could shrink to: Staff var { a4 } Staff var …or even (?) \var … I think it is always better to make the usage of the software easy, than having to explain a lot in the documentation why this has to be done in a complex way (even if it is easy compared to the knowledge of the developers). But probably, I do not know enough about LilyPond to see the reason for this and the drawbacks my suggestion would have (I wrote it, because I see a small chance that it is not totally rubbish ;) ). Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: TupletNumber direction
2012/12/6 Mark Stephen Mrotek carsonm...@ca.rr.com: Hello: The e-mails with suggestions often contain snippets. Some of them I understand (with the help of Frescobaldi), some are a bit beyond my current practice, and all of them could be helpful in the future. If a library of snippets exists, where is it located? Thank you for your kind attention. Mark Stephen Mrotek Well, there is The LilyPond Snippet Repository http://lsr.dsi.unimi.it/LSR/ Although, the LSR currently runs 2.14.2. Or look in /Documentation/snippets http://lilypond.org/doc/v2.17/Documentation/snippets-big-page.html Several snippets, posted on this list, will not be found in one of the above for different reasons. You could find them in the archives, though. See http://lilypond.org/website/contact.html for the links. HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: preview (-d flag) padding
There is also an annoying bug that cuts off the bottom of a system start bracket when there is nothing below the bottom staff. My workaround is to add white text under one of the notes (\tweak #'color #white _a), which forces LilyPond to enlarge the image a little bit and include the bits it cut off. Kevin Message: 1 Date: Thu, 6 Dec 2012 09:06:00 -0800 (PST) From: Eluze elu...@gmail.com To: lilypond-user@gnu.org Subject: Re: preview (-d flag) padding Message-ID: 1354813560178-137274.p...@n5.nabble.com Content-Type: text/plain; charset=us-ascii Curt Siffert wrote Is it at all possible to manually add a few pixels of padding to -dpreview ? I am regularly running into problems with a few pixels of an image being cut off. I've reported a bug (https://code.google.com/p/lilypond/issues/detail?id=2968) but since it appears this issue has existed in some form or another for many years now, I don't have high hopes that it will be resolved soon. So I'm just looking for a way to work around it manually in the meantime. Hopefully something that will work in a wide variety of snippets - some of my mine have only \markup code (no staves). you can try sth like \override Clef #'[minimum-]Y-extent = #'(-5 . 3.5) for staves. for markups I did not find any problems - can you give an example!? Eluze ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: new and context
Noeck wrote It still seems to me like there might be a possiblity to simplify the ly-syntax. Let me make a little comparison: I do not know the parser, but wouldn't it be possible to recognize whether a named context already exists and use that one and if not create a new one. Have a look. You can see the LilyPond grammar in Appendix C of the Notation Reference. http://www.lilypond.org/doc/v2.17/Documentation/notation/lilypond-grammar Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Unexpected side-effect of articulate.ly on aftergrace
Dear LilyPond users, I just came across a weird interaction between articulate.ly and aftergrace. If I include articulate.ly then beamed aftergrace notes have a tenuto articulation and are not rendered smaller, even though I never called the \articulate macro. Here's the LilyPond 1.16.1 code for reproducing the issue - comment the include statement to see the difference: % BEGIN code \version 2.16.1 \include articulate.ly theMusic = \new Staff { \relative c' { \key g \major \time 4/4 \clef bass c4 \startTrillSpan ( b a \afterGrace g4-2 ) { fis16 [ g ] \stopTrillSpan }| % 13 c,1 } } \score { \theMusic \layout { \context { \Staff \override Fingering #'add-stem-support = ##t \override Fingering #'avoid-slur = #'outside \override TupletBracket #'bracket-visibility = ##t } } } % END code Is there a known fix for this problem? BEst regards, Olivier ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: new and context
Joram Berger wrote Thursday, December 06, 2012 10:56 PM Am 06.12.2012 23:51, schrieb Trevor Daniels: Noeck wrote It still seems to me like there might be a possiblity to simplify the ly-syntax. Let me make a little comparison: I do not know the parser, but wouldn't it be possible to recognize whether a named context already exists and use that one and if not create a new one. Have a look. You can see the LilyPond grammar in Appendix C of the Notation Reference. http://www.lilypond.org/doc/v2.17/Documentation/notation/lilypond-grammar Trevor I stumbled upon that graph several times, but I never understood what it should tell me, not even a little part of it (besides that the numbers are probably line numbers). It's the LilyPond grammar as extracted from the input to Bison (somewhat simplified). Bison generates the parser which then implements this grammar. You need to understand this grammar in order to see whether any suggested changes to the LilyPond language syntax can work sensibly. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Note duration line (contemporary)
2012/11/29 Jeffrey Trevino jeffrey.trevi...@gmail.com: Thanks, Harm! That does just what we were trying to get at, I think. Hi Jeff, I put a bit more work on it. - Changing the used property from 'after-line-breaking to 'stencil, freeing 'after-line-breaking for other use. - Fiddling the appearence depending on the occurance of ledgers or not. - Creating a function to change the thickness of the line. (There is a greater difference depending on the used version) - For the line I changed to ly:round-filled-box and added a little blot. and several minor changes. \version 2.16.1 %% Works with 2.17.6 #(define (flat-gliss value) (lambda (grob) (let* ((left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info))) (stencil (ly:line-spanner::print grob)) (stencil-x-ext (ly:stencil-extent stencil X)) (line-thickness (ly:staff-symbol-line-thickness grob)) (staff-space (ly:staff-symbol-staff-space grob)) (half-gliss-thick (- (/ staff-space 2) line-thickness)) (bound-left (ly:spanner-bound grob LEFT)) (bound-right (ly:spanner-bound grob RIGHT)) (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name))) (note-head? (lambda (x) (if (eq? (grob-name x) 'NoteHead) #t #f))) (staff-pos-left (if (note-head? bound-left) (ly:grob-property bound-left 'staff-position) 0)) (staff-pos-right (if (note-head? bound-right) (ly:grob-property bound-right 'staff-position) 0)) (x-corr (lambda (x) (if (= (abs x) 6) line-thickness 0))) (new-stencil (ly:round-filled-box (let ((x-corr-left (x-corr staff-pos-left)) (x-corr-right (* -4 (x-corr staff-pos-right (cons (+ x-corr-left (car stencil-x-ext)) (+ x-corr-right (cdr stencil-x-ext) (* line-thickness 3 (interval-widen (cons left-Y left-Y) (- half-gliss-thick value)) 0.1))) (ly:grob-set-property! grob 'stencil new-stencil) (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y flatGlissOn = #(define-music-function (parser location val)(number?) #{ \override Glissando #'stencil = #(flat-gliss val) \override Glissando #'breakable = ##t #}) one = \relative c' { b1 \glissando %% Works, because a spacer-rest doesn't define a NoteColumn s1*9 \once \hideNotes b1 %% To show a short part of the glissando after linebreak uncomment: %\override Glissando #'after-line-breaking = ##t e' d1\glissando \break s1*8 \break e d } two = \relative c' { s1 f1*3 \glissando s1*4 \once \hideNotes b1 } three = \relative c' { s1*2 d'1*2 \glissando s1*3 \once \hideNotes d1 } four = \relative c' { s1*3 %% To show a short part of the glissando after linebreak uncomment: % \override Glissando #'after-line-breaking = ##t as''1 \glissando s1*2 \break a!4\glissando b \glissando c2 \glissando s1*2 \revert Glissando #'stencil \override Glissando #'thickness = #3 d1 \glissando s2.. f,1 } \score { \new Staff \new Voice \one \new Voice \two \new Voice \three \new Voice \four \layout { \context { \Voice %% increasing the number will result %% in a more narrow line. %% Warning: if it is increased 0.4 %% a warning will appear and no line is printed! \flatGlissOn #0.23 \override NoteHead #'duration-log = #2 \override Stem #'stencil = ##f } \context { \Staff \remove Time_signature_engraver } \context { \Score defaultBarType = #empty } } } Regards, Harm attachment: flat-gliss.png___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: new and context
Am 07.12.2012 00:24, schrieb Trevor Daniels: Joram Berger wrote Thursday, December 06, 2012 10:56 PM Am 06.12.2012 23:51, schrieb Trevor Daniels: Noeck wrote It still seems to me like there might be a possiblity to simplify the ly-syntax. Let me make a little comparison: I do not know the parser, but wouldn't it be possible to recognize whether a named context already exists and use that one and if not create a new one. Have a look. You can see the LilyPond grammar in Appendix C of the Notation Reference. http://www.lilypond.org/doc/v2.17/Documentation/notation/lilypond-grammar Trevor I stumbled upon that graph several times, but I never understood what it should tell me, not even a little part of it (besides that the numbers are probably line numbers). It's the LilyPond grammar as extracted from the input to Bison (somewhat simplified). Bison generates the parser which then implements this grammar. You need to understand this grammar in order to see whether any suggested changes to the LilyPond language syntax can work sensibly. Trevor Ok, that I know, but what do the symbols mean? Is that any standardized syntax language? From your mail I guess it is called Bison and I googled a bit and will have a look at this: www.gnu.org/software/bison/manual It would be nice to have some description or a link to GNU Bison on this page: http://www.lilypond.org/doc/v2.17/Documentation/notation/lilypond-grammar Because without any reference, I doubt that anyone not knowing Bison can understand it. Thanks for the hint, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: TupletNumber direction
Mr. Morley Thank you for your reply and the references. They should provide hours of learning. Mark -Original Message- From: Thomas Morley [mailto:thomasmorle...@googlemail.com] Sent: Thursday, December 06, 2012 2:42 PM To: Mark Stephen Mrotek Cc: Daniel Rosen; David Kastrup; lilypond-user@gnu.org; David Nalesnik Subject: Re: TupletNumber direction 2012/12/6 Mark Stephen Mrotek carsonm...@ca.rr.com: Hello: The e-mails with suggestions often contain snippets. Some of them I understand (with the help of Frescobaldi), some are a bit beyond my current practice, and all of them could be helpful in the future. If a library of snippets exists, where is it located? Thank you for your kind attention. Mark Stephen Mrotek Well, there is The LilyPond Snippet Repository http://lsr.dsi.unimi.it/LSR/ Although, the LSR currently runs 2.14.2. Or look in /Documentation/snippets http://lilypond.org/doc/v2.17/Documentation/snippets-big-page.html Several snippets, posted on this list, will not be found in one of the above for different reasons. You could find them in the archives, though. See http://lilypond.org/website/contact.html for the links. HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: review of a Mutopia file (why TabStaff gives error here?)
2012/11/26 Nick Payne nick.pa...@internode.on.net: On 24/11/12 13:34, Keith OHara wrote: barre = #(define-music-function (parser location strg music) (number? ly:music?) #{ \set TabStaff.minimumFret = $strg \set TabStaff.restrainOpenStrings = ##t \once\override TextSpanner #'(bound-details left text) = #(format #f B ~@r strg) %{ ... Nick's other style settings ...%} \startTextSpan $music \stopTextSpan \unset TabStaff.minimumFret \unset TabStaff.restrainOpenStrings #}) I was testing this barre function without the tabstaff stuff for use with scores in standard notation, and added a few extra TextSpanner settings to get the output that I want. One problem that I can't fathom is that if I add \override TextSpanner.bound-details.right-broken.text = ##f, so that the small vertical line at the RH end of the spanner is not drawn at the end of a staff when the barre wraps to the following staff, then the line also doesn't get drawn if the barre ends at the right hand end of a staff, without being broken. Why is lilypond thinking that the TextSpanner is breaking across staves when it isn't? In the example below, the end of the second TextSpanner is missing the vertical line unless the override of TextSpanner.bound-details.right-broken.text = ##f is commented out. \version 2.17.6 % Function contributed by Thomas Morley: % http://lsr.dsi.unimi.it/LSR/Item?id=857 barre = #(define-music-function (parser location strg music)(number? ly:music?) #{ %\set TabStaff.minimumFret = $strg %\set TabStaff.restrainOpenStrings = ##t \once\override TextSpanner.bound-details.left.text = #(format #f ~@r strg) \once\override TextSpanner.font-shape = #'upright \once\override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER \once\override TextSpanner.style = #'line \once\override TextSpanner.bound-details.right.text = \markup \draw-line #'(0 . -1) \once\override TextSpanner.to-barline = ##t \once\override TextSpanner.bound-details.right.padding = #1.5 \once\override TextSpanner.bound-details.right-broken.padding = #0.5 \once\override TextSpanner.bound-details.left-broken.padding = #2 \once\override TextSpanner.bound-details.left-broken.text = ##f \once\override TextSpanner.bound-details.right-broken.text = ##f \startTextSpan $music \stopTextSpan %\unset TabStaff.minimumFret %\unset TabStaff.restrainOpenStrings #}) \relative c'' { \key c \major \barre3 { \repeat unfold 48 { d4 } } \barre3 { \repeat unfold 20 { d4 } } \break \repeat unfold 20 { d4 } } Hi Nick, after some private discussion with Federico it turns out, that \articulate can't deal with Wrong false barchecks are returned. I'd recommend to use s*0 instead. I raised a bug-report about it. Best, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Marks above and below simultaneously
Thanks a lot for this--if someone does know how to modify this to accept metronome marks as well, that'd be great. DR -Original Message- From: Xavier Scheuer [mailto:x.sche...@gmail.com] Sent: Thursday, December 06, 2012 5:49 AM To: Daniel Rosen Cc: lilypond-user@gnu.org Subject: Re: Marks above and below simultaneously On 3 December 2012 00:31, Daniel Rosen drose...@gmail.com wrote: OK, I think I've mostly figured this out: \version 2.16.1 marks = { \tempo Tempo s1 \mark \default } \new Score \new Staff \new Voice { c''1 c'' } \new Voice { \marks } \new Dynamics \with { \consists Metronome_mark_engraver \consists Mark_engraver } { \marks } The only problem now is that metronome mark is aligned with the start of the music instead of the time signature. I'm guessing this has something to do with the fact that it's in a Dynamics context--can someone tell me how to fix it? Hi, Wihout the need of a Dynamics context, I personnaly use Neil's #multi-mark-engraver which provide an easy and (IMHO) efficient way to print simultaneous rehearsal marks. I think it could be expanded to metronome marks (maybe a Scheme guru could have a look). I find this multi-mark-engraver so much useful, I hope a nice implementation of it could be integrated directly within LilyPond. I don't know what is the current version of LilyPond installed on the LSR. When this code was produced by Neil it could not be included in the LSR because of LilyPond version installed on it. Cheers, Xavier -- Forwarded message -- From: Xavier Scheuer x.sche...@gmail.com Date: 17 August 2012 14:52 Subject: Re: Simultaneous rehearsal marks and staff spacing To: Nick Payne nick.pa...@internode.on.net Cc: lilypond-user@gnu.org lilypond-user@gnu.org, Neil Puttock n.putt...@gmail.com Hi, I use Neil's great multi-mark-engraver and I can put two simultaneous rehearsal marks with different directions, self-alignment-X, etc. AFAIK it works great and does not exhibit side effect on staff spacing. See http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html for the definition of multi-mark-engraver. Lily code % you should include the definition of multi-mark-engraver % http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html \layout { \context { \Score \remove Mark_engraver \consists #multi-mark-engraver \consists Tweak_engraver } } \relative c'{ \repeat unfold 60 { c4 } \tweak #'self-alignment-X #RIGHT \mark \markup \normalsize \musicglyph #scripts.segno \tweak #'direction #DOWN \tweak #'self-alignment-X #RIGHT \mark \markup \normalsize Menuetto D.C. } End of lily code -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Note duration line (contemporary)
I put a bit more work on it. [...] Very nice! I haven't followed the thread intensively, but looking at the image, I would like to have one minor improvement (probably as an option in case other users don't like this): Similar to a tie, there should be a small horizontal line before a note at the very beginning of a staff if there was a line break. In other words, I'm missing a small horizontal line before the `a natural' in (pseudo) bar 7 and two horizontal lines before the `d' and `e' in (pseudo) bar 21. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: new and context
Noeck noeck.marb...@gmx.de writes: I do not know the parser, but wouldn't it be possible to recognize whether a named context already exists and use that one and if not create a new one. That those lines could shrink to: Staff var { a4 } Staff var …or even (?) \var … Staff and var are valid lyrics. Most complex syntactic constructs start with a keyword starting with backslash for that reason, or with special characters. I think it is always better to make the usage of the software easy, than having to explain a lot in the documentation why this has to be done in a complex way (even if it is easy compared to the knowledge of the developers). Easy is not the same as arbitrary. Your proposal is not anything like any other LilyPond construct, so how would a user be able to guess and/or remember it? But probably, I do not know enough about LilyPond to see the reason for this and the drawbacks my suggestion would have (I wrote it, because I see a small chance that it is not totally rubbish ;) ). Well, it is a bit like closing your eyes and running in order to find a better way through the woods than the existing one which one considers too winded. Yes, a small chance, but it is somewhat optimistic to assume that one will get through and that the original pathmakers were just too stupid to see the simpler way. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user