Re: Need help from Sibelius/Dorico owners

2024-09-24 Thread Werner LEMBERG
Dear LilyPonders, >> in case you are an owner or a user of a recent Sibelius or Dorico >> version, please send me privately screenshots of an import of the >> two attached MusicXML files [...] four helpful guys sent me their results for both programs – thanks a lot! Werner

Re: Need help from Sibelius/Dorico owners

2024-09-24 Thread Werner LEMBERG
> in case you are an owner or a user of a recent Sibelius or Dorico > version, please send me privately screenshots of an import of the > two attached MusicXML files (and please also tell which software > version you are using). [Just in case: I have access to MuseScore > and Finale, so I don't n

Need help from Sibelius/Dorico owners

2024-09-23 Thread Werner LEMBERG
Folks, in case you are an owner or a user of a recent Sibelius or Dorico version, please send me privately screenshots of an import of the two attached MusicXML files (and please also tell which software version you are using). [Just in case: I have access to MuseScore and Finale, so I don't ne

Re: need help building a Scheme function

2024-06-25 Thread Lukas-Fabian Moser
[Sorry! I wrote this two days ago on a train in one of the famous German cell connection dead zones - and then forgot to actually send it later.] Hi Kieren, The last "m" in your innermost (if ...) is unnecessary: As with the difference between "for" and "map" in plain Scheme, the return value

Re: need help building a Scheme function

2024-06-23 Thread Kieren MacMillan
Hi Lukas! Thanks for the patient and helpful tutorial(s). :) > The last "m" in your innermost (if ...) is unnecessary: As with the > difference between "for" and "map" in plain Scheme, the return value of the > lambda function in for-some-music gets discarded ("for" functions are > supposed t

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
The last "m" in your innermost (if ...) is unnecessary: As with the difference between "for" and "map" in plain Scheme, the return value of the lambda function in for-some-music gets discarded ("for" functions are supposed to _do_ something, not _return_ something). No, it doesn't. It is a boole

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
Hi David, If you don't want to call upon undocumented internals of LilyPond (the (@@ (lily) ...) bit), you can just use [with-output-to-string] Wow, thanks! I hadn't encountered this possibility yet. Also thanks for pointing out the possibility of in-place modification. Lukas

Re: need help building a Scheme function

2024-06-23 Thread Lukas-Fabian Moser
Hi Kieren, for-some-music does not return music. It works on music in-place. So the last thing in your music function must not be for-some-music but rather the music that you have been working on. So… %%% SNIPPET BEGINS adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitc

Re: need help building a Scheme function

2024-06-22 Thread Kieren MacMillan
Hi David, > for-some-music does not return music. It works on music in-place. So > the last thing in your music function must not be for-some-music but > rather the music that you have been working on. So… %%% SNIPPET BEGINS adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:p

Re: need help building a Scheme function

2024-06-22 Thread David Kastrup
Kieren MacMillan writes: > I tried a few times, but got errors (about returning > unspecified). Hints appreciated. for-some-music does not return music. It works on music in-place. So the last thing in your music function must not be for-some-music but rather the music that you have been worki

Re: need help building a Scheme function

2024-06-22 Thread Kieren MacMillan
Hi David, > This will also adjust eis and eses to e. Note names are numbers and can > be compared with = . (make-music 'NoteEvent m) is silly and creates an > unnecessary copy. You can just use m instead. Thanks — current version: %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define

Re: need help building a Scheme function

2024-06-22 Thread David Kastrup
Kieren MacMillan writes: > Hi again, > >> There is no necessity to return a new NoteEvent; you can just change >> pitch on the existing one. >> >> Music functions are allowed to modify their music arguments in place. > > This is what I have so far, which appears to do what I want: > > %%% SNIPP

Re: need help building a Scheme function

2024-06-22 Thread Kieren MacMillan
Hi again, > There is no necessity to return a new NoteEvent; you can just change > pitch on the existing one. > > Music functions are allowed to modify their music arguments in place. This is what I have so far, which appears to do what I want: %%% SNIPPET BEGINS \version "2.25.11" adjustPitc

Re: need help building a Scheme function

2024-06-21 Thread David Kastrup
Lukas-Fabian Moser writes: > Elaborating on David's explanation, it might be instructive to study the > output of: > > \version "2.25.9" > > mappingFunction = > #(define-music-function (music) (ly:music?) >(music-map > (lambda (m) > (ly:message "Considering music:\n~a\n-\n"

Re: need help building a Scheme function

2024-06-21 Thread David Kastrup
Lukas-Fabian Moser writes: > But: Whether you use music-map or map-some-music, your helper function > (your lambda) is expected to return the new music into which the given > argument m should be transformed. So in any case, your lambda function > should return music - in the trivial case, it cou

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, Am 21.06.24 um 20:25 schrieb Kieren MacMillan: Hi all, Thank you for the rapid-iteration non-isochronous Scheme class! :) Before I do the next step, is this optimal at this point? %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi Lukas, > Elaborating on David's explanation, it might be instructive to study the > output of: > [snip] > In short: music-map really considers every music object in a music tree. That was instructive — thanks! Kieren. __ My work day may look differ

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, I’m a little confused that the output of %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? ly:music?) (music-map (lambda (m) (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m) musi

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi David, > To say something is "optimal", you have to state your objective. I guess the immediate objective was to output [in the log] a list of pitches given the 'music' input. > music-map is used for changing music, and you don't appear to do any > useful changes to the music. In fact, you

Re: need help building a Scheme function

2024-06-21 Thread David Kastrup
Kieren MacMillan writes: > Hi all, > > Thank you for the rapid-iteration non-isochronous Scheme class! :) > > Before I do the next step, is this optimal at this point? > > %%% SNIPPET BEGINS > \version "2.25.11" > > adjustPitch = > #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi all, Thank you for the rapid-iteration non-isochronous Scheme class! :) Before I do the next step, is this optimal at this point? %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? ly:music?) (music-map (lambda

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi David, > If you want to only look at note events, you need to check for them > yourself. music-map is not discriminating. Ah! Lovely Socratic lesson. :) Thanks, Kieren. __ My work day may look different than your work day. Please do not feel oblig

Re: need help building a Scheme function

2024-06-21 Thread David Kastrup
Kieren MacMillan writes: > Hi again, > > I’m a little confused that the output of > > %%% SNIPPET BEGINS > \version "2.25.11" > > adjustPitch = > #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? > ly:music?) >(music-map > (lambda (m) > (ly:message "Pitch is:

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi Timothy, > Your lambda function for the mapping returns the value of ly:message, which > is #. You need to return some music. Changing the lambda > function to > (lambda (m) > (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m) > maps the music to itself without any changes. Oh

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi again, I’m a little confused that the output of %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? ly:music?) (music-map (lambda (m) (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m) music)) \

