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

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

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

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

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

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

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

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
Kevin, Form what I see, the voices are interchanged. What is in voiceOne should be voiceTwo and vice versa. See: https://lilypond.org/doc/v2.22/Documentation/learning/i_0027m-hearing-voices Mark -Original Message- From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@g

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

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

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

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.

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-26 16:02, Karlin High wrote: On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? I had not, though that

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Karlin High
On 6/26/2018 5:41 PM, Aaron Hill wrote: So is the only option, then, to just dive into the code at this point? Have you seen this post by Stéfano Troncaro? -- Karlin High Missouri, USA ___

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Aaron Hill
On 2018-06-25 22:42, Urs Liska wrote: Also, not directly. But you can make it happen. Basically you have to define some variable in the top-level file, say #(define is-main-file #t). Then you can check in the included file for #(if (defined? is-main-file) That was the general idea I was thinkin

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread David Kastrup
Nah writes: > Thanks. That gives me a good starting point. Will it work in a > procedure? Something like: > createLessons = #(make-scheme-function ( ... )) > > Can I assume the infinite loop to be caused by the ".ly" suffix being > the same as the suffix of the main file? If I use ".ily" suffix f

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-26 Thread Nah
Thanks. That gives me a good starting point. Will it work in a procedure? Something like: createLessons = #(make-scheme-function ( ... )) Can I assume the infinite loop to be caused by the ".ly" suffix being the same as the suffix of the main file? If I use ".ily" suffix for all the scores and

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 25.06.2018 um 21:19 schrieb Nah: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something like a snippet t

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Urs Liska
Am 26.06.2018 um 01:25 schrieb Aaron Hill: On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution is

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Vaughan McAlley
On 26 June 2018 at 05:19, Nah wrote: > I have a project with 100+ scores, each in their own file. I tried to create > a Scheme function to \include each of them. After searching the archive, I > got the general idea of why my solution isn't working. However, I didn't > find something like a snippe

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread Aaron Hill
On 2018-06-25 15:51, David Kastrup wrote: Nah writes: I have a project with 100+ scores, each in their own file. I tried to create a Scheme function to \include each of them. After searching the archive, I got the general idea of why my solution isn't working. However, I didn't find something

Re: Need help creating Scheme functions to automate includes of many scores in a project

2018-06-25 Thread David Kastrup
Nah writes: > I have a project with 100+ scores, each in their own file. I tried to > create a Scheme function to \include each of them. After searching the > archive, I got the general idea of why my solution isn't > working. However, I didn't find something like a snippet that I could > coax in

Re: Need help with lilypond-book

2017-07-18 Thread 410172 Chief
Good point. I did this and after some error management I got the compiling going fine. Thanks. 2017-07-18 14:44 GMT+02:00 Phil Holmes : > It seems clear that the system cannot find the lilypond executable. Have > you tried adding the path to lilypond to your PATH variable? > > -- > Phil Holmes

Re: Need help with lilypond-book

2017-07-18 Thread Phil Holmes
It seems clear that the system cannot find the lilypond executable. Have you tried adding the path to lilypond to your PATH variable? -- Phil Holmes - Original Message - From: 410172 Chief To: lilypond-user@gnu.org Sent: Tuesday, July 18, 2017 1:17 PM Subject: Need help wi

Re: Need help with tuplets on my first score

2017-07-16 Thread Mike Solomon
Hey Liam, Welcome to LilyPond! Unfortunately, I cannot help you out because your request lacks a few key elements. A couple suggestions: 1) In order to get help faster, please send the list a minimal example of what you are trying to accomplish in the .ly file.  The picture is excellent, but

Re: Need help with tuplets on my first score

2017-07-15 Thread Malte Meyn
Am 16.07.2017 um 00:56 schrieb Liam Umbs: For my first score, I am transcribing Chopin’s Waltz in A Minor, and I am having trouble with the tuplets in measure 22. The ly file is how mine looks, and the picture is how it should look. Also confusing to me is the ottava I’m not quite sure

Re: need help

2016-11-08 Thread Federico Bruni
Il giorno lun 7 nov 2016 alle 20:00, Carl Sorensen ha scritto: On 11/7/16 8:48 AM, "Urs Liska" wrote: Am 07.11.2016 um 15:35 schrieb David Sumbler: On Sun, 2016-11-06 at 11:28 +0100, Malte Meyn wrote: Am 06.11.2016 um 11:25 schrieb David Sumbler: How do I find out what changes have

  1   2   >