Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
So for now I will use this workaround : \version "2.25.8" tempoChange = #(define-music-function (interval endscale thenscale music) (ly:duration? scale? (scale? 1) ly:music?) "Make a gradual tempo change over @var{music}, essentially changing speed after every duration of @var{interval},

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
M(core dumped)WE pretty please : tempoChange = #(define-music-function (interval endscale thenscale music) (ly:duration? scale? (scale? 1) ly:music?) "Make a gradual tempo change over @var{music}, essentially changing speed after every duration of @var{interval}, approaching a factor of

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
Well, I think my code structure is the problem. The way I create parts is with this part generator this way : #(typicalPart 'piccolo piccolo structure) And for *every* part (instrument) it merges my \structure variable (\mark, \tempo, i.e. what every body in the orchestra needs) with the music

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
Not quite there yet. Now I get : warning: the property 'tempoWholesPerMinute' must be of type 'positive moment with no grace part', ignoring invalid value '#' Le mer. 23 août 2023, à 09 h 45, David Kastrup a écrit : > > Pierre-Luc Gauthier writes: > > > And what do you know : > > > > git diff

Re: rall. autocalculation function in Scheme

2023-08-23 Thread David Kastrup
Pierre-Luc Gauthier writes: > And what do you know : > > git diff to the rescue. > - > +\include "articulate.ly" > -<< > + \articulate << > > I tried different avenues and \articulate seems to have creeped its > way in in this floating point exception core dump… > > 'No idea why though nor

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
And what do you know : git diff to the rescue. - +\include "articulate.ly" -<< + \articulate << I tried different avenues and \articulate seems to have creeped its way in in this floating point exception core dump… 'No idea why though nor do I need \articulate anyway. closing. > > > No

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
> > No MWE for now but will provide if needed. > Can you think of a case where it wouldn't be needed? Silly me :-) \version "2.25.8" tempoChange = #(define-music-function (interval endscale thenscale music) (ly:duration? scale? (scale? 1) ly:music?) "Make a gradual tempo change over

Re: rall. autocalculation function in Scheme

2023-08-23 Thread David Kastrup
Pierre-Luc Gauthier writes: > I'm not quite sure how to use it correctly yet but I suppose a typical > usage would be : > > \time 6/8 % btw > > \tempoChange 8 1/2 0 { > \skip 2.*4 | > } > > ^ I.e. : To slow down every 8th during 2.*4 to reach (and keep (0)) a > tempo half the speed it

Re: rall. autocalculation function in Scheme

2023-08-23 Thread Pierre-Luc Gauthier
I'm not quite sure how to use it correctly yet but I suppose a typical usage would be : \time 6/8 % btw \tempoChange 8 1/2 0 { \skip 2.*4 | } ^ I.e. : To slow down every 8th during 2.*4 to reach (and keep (0)) a tempo half the speed it was. I get inconsistent results either : -

Re: rall. autocalculation function in Scheme

2023-02-06 Thread David Kastrup
"Adam M. Griggs" writes: > Thank you David. Your code is well above my level for now, but it'll > be great study material. Is it for 2.25.x? I haven't quite got it > working yet, but that's probably my fault. No, it has worked for at least a year or so here. Probably the usage example is less

Re: rall. autocalculation function in Scheme

2023-02-06 Thread Adam M. Griggs
Thank you David. Your code is well above my level for now, but it'll be great study material. Is it for 2.25.x? I haven't quite got it working yet, but that's probably my fault. On Mon, 6 Feb 2023 at 23:24, David Kastrup wrote: > "Adam M. Griggs" writes: > > > Hello list, > > > > I'm trying to

Re: rall. autocalculation function in Scheme

2023-02-06 Thread David Kastrup
"Adam M. Griggs" writes: > Hello list, > > I'm trying to create a Scheme function that will automatically calculate > and enact a *rall*. as a sequence of \tempo assignments. I am aware of the > basic *rall*., *rit*., and *accel*. functions in "articulate.ly" but I > wanted something I have a

Re: rall. autocalculation function in Scheme

2023-02-06 Thread Adam M. Griggs
Thank you Valentin. This is great. Works perfectly and also instructive for a relative newbie to Scheme. On Mon, 6 Feb 2023 at 16:49, Valentin Petzel wrote: > Hello Adam, > > Using #{ ... #} does not magically register the music or something. A > scheme > expression such as (begin ...) will

Re: rall. autocalculation function in Scheme

2023-02-05 Thread Valentin Petzel
Hello Adam, Using #{ ... #} does not magically register the music or something. A scheme expression such as (begin ...) will evaluate to the last statement. So (begin #{ ... #} (enact-tempo-decrease ...)) will simply evaluate to the second part, thus always to #{#}. What you do in fact need

Re: rall. autocalculation function in Scheme

2023-02-05 Thread Valentin Petzel
Hello Adam, your problem is that you are feeding the whole list of tempi into each \tempo command. Instead you should do something like myRall = #(define-music-function (steps duration) (integer? ly:duration?) (let* ((tempi-list (iota steps 100 -1)) (tempi-mus (map (lambda (t) #{

Re: rall. autocalculation function in Scheme

2023-02-05 Thread Adam M. Griggs
I've given it some more work. The \repeat construct is gone, and the displayed messages indicate that my recursion is working correctly. Metronome marks are not yet printed, however. What am I missing? Also, I'm getting a wrong type argument error message when I try to (let* (current-tempo (car

rall. autocalculation function in Scheme

2023-02-05 Thread Adam M. Griggs
Hello list, I'm trying to create a Scheme function that will automatically calculate and enact a *rall*. as a sequence of \tempo assignments. I am aware of the basic *rall*., *rit*., and *accel*. functions in "articulate.ly" but I wanted something I have a little more control over. I need help,