Re: need help building a Scheme function

2024-06-21 Thread Timothy Lanfear
On 21/06/2024 17:36, Kieren MacMillan wrote: Hi Lukas! All right… already back for more specific help. I struggled with map-some-music, and failed. Scanned through Jean’s [amazing] “Extending” docs — yes, yes, I need to RTM on that one, page-by-page! — and found an example with music-map, so

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi Lukas! All right… already back for more specific help. I struggled with map-some-music, and failed. Scanned through Jean’s [amazing] “Extending” docs — yes, yes, I need to RTM on that one, page-by-page! — and found an example with music-map, so tried that instead. Also failed. %%% SNIPPET

Re: need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hi L-F! >> Is map-some-music the correct next move? > Yes. Thanks! > I take it you're only asking for confirmation you're on the right track? :-) Correct. I’ll try to ask more specific questions when I need more than confirmation. > So I only suggest use the ly:pitch? predicate for pitchIn/pi

Re: need help building a Scheme function

2024-06-21 Thread Lukas-Fabian Moser
Hi Kieren, Am 21.06.24 um 16:39 schrieb Kieren MacMillan: %%% SNIPPET BEGINS \version "2.25.11" adjustPitch = #(define-music-function (pitchIn pitchOut music) (ly:music? ly:music? ly:music?) (ly:message "Pitch is: ~a" (ly:pitch-notename (ly:music-property pitchIn 'pitch))) music) mel

need help building a Scheme function

