Re: midi2ly dll error
Ciao Carl, [configure Frescobaldi to reference a specific phyton compiler] > You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper > Applications). In the Frescobaldi Preferences page (Edit/Preferences/Helper Applications) I can set the path for the following applications: Pdf, Midi, SVG, Image, Browser, email, FileManager, Shell, Git. I don't see anything related to phyton compiler. g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fondu problems on El Capitan
On 2016-04-04 01:27, Carl Sorensen wrote: On 4/2/16 2:41 PM, "Mats Behre" wrote: I actually did this, and with some googling I've found out that the method for opening resource forks used in fondu - appending "/rsrc" to the file name - stopped working already in 10.7 Lion. (This surprises me a bit, I thought I'd used Lilypond successfully since then, but perhaps not with resource fork fonts ...) Instead you must append "/..namedfork/rsrc". I have run the following code both under the OS X Liypond Editor and Frescobaldi, with LilyPond 2.19.37 and OS X 10.8.5. \header { composer = \markup \right-align { \override #'(font-name . "Times Bold") "Rodgers/Hart" } } \score{ {c4} \layout{} } It works properly on this system. So either it worked beyond 10.7 or there is something else going on. That actually fits better with my memory, so either the source I found that said it changed in 10.7 was wrong or (more likely) Apple kept supporting both methods in a couple of OS versions. When I tried to find the source again now I found this in https://en.wikipedia.org/wiki/Resource_fork: "From the POSIX interface, the resource fork could be accessed as filename/..namedfork/rsrc or as filename/rsrc; the shorter form was deprecated in OS X 10.4 and removed completely in Mac OS X 10.7.[citation needed]" Unless you've done something special to your system this is obviously not entirely correct ... Mats ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 4 slashes in percent repeat
Thanks for your reply. The samples from http://lsr.di.unimi.it/LSR/Item?id=954 look nice for solo pieces, but my use case is for multiple instruments. Imagine a rock band where the bass has 4 bars that will be repeated, but the rest of the instruments don't have repetitive bars. I've have seen this usage in rock songs for instance. I understand the issue of having 2 empty bars and it seems like having a number above the percent repeat helps. Example: https://musescore.org/sites/musescore.org/files/finale%20four-bar.jpg I've found a workaround for this here: https://music.stackexchange.com/questions/11084/multi-measure-percent-repeats-in-lilypond it uses a simple ./. symbol but can be changed to a .//. by changing: 'PercentEvent to 'DoublePercentEvent still, 4 slashes would be nice. the default lilypond output was having the percent repeat symbol at the beginning of the 4 bar set and the remaining bars empty. is there a standardized approach for a 4 bar set repeat? (for a multi instrument piece) Best regards On April 4, 2016 3:10:19 AM GMT+09:00, Marc Hohl wrote: >Am 03.04.2016 um 15:36 schrieb Thomas Morley: >> 2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma >> : >>> Hello >>> >>> I was wondering if it's possible to have a percent repeat with 4 >>> slashes in LilyPond. Like an \override setting or similar. My use >>> case is when a set of 4 bars repeats n times, like: \repeat percent >>> 4 { c1 | d | e | f | } >>> >>> the most I can get is a double percent symbol .//. is there a way >>> to have .. ? > >I remember vaguely that this issue has been discussed some years ago. > >The problem I see here is that you have two completely empty bars: > >| | .//|//.| | > >So it is not easy at first glance to understand what's going on here. > >I use this abbreviation for my handwritten manuscripts, but here I draw >the slashes wide and slanted enough to cover all four bars. > >These comments aside, it looks as if the underlying C++ routines could >indeed handle more than 2 slashes, but there is no way to call that >routine directly IIUC. > >>> >>> Best regards >> >> >> >> Apart from manually tweaking, I see no reasonable chance. But how >> about: http://lsr.di.unimi.it/LSR/Item?id=954 > >Looks promising and easy to read. > >Marc > > >___ >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: fondu problems on El Capitan
Also on 10.11.4 El Capitan, as originally reported by Mats. Andrew On 4/04/2016, 09:59, "Carl Sorensen" wrote: I get the error message when running on OS X 10.10.5. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fondu problems on El Capitan
On 4/3/16 5:27 PM, "Carl Sorensen" wrote: >On 4/2/16 2:41 PM, "Mats Behre" wrote: >> >>I actually did this, and with some googling I've found out that the >>method for opening resource forks used in fondu - appending "/rsrc" to >>the file name - stopped working already in 10.7 Lion. (This surprises me >>a bit, I thought I'd used Lilypond successfully since then, but perhaps >>not with resource fork fonts ...) Instead you must append >>"/..namedfork/rsrc". > >I have run the following code both under the OS X Liypond Editor and >Frescobaldi, with LilyPond 2.19.37 and OS X 10.8.5. > >\header { > composer = \markup \right-align { \override #'(font-name . "Times >Bold") "Rodgers/Hart" } >} > >\score{ > {c4} >\layout{} >} > I get the error message when running on OS X 10.10.5. Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fondu problems on El Capitan
On 4/2/16 2:41 PM, "Mats Behre" wrote: > >I actually did this, and with some googling I've found out that the >method for opening resource forks used in fondu - appending "/rsrc" to >the file name - stopped working already in 10.7 Lion. (This surprises me >a bit, I thought I'd used Lilypond successfully since then, but perhaps >not with resource fork fonts ...) Instead you must append >"/..namedfork/rsrc". I have run the following code both under the OS X Liypond Editor and Frescobaldi, with LilyPond 2.19.37 and OS X 10.8.5. \header { composer = \markup \right-align { \override #'(font-name . "Times Bold") "Rodgers/Hart" } } \score{ {c4} \layout{} } It works properly on this system. So either it worked beyond 10.7 or there is something else going on. I will check on my other computer (which is running Yosemite) and see what happens there. Thanks, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi2ly dll error
On 4/3/16 3:30 PM, "Gianmaria Lari" wrote: >I made some test and you're right! Using > >C:\Program Files (x86)\LilyPond\usr\bin\python2.4.exe midi2ly.py test.mid > > > >all work correctly. > > >It would be nice to configure Frescobaldi to reference this executable, >so if someone know how to do it would be great. You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper Applications). http://frescobaldi.org/uguide.html#help_preferences_helpers HTH, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Including files via scheme
Am 04.04.2016 um 00:31 schrieb Steven Weber: > > Is there a way to include files via scheme? Basically, what I want to > do is have a function that takes a directory parameter, and includes > all of the .ily files in that directory. > > > > I think I’ve seen something similar to this before, but my google-fu > is failing me today. > Have a look at https://github.com/openlilylib/snippets/tree/master/general-tools/includeHelper This will either teach you how to do it or give you the tool to simply use ;-) HTH Urs > > > Thanks! > > > > --Steven > > > > ___ > 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
Including files via scheme
Is there a way to include files via scheme? Basically, what I want to do is have a function that takes a directory parameter, and includes all of the .ily files in that directory. I think I've seen something similar to this before, but my google-fu is failing me today. Thanks! --Steven ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
2016-04-03 21:02 GMT+02:00 Bernard : > On 03-04-16 18:33, Thomas Morley wrote: >> >> 2016-04-03 16:59 GMT+02:00 Bernard : >> >>> All boils down to what is the \with statement. >> >> Well, >> >> http://www.lilypond.org/doc/v2.19/Documentation/learning-big-page#modifying-context-properties >> seems pretty clear to me. There you can read: >> " When a context is created with a \new command it may be followed >> _immediately_ by a \with { … } block in which the default property >> values are set." >> >> Please tell whats wrong with it. > > For me this, ?? > and that there can be no statement after the \with { ..} block > for the Staff was possible, I did not know. If I understand you correctly, you are wrong, as I tried to point out in my other recent mail. > As I just wrote to Paul Morris. > >> >> >>> If I could view, within an implicit context , like : >>> {c'} >>> the full explicit context like : >>> \score { >>> \new Staff { >>> \new Voice {c'} >>> } >>> } >> >> >> Well, I don't get what problem you seem to have. The following may of >> some help, though: >> >> \version "2.19.36" >> >> #(define (single-context-parent-tree ctx) >>(if (and (ly:context? ctx) (ly:context? (ly:context-parent ctx))) >>(single-context-parent-tree (ly:context-parent ctx)) >>(format #f "~a" ctx))) >> >> printBottomContextParents = >> \context Bottom >> \applyContext >>#(lambda (a) >> (let ((ls (drop-right >> (string-split >>(single-context-parent-tree a) >>(car (string->list "("))) >> 1))) >> (format #t "\n\nThe Context-parent-tree:") >> (format #t >>"\n(Only contexts of type Global, Score, Staff and Voice are >> printed)") >> (for-each >>(lambda (s) >> (format #t "\n~a~a" >>(cond ((string-contains s "Score") >> (make-string 1 #\tab)) >> ((string-contains s "Staff") >> (make-string 2 #\tab)) >> ((string-contains s "Voice") >> (make-string 3 #\tab)) >> (else "")) >>(string-trim-both s (lambda (c) >> (or (eqv? c #\>) >> (eqv? c #\sp) >> (eqv? c #\))) >>ls))) >> >> m = { c''4 } >> >>\new Score = "my-score" >> << >>\new Staff = "staff-1" >> \new Voice = "voice-1" >> << >>\new Voice = "voice-1a" { \voiceOne \m } >>\new Voice = "voice-1b" { \voiceTwo \m } >> >> >>\new Staff = "staff-2" >> \new Voice = "voice-2" >> << >>\new Voice = "voice-2a" { \voiceOne \printBottomContextParents >> \m } >>\new Voice = "voice-2b" { \voiceTwo \m } >> >> >> >> >> >> { \printBottomContextParents \m } >> >> >> You'll get in terminal: >> >> The Context-parent-tree: >> (Only contexts of type Global, Score, Staff and Voice are printed) >> #> #> #> #> #> #> #> #> #> #> >> >> The Context-parent-tree: >> (Only contexts of type Global, Score, Staff and Voice are printed) >> #> #> #> # > > You are right, this does not help me. But I am surprised about you code. It > does work but I have no idea how. No need to understand the coding of the printing-procedures and it would be a heavy task to explain it line by line. If it helps, just enjoy, but be aware it's a first-shot-coding. It's usage is limited and there may be glitches. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
Bernard writes: > On 03-04-16 17:57, Paul Morris wrote: >>> On Apr 3, 2016, at 11:53 AM, Paul Morris wrote: >>> >>> This should help: >>> http://lilypond.org/doc/v2.18/Documentation/notation/changing-context-default-settings#index-_005cwith-3 >> See also: >> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins#index-_005cwith >> >> -Paul > Hi Paul, > > That does help. I found out \with is a very special statement. Not really. \with can be part of other constructs, just like "else" can be part of other constructs in many programming languages (including Scheme). It is not a "statement" at all. > It influence what happens before the statement, it must be executed > just after \new . That is the reason why my examples 4 and 5 did not > work. > And it influence what happens after the statement. If within the Staff > not a additional Staff property can be set. > > No wonder it confuses me. \with introduces "context modifications". They are basic expressions in that they can be stored in variables and passed to functions, but to take effect, they need to be applied to an actually created context, and there are various syntactic constructs for doing that. They "influence what happens after the statement" like any modification to anything. Their influence is restricted to contexts they are applied to (possibly via layout or context definitions or wrapped into other context modifications). -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
2016-04-03 20:55 GMT+02:00 Bernard : > On 03-04-16 17:57, Paul Morris wrote: >>> >>> On Apr 3, 2016, at 11:53 AM, Paul Morris wrote: >>> >>> This should help: >>> >>> http://lilypond.org/doc/v2.18/Documentation/notation/changing-context-default-settings#index-_005cwith-3 >> >> See also: >> >> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins#index-_005cwith >> >> -Paul > > Hi Paul, > > That does help. I found out \with is a very special statement. > > It influence what happens before the statement, it must be executed just > after \new . That is the reason why my examples 4 and 5 did not work. > And it influence what happens after the statement. If within the Staff not a > additional Staff property can be set. No!! To give an image. Think of a house. It is built in a certain way from the fundament up to the roof. (Ofcourse this house may have different rooms.) It likely contains furniture and other stuff. And ofcourse there may be people living in the house. Back to LilyPond. Replace house by Staff, The Staff-context is built from certain engravers. It is sorted among other context (you live in a city). Staff contains other settings as well, the furniture. And is parent to other contexts, p.e. Voices, the rooms. Replace there living people with music. If you write \new Staff \new Voice { c'1 } you have the note c' living in the Voice-context (the room), which is part of Staff (the house) If you want to change something for someone in a room (voice) you can apply tweaks/overrides/context-settings for them. Those are in general sort of temporarary \new Staff \new Voice { c'1 \override NoteHead.color = #red c' \revert NoteHead.color c' } If you want to change it for all people in the room one possibility is to add something to the furniture of the room, i.e. add something to the fundamental settings of said room (voice). \new Staff \new Voice \with { \override NoteHead.color = #red } { c'1 c' c' } Ofcourse this is revertable. \new Staff \new Voice \with { \override NoteHead.color = #red } { c'1 c' \revert NoteHead.color c' } If you want to change it for every room in the house, apply it to the house (staff) \new Staff \with { \override NoteHead.color = #red } \new Voice { c'1 c' \revert Staff.NoteHead.color c' } The difference is more obvious if you watch more than one room (voice): \new Staff << \new Voice \with { \override NoteHead.color = #red } { \voiceOne c'1 c' c' } \new Voice \with { \override NoteHead.color = #cyan } { \voiceTwo c1 c \revert NoteHead.color c } >> \new Staff \with { \override NoteHead.color = #red } << \new Voice \with { \override NoteHead.color = #green } { \voiceOne c'1 \revert NoteHead.color c' \revert Staff.NoteHead.color c' } \new Voice \with { \override NoteHead.color = #cyan } { \voiceTwo c1 \revert NoteHead.color c c } >> For testing such things I always use colors, they are not that invasive. Your own examples uses StaffSymbol-overrides which is bad, if you want to research things. You can't change one and the same grob on the fly. Every of your examples has only _one_ StaffSymbol-grob. So you can't see anything useful. HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi2ly dll error
I made some test and you're right! Using C:\Program Files (x86)\LilyPond\usr\bin\python2.4.exe midi2ly.py test.mid all work correctly. It would be nice to configure Frescobaldi to reference this executable, so if someone know how to do it would be great. Thanks for your help Thomas! Ciao, g. On Sun, Apr 3, 2016 at 2:44 PM, Thomas Morley wrote: > 2016-04-03 1:03 GMT+02:00 Gianmaria Lari : > > Ciao Thomas, > > > > I tried to run directly from the shell but I got same error: > > > > C:\Program Files (x86)\LilyPond\usr\bin>midi2ly.py > > C:\Users\Gianmaria\Dropbox\Music-Study\Violin\Triolet.mid > > Traceback (most recent call last): > > File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in > > > > import midi > > ImportError: No module named midi > > > > I'm using lilypond 2.19.35. > > g. > > It looks like a python problem. > Thus, I'm not sure I can help here, I've neither windows nor do I know > python. > > Some observations, though: > On my Linux-machine I've Python 2.7.9, but "2.19.36" ships Python 2.4.5 > > If I try to invoke midi2ly with system-python I get > Traceback (most recent call last): > File "midi2ly", line 54, in > import midi > ImportError: > /home/hermann/lilydevel/usr/lib/lilypond/current/python/midi.so: > undefined symbol: Py_InitModule4 > > Using lilypond's python all works. > > HTH a bit, > Harm > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
On 03-04-16 18:33, Thomas Morley wrote: 2016-04-03 16:59 GMT+02:00 Bernard : All boils down to what is the \with statement. Well, http://www.lilypond.org/doc/v2.19/Documentation/learning-big-page#modifying-context-properties seems pretty clear to me. There you can read: " When a context is created with a \new command it may be followed _immediately_ by a \with { … } block in which the default property values are set." Please tell whats wrong with it. For me this, and that there can be no statement after the \with { ..} block for the Staff was possible, I did not know. As I just wrote to Paul Morris. If I could view, within an implicit context , like : {c'} the full explicit context like : \score { \new Staff { \new Voice {c'} } } Well, I don't get what problem you seem to have. The following may of some help, though: \version "2.19.36" #(define (single-context-parent-tree ctx) (if (and (ly:context? ctx) (ly:context? (ly:context-parent ctx))) (single-context-parent-tree (ly:context-parent ctx)) (format #f "~a" ctx))) printBottomContextParents = \context Bottom \applyContext #(lambda (a) (let ((ls (drop-right (string-split (single-context-parent-tree a) (car (string->list "("))) 1))) (format #t "\n\nThe Context-parent-tree:") (format #t "\n(Only contexts of type Global, Score, Staff and Voice are printed)") (for-each (lambda (s) (format #t "\n~a~a" (cond ((string-contains s "Score") (make-string 1 #\tab)) ((string-contains s "Staff") (make-string 2 #\tab)) ((string-contains s "Voice") (make-string 3 #\tab)) (else "")) (string-trim-both s (lambda (c) (or (eqv? c #\>) (eqv? c #\sp) (eqv? c #\))) ls))) m = { c''4 } \new Score = "my-score" << \new Staff = "staff-1" \new Voice = "voice-1" << \new Voice = "voice-1a" { \voiceOne \m } \new Voice = "voice-1b" { \voiceTwo \m } >> \new Staff = "staff-2" \new Voice = "voice-2" << \new Voice = "voice-2a" { \voiceOne \printBottomContextParents \m } \new Voice = "voice-2b" { \voiceTwo \m } >> >> { \printBottomContextParents \m } You'll get in terminal: The Context-parent-tree: (Only contexts of type Global, Score, Staff and Voice are printed) # You are right, this does not help me. But I am surprised about you code. It does work but I have no idea how. Sometimes I am just searching in the wrong directions and then it is good that you or others point this out to me. Thanks very much. With regards Bernard Don't care about the Global-context, it's not really user accessable. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
On 03-04-16 17:57, Paul Morris wrote: On Apr 3, 2016, at 11:53 AM, Paul Morris wrote: This should help: http://lilypond.org/doc/v2.18/Documentation/notation/changing-context-default-settings#index-_005cwith-3 See also: http://lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins#index-_005cwith -Paul Hi Paul, That does help. I found out \with is a very special statement. It influence what happens before the statement, it must be executed just after \new . That is the reason why my examples 4 and 5 did not work. And it influence what happens after the statement. If within the Staff not a additional Staff property can be set. No wonder it confuses me. Thanks for your help. Bernard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 4 slashes in percent repeat
Am 03.04.2016 um 15:36 schrieb Thomas Morley: 2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma : Hello I was wondering if it's possible to have a percent repeat with 4 slashes in LilyPond. Like an \override setting or similar. My use case is when a set of 4 bars repeats n times, like: \repeat percent 4 { c1 | d | e | f | } the most I can get is a double percent symbol .//. is there a way to have .. ? I remember vaguely that this issue has been discussed some years ago. The problem I see here is that you have two completely empty bars: | | .//|//.| | So it is not easy at first glance to understand what's going on here. I use this abbreviation for my handwritten manuscripts, but here I draw the slashes wide and slanted enough to cover all four bars. These comments aside, it looks as if the underlying C++ routines could indeed handle more than 2 slashes, but there is no way to call that routine directly IIUC. Best regards Apart from manually tweaking, I see no reasonable chance. But how about: http://lsr.di.unimi.it/LSR/Item?id=954 Looks promising and easy to read. Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
2016-04-03 16:59 GMT+02:00 Bernard : > All boils down to what is the \with statement. Well, http://www.lilypond.org/doc/v2.19/Documentation/learning-big-page#modifying-context-properties seems pretty clear to me. There you can read: " When a context is created with a \new command it may be followed _immediately_ by a \with { … } block in which the default property values are set." Please tell whats wrong with it. > If I could view, within an implicit context , like : > {c'} > the full explicit context like : > \score { > \new Staff { > \new Voice {c'} > } > } Well, I don't get what problem you seem to have. The following may of some help, though: \version "2.19.36" #(define (single-context-parent-tree ctx) (if (and (ly:context? ctx) (ly:context? (ly:context-parent ctx))) (single-context-parent-tree (ly:context-parent ctx)) (format #f "~a" ctx))) printBottomContextParents = \context Bottom \applyContext #(lambda (a) (let ((ls (drop-right (string-split (single-context-parent-tree a) (car (string->list "("))) 1))) (format #t "\n\nThe Context-parent-tree:") (format #t "\n(Only contexts of type Global, Score, Staff and Voice are printed)") (for-each (lambda (s) (format #t "\n~a~a" (cond ((string-contains s "Score") (make-string 1 #\tab)) ((string-contains s "Staff") (make-string 2 #\tab)) ((string-contains s "Voice") (make-string 3 #\tab)) (else "")) (string-trim-both s (lambda (c) (or (eqv? c #\>) (eqv? c #\sp) (eqv? c #\))) ls))) m = { c''4 } \new Score = "my-score" << \new Staff = "staff-1" \new Voice = "voice-1" << \new Voice = "voice-1a" { \voiceOne \m } \new Voice = "voice-1b" { \voiceTwo \m } >> \new Staff = "staff-2" \new Voice = "voice-2" << \new Voice = "voice-2a" { \voiceOne \printBottomContextParents \m } \new Voice = "voice-2b" { \voiceTwo \m } >> >> { \printBottomContextParents \m } You'll get in terminal: The Context-parent-tree: (Only contexts of type Global, Score, Staff and Voice are printed) #https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
> On Apr 3, 2016, at 11:53 AM, Paul Morris wrote: > > This should help: > http://lilypond.org/doc/v2.18/Documentation/notation/changing-context-default-settings#index-_005cwith-3 See also: http://lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins#index-_005cwith -Paul ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
Hi Bernard, > On Apr 3, 2016, at 10:59 AM, Bernard wrote: > > All boils down to what is the \with statement. This should help: http://lilypond.org/doc/v2.18/Documentation/notation/changing-context-default-settings#index-_005cwith-3 I found that section by looking for “\with” in the notation reference index: http://lilypond.org/doc/v2.18/Documentation/notation/lilypond-index You can search that index page quickly by using your browsers “find” command to look for the command you’re interested in on that page. This approach has served me well for finding relevant documentation. HTH, -Paul ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to create a leadsheet from a collection of parts in a score
tisimst gmail.com> writes: > No reason you can't do what you proposed! There is going to be quite a few ways to do what you'd like. I'm not sure they would be any better than yours without seeing a sample of the final score. However, once you implement your idea, it may be helpful and instructive for you to share your file here (or privately with any number of our experienced users) to get some commentary, both about the code structure and general coding style, and potentially things that could be improved/simplified/etc. Lots of good things to learn here from others! > Best, > Abraham Thank you Abraham. I will try to come up with an example soon. I would like to learn how to accomplish this without resorting to kludges that create bad coding. My philosophy in coding is that something should be written once (if at all possible) and then included as many times a necessary. That way, when it's time to do a revision, you just change the single definition and all other instances of that passage get updated as well, rather than having multiple versions of the same notes. That's a nightmare. Talk with the group soon as I get a little further along with the project. Stan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
On 03-04-16 13:30, Simon Albrecht wrote: On 03.04.2016 08:15, Bernard wrote: I would like to comprehend Lilyponds structure. I read http://lilypond.org/doc/v2.18/Documentation/learning/contexts-explained and https://docs.fedoraproject.org/en-US/Fedora/16/html/Musicians_Guide/sect-Musicians_Guide-LilyPond-Syntax-Commands-Contexts.html That does seems logical. So if I comprehend right : Code implicit : {c'} Code explicit : \score { \new Staff { \new Voice {c'} } } Are similar. Not identical but similar. 1) Is that correct? Yes, that’s what is explained in the Learning Manual. 3) I would like to use and to be able to disable the \with statement. I don’t quite get what you want to do here. Please give more explanation, and an example. Ok Simon, I tried to solve my problem myself, if I had enough info. But that make it to abstract. Please see the attached examples. 1 + 2) The first two are clear now. 3) With a \with statement does execute as expected. 4) Does use the \with statement but within "{ }" This generate the error : unexpected \new 5) As 5 but "<< >>" Also generate an error 6) Does execute, but without a \with statement and without a voice 7) As 6 but with a voice, generate an error My real code is much more complicated. All boils down to what is the \with statement. That seems to be a very specific statement, which controls also what happens outside the statement. I have read http://lilypond.org/doc/v2.18/Documentation/notation/interpretation-contexts.en.html and associates pages. I assume it is related, but I do not really get it. If I could view, within an implicit context , like : {c'} the full explicit context like : \score { \new Staff { \new Voice {c'} } } That would help a lot for understanding (and bug fixing). I just want to comprehend this \with statement and contexts. Thanks for your help, Bernard \version "2.18.2" %1) Implicit {c'} %2) Explicit \score { \new Staff { \new Voice {c'} } } %3) Does run, using \with statement \score { \new Staff \with { \override StaffSymbol.line-count = #0 } \new Voice {c'} } % 4)Generate error, using {} arround \with statement \score { \new Staff { \with { \override StaffSymbol.line-count = #0 } } \new Voice {c'} } % 5) Generate error, using << and >> arround \with statement \score { \new Staff << \with { \override StaffSymbol.line-count = #0 } >> \new Voice {c'} } % 6) Does execute without \with statement and without voice \score { \new Staff { \override Staff.StaffSymbol.line-count = #0 } } % 7) Generate error, without \with statement \score { \new Staff { \override Staff.StaffSymbol.line-count = #0 } % generate unexpected \new \new Voice {c'} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 4 slashes in percent repeat
2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma : > Hello > > I was wondering if it's possible to have a percent repeat with 4 slashes in > LilyPond. > Like an \override setting or similar. > My use case is when a set of 4 bars repeats n times, like: > \repeat percent 4 { c1 | d | e | f | } > > the most I can get is a double percent symbol .//. > is there a way to have .. ? > > Best regards Apart from manually tweaking, I see no reasonable chance. But how about: http://lsr.di.unimi.it/LSR/Item?id=954 Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi2ly dll error
2016-04-03 1:03 GMT+02:00 Gianmaria Lari : > Ciao Thomas, > > I tried to run directly from the shell but I got same error: > > C:\Program Files (x86)\LilyPond\usr\bin>midi2ly.py > C:\Users\Gianmaria\Dropbox\Music-Study\Violin\Triolet.mid > Traceback (most recent call last): > File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in > > import midi > ImportError: No module named midi > > I'm using lilypond 2.19.35. > g. It looks like a python problem. Thus, I'm not sure I can help here, I've neither windows nor do I know python. Some observations, though: On my Linux-machine I've Python 2.7.9, but "2.19.36" ships Python 2.4.5 If I try to invoke midi2ly with system-python I get Traceback (most recent call last): File "midi2ly", line 54, in import midi ImportError: /home/hermann/lilydevel/usr/lib/lilypond/current/python/midi.so: undefined symbol: Py_InitModule4 Using lilypond's python all works. HTH a bit, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond structure / implicit - explicit / with statement
On 03.04.2016 08:15, Bernard wrote: I would like to comprehend Lilyponds structure. I read http://lilypond.org/doc/v2.18/Documentation/learning/contexts-explained and https://docs.fedoraproject.org/en-US/Fedora/16/html/Musicians_Guide/sect-Musicians_Guide-LilyPond-Syntax-Commands-Contexts.html That does seems logical. So if I comprehend right : Code implicit : {c'} Code explicit : \score { \new Staff { \new Voice {c'} } } Are similar. Not identical but similar. 1) Is that correct? Yes, that’s what is explained in the Learning Manual. 3) I would like to use and to be able to disable the \with statement. I don’t quite get what you want to do here. Please give more explanation, and an example. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user