2024-06-21 Thread Kieren MacMillan
Hey list! Trying to work up to being a bigger and better contributor to The ’Pond. Found and copied that “transpose major to minor” scale function in the previous thread I contributed to, but (a) don’t really know if it’s the best way to do what the OP wanted, (b) thought it might be overkill f

Re: Need help displaying note names in 2.22

2023-08-08 Thread Viktor Mastoridis
Dear all, Thank you very much for the time taken to comment on my problem. I tried all the suggestions one by one - the best solution was to upgrade to Lilypond 2.24 (much easier than I thought) and to use Jean's code below: \version "2.24.1" \layout { \context { \NoteNames noteNameFu

Re: Need help displaying note names in 2.22

2023-08-07 Thread Jean Abou Samra
Le lundi 07 août 2023 à 19:00 +0100, Viktor Mastoridis a écrit : > How do I upgrade to Lilypond 2.24 on Mint 21 (Ubuntu LTS 22.4) without braking > the system? Just follow the tutorial, it will not interfere with the system in any way. https://lilypond.org/doc/v2.24/Documentation/learning/graph

Re: Need help displaying note names in 2.22

2023-08-07 Thread Viktor Mastoridis
On Sunday, 6 August 2023, Jean Abou Samra wrote: > Oops, except that this is not going to work in 2.22, since > \with-string-transformer is new in 2.24. > > However, 2.22 is not supported anymore, I would recommend upgrading to > 2.24 anyway. > How do I upgrade to Lilypond 2.24 on Mint 21 (Ubunt

Re: Need help displaying note names in 2.22

2023-08-06 Thread Silvain Dupertuis
Le 06.08.23 à 16:59, David Kastrup a écrit : Strange... I tried a few things, but did not find a way to make it work. I noticed  2 things : 1. In this association table : chimenames = #`(     ("c" . "C")     ("cis" . "C♯")     ("d" . "D")     ("es" . "E♭") ) It only takes into account notes

Re: Need help displaying note names in 2.22

2023-08-06 Thread Jean Abou Samra
Oops, except that this is not going to work in 2.22, since \with-string- transformer is new in 2.24. However, 2.22 is not supported anymore, I would recommend upgrading to 2.24 anyway. signature.asc Description: This is a digitally signed message part

Re: Need help displaying note names in 2.22

2023-08-06 Thread Jean Abou Samra
Le dimanche 06 août 2023 à 18:36 +0200, Robin Bannister a écrit : > David Kastrup wrote: > > > > Note names have changed to use ♯ and ♭ characters, so you need to look > > up "c♯" instead of "cis". > > > I got no hits that way. That's because the sharp sign is printed with \markup \accidenta

Re: Need help displaying note names in 2.22

2023-08-06 Thread Robin Bannister
David Kastrup wrote: Note names have changed to use ♯ and ♭ characters, so you need to look up "c♯" instead of "cis". I got no hits that way. An alternative is to add printAccidentalNames = #'lily to the NoteNames \with. And if I change the "es" lookup key to the more canonical "ees" it

Re: Need help displaying note names in 2.22

2023-08-06 Thread Michael Werner
Hi Victor, On Sat, Aug 5, 2023 at 7:12 PM Viktor Mastoridis < viktor.mastori...@gmail.com> wrote: > Hello, > > I have been using the syntax below for several years; the last code update > I did was in December 2022, and it worked well since. > Today I noticed that I can't get the sharp/flat note

Re: Need help displaying note names in 2.22

2023-08-06 Thread David Kastrup
Silvain Dupertuis writes: > Strange... > I tried a few things, but did not find a way to make it work. > > I noticed  2 things : > > 1. In this association table : > chimenames = > #`( >     ("c" . "C") >     ("cis" . "C♯") >     ("d" . "D") >     ("es" . "E♭") > ) > It only takes into account no

Re: Need help displaying note names in 2.22

2023-08-06 Thread Silvain Dupertuis
Strange... I tried a few things, but did not find a way to make it work. I noticed  2 things : 1. In this association table : chimenames = #`(     ("c" . "C")     ("cis" . "C♯")     ("d" . "D")     ("es" . "E♭") ) It only takes into account notes of names with one single character as the default

Need help displaying note names in 2.22

2023-08-05 Thread Viktor Mastoridis
Hello, I have been using the syntax below for several years; the last code update I did was in December 2022, and it worked well since. Today I noticed that I can't get the sharp/flat note names properly. C# & Eb are not displayed. Can you please help? --- \version "2.22.1" chime

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Jean Abou Samra
Le mardi 09 mai 2023 à 08:14 +, Werner LEMBERG a écrit : > Yes, evaluated, sorry. It is evaluated when baz is executed. ``` (define (foo bar) (define (baz) (if bar "yes" "no")) (set! bar #t) (baz)) (foo #f) ⇒ "yes" ``` signature.asc Description: This is a digitally signed mess

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Werner LEMBERG
>> >> D'oh, this should be >> >> ``` >> (define (foo bar) >>   (define (baz) >>     ... >>     (if bar)    ; Is 'bar' visible here?  If yes, when is >>   ...   ; 'bar' expanded?  At the time 'baz' is >>     ; defined? At the time 'baz' is executed? >> ``` > > I do

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread dfro
On 5/9/23 03:22, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : Jean, I think \translate-scaled will work for me! This is a wonderful tool.  In the following example, \concat allows me to get the symbols closer together. The -.2 values for x in /translate-scaled o

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread dfro
On 5/9/23 03:22, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : Jean, I think \translate-scaled will work for me! This is a wonderful tool.  In the following example, \concat allows me to get the symbols closer together. The -.2 values for x in /translate-scaled o

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Jean Abou Samra
Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : > > Jean, > > I think \translate-scaled will work for me! This is a wonderful tool.  In the > following example, \concat allows me to get the symbols closer together. The > -.2 values for x in /translate-scaled on the third \markup example d

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Jean Abou Samra
Le mardi 09 mai 2023 à 04:26 +, Werner LEMBERG a écrit : > > D'oh, this should be > > ``` > (define (foo bar) >   (define (baz) >     ... >     (if bar)    ; Is 'bar' visible here?  If yes, when is >   ...   ; 'bar' expanded?  At the time 'baz' is >     ; defin

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Werner LEMBERG
> BTW, I suggest to cover one more issue with local variables, namely > whether arguments to a function are seen in sub-functions, which are > IMHO a very good addition to `let` and `let*` to write clean and > readable code – often much more readable than anonymous lambda > expressions. > > Examp

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Werner LEMBERG
> Second, you need to use `let` here, not `define`. See > > https://extending-lilypond.gitlab.io/en/scheme/local-variables.html BTW, I suggest to cover one more issue with local variables, namely whether arguments to a function are seen in sub-functions, which are IMHO a very good addition to `l

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread dfro
On 5/8/23 21:06, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 20:55 -0400, dfro a écrit : Fellow music engravers, I have a feature request. Perhaps, this has been discussed already. Sometimes, I would like the spacial formatting in a \markup command to respond to changes in fontsize, so th

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Jean Abou Samra
Le lundi 08 mai 2023 à 20:55 -0400, dfro a écrit : > Fellow music engravers, > > I have a feature request. Perhaps, this has been discussed already. > > Sometimes, I would like the spacial formatting in a \markup command to > respond to changes in fontsize, so that all of the \markup spacing wil

Need help using math in markup command definition, and a feature request.

2023-05-08 Thread dfro
Fellow music engravers, I have a feature request. Perhaps, this has been discussed already. Sometimes, I would like the spacial formatting in a \markup command to respond to changes in fontsize, so that all of the \markup spacing will change proportional to the change in fontsize. I think havi

Re: Need help with usage of breve

2022-12-23 Thread Jean Abou Samra
Le 23/12/2022 à 16:50, Dave Seidel a écrit : fis1\breve This contains - fis : a pitch, - 1 : a duration, whole note, - \breve : another duration, breve. Therefore, the "fis" and "1" go together, as pitches and durations always do, and the "\breve" is alone without a pitch, which tells LilyP

Need help with usage of breve

2022-12-23 Thread Dave Seidel
Hi all. I am building a score with a lot of tied whole notes, and I'd like to make it more concise by using breves. However, I am clearly not understanding how to use them properly. Example using ties: \version "2.22.2" \score { \new Staff \relative { \clef treble \new Voice \

Re: need help with 2.22 on mac

2022-12-12 Thread Flaming Hakama by Elaine
> As I mentioned, I did try 2.23, and I applied convert-ly to all my files. >> > > The problem I ran into was: > > Preprocessing graphical objects...ERROR: In procedure > %resolve-variable: > Unbound variable: laissez-vibrer::print > > However, unlike most of the previous errors that could

Re: need help with 2.22 on mac

2022-12-11 Thread Jean Abou Samra
> Le 12 déc. 2022 à 08:34, Flaming Hakama by Elaine > a écrit : > Thinking about this more, it is likely that I did install the previous 2.22 > version from homebrew. > > Because it certainly was a lot slower than any previous version. > > I guess I'll try that again. > > Besides wanting/n

Re: need help with 2.22 on mac

2022-12-11 Thread Jean Abou Samra
Le 12 déc. 2022 à 08:22, Flaming Hakama by Elaine a écrit :On Sun, Dec 11, 2022 at 3:53 PM Jean Abou Samra wrote:Le 12/12/2022 à 00:45, Flaming Hakama by Elaine a écrit : > tl;dr: > > Does anyone have a download link of lilypond 2.22 that will work for > mac OS 12.6.1? > > I

Re: need help with 2.22 on mac

2022-12-11 Thread Flaming Hakama by Elaine
On Sun, Dec 11, 2022 at 10:28 PM Jean Abou Samra wrote: > Le 12/12/2022 à 03:51, Mark Probert a écrit : > > The brew collection has lily pond at 2.22.2 (with Guile 2.2). > > > > If you already have brew installed then it is simply a matter of, from > > the command line, running > > > > $ brew in

Re: need help with 2.22 on mac

2022-12-11 Thread Flaming Hakama by Elaine
On Sun, Dec 11, 2022 at 3:53 PM Jean Abou Samra wrote: > Le 12/12/2022 à 00:45, Flaming Hakama by Elaine a écrit : > > tl;dr: > > > > Does anyone have a download link of lilypond 2.22 that will work for > > mac OS 12.6.1? > > > > I recently had to reinstall my mac OS. It is now 12.6.1. > > Previ

Re: need help with 2.22 on mac

2022-12-11 Thread Jean Abou Samra
Le 12/12/2022 à 03:51, Mark Probert a écrit : The brew collection has lily pond at 2.22.2 (with Guile 2.2). If you already have brew installed then it is simply a matter of, from the command line, running  $ brew install lilypond Hope this helps. I would recommend against this, because Li

Re: need help with 2.22 on mac

2022-12-11 Thread Mark Probert
The brew collection has lily pond at 2.22.2 (with Guile 2.2). If you already have brew installed then it is simply a matter of, from the command line, running $ brew install lilypond Hope this helps. -mark. On 12 Dec 2022 at 10:45:41, Flaming Hakama by Elaine < ela...@flaminghakama.com> wro

Re: need help with 2.22 on mac

2022-12-11 Thread Jean Abou Samra
Le 12/12/2022 à 00:45, Flaming Hakama by Elaine a écrit : tl;dr: Does anyone have a download link of lilypond 2.22 that will work for mac OS 12.6.1? I recently had to reinstall my mac OS.  It is now 12.6.1. Previously I had an earlier version of 12, most likley 12.1, based on the fact that th

need help with 2.22 on mac

2022-12-11 Thread Flaming Hakama by Elaine
tl;dr: Does anyone have a download link of lilypond 2.22 that will work for mac OS 12.6.1? I recently had to reinstall my mac OS. It is now 12.6.1. Previously I had an earlier version of 12, most likley 12.1, based on the fact that the last time I had to do this was in January 2022. I had been

Re: Need help with two tweaks

2022-10-01 Thread Valentin Petzel
Hello Sam, for 1) you can do something like \layout { \context { \Staff \remove Dot_column_engraver } \context { \Voice \consists Dot_column_engraver } } << { 2. } \\ { \once \override NoteColumn.force-hshift = #2.5 2. } >> This is not as dynamic as we’d want it to b

Re: Need help with two tweaks

2022-10-01 Thread Lukas-Fabian Moser
Hi Sam, *Tweak 2* current result: tweak-2-ties.jpg soprano line:  | bf2 af4 | alto line:  | f( ef) c | tenor line:  || bass line: | g2 d4 | problem: I want to add a slur between the two 1st tenor notes and another one between the two second tenor notes. Please always give a compilable

Need help with two tweaks

2022-10-01 Thread Sam Carmalt
Hi - I can't figure out how to tweak two bits of my score so it looks the way I want. *Tweak 1* current result [image: tweak-1-dots.jpg] current code soprano line: bf4 | 2.| 2. alto line: 4 | \once \override NoteColumn.force-hshift = #2.0 2. | \once \override NoteColumn.force-hshift = #1.7 2.

Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-28 Thread Kevin Cole
On Mon, Mar 28, 2022 at 4:42 AM Paul Hodges wrote: > > I think you mean \mergeDifferentlyDotted > >> From: Mats Bengtsson >> >> You don't happen to have a \mergeDifferentlyHeadedOn somewhere in your full >> score code, do you? Ah. I had both: Due to my continued inability to hold the whole of i

Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-28 Thread Paul Hodges
I think you mean \mergeDifferentlyDotted Paul From: Mats Bengtsson To: , Kevin Cole Sent: 28/03/2022 7:50 Subject: Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.) On 2022-03-28 03:54, Kevin Cole wrote: Ah. I think

Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-27 Thread Mats Bengtsson
On 2022-03-28 03:54, Kevin Cole wrote: Ah. I think you're right. And, when I do what you suggested in the minimal example, it works as described: Your example looks like the image I sent. But when I inject it into the full score I get the attached, which still

Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-27 Thread Kevin Cole
On Sun, Mar 27, 2022 at 5:04 PM Carl Sorensen wrote: > > On Sun, Mar 27, 2022 at 2:01 PM Kevin Cole wrote: >> >> In my more-than-minimal example, the b16 from the first voice gets >> merged with the b8. from the second voice. When I tried to create a >> minimum (non-working) example, the two didn

RE: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-27 Thread Mark Stephen Mrotek
@gnu.org] On Behalf Of Kevin Cole Sent: Sunday, March 27, 2022 1:01 PM To: lilypond-user mailinglist Subject: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.) In my more-than-minimal example, the b16 from the first voice gets merged with the b8. from the second voice. When I

Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-27 Thread Carl Sorensen
On Sun, Mar 27, 2022 at 2:01 PM Kevin Cole wrote: > In my more-than-minimal example, the b16 from the first voice gets > merged with the b8. from the second voice. When I tried to create a > minimum (non-working) example, the two didn't merge. But, what I want > below is for the b8. from the firs

Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

2022-03-27 Thread Kevin Cole
In my more-than-minimal example, the b16 from the first voice gets merged with the b8. from the second voice. When I tried to create a minimum (non-working) example, the two didn't merge. But, what I want below is for the b8. from the first voice to merge with the b8. from the second voice. In oth

Re: Need help to familiarize with Lilypond's internals

2021-11-07 Thread Jean Abou Samra
Le 07/11/2021 à 21:52, CieMaKat a écrit : Hello, I'm a software engineer and I am working on my personal side project related to rendering sheet music. I didn't want to reinvent the wheel so I decided to check Lilypond source code (I find Lilypond the best music typesetter software I know) to

Need help to familiarize with Lilypond's internals

2021-11-07 Thread CieMaKat
Hello, I'm a software engineer and I am working on my personal side project related to rendering sheet music. I didn't want to reinvent the wheel so I decided to check Lilypond source code (I find Lilypond the best music typesetter software I know) to understand basic concepts which could help me

lilypond-book.py can hang on Windows 10; I know why; I need help to fix it

2021-02-04 Thread Daniel Connors
Jean, I like your solution of creating the tmpfile in the current directory. Thank you for your suggestion for using LyLuaTeX. Dan

Re: lilypond-book.py can hang on Windows 10; I know why; I need help to fix it

2021-02-04 Thread David Nalesnik
Dan, On Thu, Feb 4, 2021 at 1:47 PM Daniel Connors wrote: > > A simple fix is to add these two lines of code to book_latex.py just before > the temporary file is created, just after line 205: > > if(sys.platform == 'win32'): > tempfile.tempdir = 'C:/Temp' > > If lilypond-book.py is runni

lilypond-book.py can hang on Windows 10; I know why; I need help to fix it

2021-02-04 Thread Jean Abou Samra
Back on January 12, 2021, I wrote to this forum about a problem I was having running the example from https://lilypond.org/doc/v2.19/Documentation/usage/an-example-of-a-musicological-document for embeddi

lilypond-book.py can hang on Windows 10; I know why; I need help to fix it

2021-02-04 Thread Daniel Connors
A simple fix is to add these two lines of code to book_latex.py just before the temporary file is created, just after line 205: if(sys.platform == 'win32'): tempfile.tempdir = 'C:/Temp' If lilypond-book.py is running on a Windows platform, create the temporary file in C:/Temp. Then we do

lilypond-book.py can hang on Windows 10; I know why; I need help to fix it

2021-02-03 Thread Daniel Connors
Back on January 12, 2021, I wrote to this forum about a problem I was having running the example from https://lilypond.org/doc/v2.19/Documentation/usage/an-example-of-a-musicological-document for embedding Lilypond code inside a LaTeX document. The python script, lilypond-book.py starts up, I get

Re: Need help with Scheme code

2019-12-19 Thread Paolo Prete
t) >> >> Thanks, >> P >> >> On Wed, Dec 18, 2019 at 6:57 PM wrote: >> >>> Without giving you any solution, I can give you a hint: >>> >>> >>> >>> Write the music in the traditional way, with and without your >>> modi

Re: Need help with Scheme code

2019-12-19 Thread Stefano Troncaro
with and without your >> modification. >> >> >> >> In your lilypond file put: >> >> \displayMusic oldmusic >> >> \displayMusic newmusic >> >> >> >> And what you can see wht you have to write by observing the differences >> >>

Re: Need help with Scheme code

2019-12-18 Thread Paolo Prete
m:* lilypond-user > *On Behalf Of *Paolo Prete > *Sent:* Wednesday, December 18, 2019 3:30 PM > *To:* Aaron Hill > *Cc:* lilypond-user > *Subject:* Re: Need help with Scheme code > > > > Thanks again. > > Now, from what I see, I can extract if #mus is a Beam >

RE: Need help with Scheme code

2019-12-18 Thread lilypond
Jaap From: lilypond-user On Behalf Of Paolo Prete Sent: Wednesday, December 18, 2019 3:30 PM To: Aaron Hill Cc: lilypond-user Subject: Re: Need help with Scheme code Thanks again. Now, from what I see, I can extract if #mus is a Beam with (ly:music-property mus 'name) --> B

Re: Need help with Scheme code

2019-12-18 Thread Paolo Prete
Thanks again. Now, from what I see, I can extract if #mus is a Beam with (ly:music-property mus 'name) --> BeamEvent After that, how can I set, inside the same function you wrote, a variable with the beam-thickness value of the corresponding Beam? something like (pseudo code): (set! myVar curre

Re: Need help with Scheme code

2019-12-17 Thread Aaron Hill
On 2019-12-17 6:01 pm, Paolo Prete wrote: And thanks again to the Scheme-master Aaron. I appreciate the kind words, though I doubt my experience rises to the level of "master". One last thing: how can I arrange that function so to obtain output-attributes = output-attributes + id ? For ex

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
And thanks again to the Scheme-master Aaron. One last thing: how can I arrange that function so to obtain output-attributes = output-attributes + id ? For example: if output-attributes is (('a' . 'aa') ('i' . 'ii')) it must become:(('a' . 'aa') ('i' . 'ii') ('id' . 'foobar_1')) On Wed,

Re: Need help with Scheme code

2019-12-17 Thread Aaron Hill
On 2019-12-17 4:21 pm, Paolo Prete wrote: Hi Stefano, unfortunately, it doesn't increment the counter globally, and the two ids in the SVG file are identical You will need to define a music function so that the (serial) procedure is called on each occurrence. Here's an option that rolls in

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
Hi Kieren, yes, of course! please let me know how to use it On Wed, Dec 18, 2019 at 1:32 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > The ids must be: foobar_1, foobar_2 etc. > > Can they be foobar.1, foobar.2, etc. instead? > Lilypond has a nice built-in mechan

Re: Need help with Scheme code

2019-12-17 Thread Kieren MacMillan
Hi Paolo, > The ids must be: foobar_1, foobar_2 etc. Can they be foobar.1, foobar.2, etc. instead? Lilypond has a nice built-in mechanism for that naming/pointer convention. Hope that helps! Kieren. Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenm

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
Hi Stefano, unfortunately, it doesn't increment the counter globally, and the two ids in the SVG file are identical On Wed, Dec 18, 2019 at 12:12 AM Stefano Troncaro wrote: > Hi Paolo, > > After some googling and tweaking I managed to make the counter you wished: > > \version "2.19.83" > > #(de

Re: Need help with Scheme code

2019-12-17 Thread Stefano Troncaro
Hi Paolo, After some googling and tweaking I managed to make the counter you wished: \version "2.19.83" #(define* (make-counter #:optional (cnt 0) (inc 1)) (lambda () (set! cnt (+ cnt inc)) cnt)) #(define serial (make-counter)) token = -\tweak output-attributes #`((id . ,(string-a

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
In addition, Stefano, If you have time, please try the snippet for tuning the beams (second attachment). Any test of these things are very helpful for me. On Tue, Dec 17, 2019 at 11:18 PM Stefano Troncaro wrote: > Hi Paolo, > > Look at this: > > \version "2.19.83" > > token = -\tweak output-attr

Re: Need help with Scheme code

2019-12-17 Thread Paolo Prete
Thanks Stefano! On Tue, Dec 17, 2019 at 11:18 PM Stefano Troncaro wrote: > Hi Paolo, > > Look at this: > > \version "2.19.83" > > token = -\tweak output-attributes #'((id . "foobar")) \etc > > \relative { c'4 d8 -\token [ e ] f2 } > > That achieves half of what you want. Now, how to make "foobar

Re: Need help with Scheme code

2019-12-17 Thread Stefano Troncaro
Hi Paolo, Look at this: \version "2.19.83" token = -\tweak output-attributes #'((id . "foobar")) \etc \relative { c'4 d8 -\token [ e ] f2 } That achieves half of what you want. Now, how to make "foobar" automatically increment I don't know, perhaps someone else can help with that. Hope that h

Need help with Scheme code

2019-12-17 Thread Paolo Prete
Hello all, In order to automate the reverse process of the lilypond+javascript snippets (write the GUI modifications of the grobs to the .ly file) I need to make the following code work: % token = \tweak output-attributes #'((id . "foobar")) \score { { a8 \token

RE: Need help with Lily Pond File

2019-03-17 Thread Mark Stephen Mrotek
: Need help with Lily Pond File Dear all, Thank you very much for your replies, and I apologize for the inconvenience. As I am blind, and it was late when I sent the e-mail, I didn't feel I could figure out the errors on my own. Thomas, I asked permission of the people who transcribed the

Re: Need help with Lily Pond File

2019-03-17 Thread Yerko Difonis
Dear all, Thank you very much for your replies, and I apologize for the inconvenience. As I am blind, and it was late when I sent the e-mail, I didn't feel I could figure out the errors on my own. Thomas, I asked permission of the people who transcribed the music into braille for me, so that I coul

Re: Need help with Lily Pond File

2019-03-16 Thread Thomas Morley
Am Sa., 16. März 2019 um 13:52 Uhr schrieb Andrew Bernard : > There's a convention on this list to just post Minimal Working Exmaples > (MWE), to make it possible for people to help, rather than full scores. > Making an MWEW instead of posting a huge chunk is a valuable exercise because > I fin

Re: Need help with Lily Pond File

2019-03-16 Thread Andrew Bernard
HI Yerko, and welcome. Can I make the politest suggestion? People on the list always object when I say how I think things should be done, but this file is illegible and unwieldy, with very, very long lines, making it a really hard slog to help you. A good practice is to have each bar on one line.

  1   2   3   >