Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Jean Abou Samra
Le lundi 12 juin 2023 à 13:49 +0200, Lib Lists a écrit : > > Dear Jean, fantastic, thank you so much! And all clear. > > Concerning the staff size and page layout, I think I've found > something that is not clear to me from the documentation. When > reducing the staff size to accommodate all the

Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Lib Lists
On Mon, 12 Jun 2023 at 12:44, Jean Abou Samra wrote: > > [Adding back the list] Oops, thank you! > > Le lundi 12 juin 2023 à 12:23 +0200, Lib Lists a écrit : > > > On Mon, 12 Jun 2023 at 10:58, Jean Abou Samra > > <[j...@abou-samra.fr](mailto:j...@abou-samra.fr)> wrote: > > Dear Jean, all

Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Jean Abou Samra
[Adding back the list] Le lundi 12 juin 2023 à 12:23 +0200, Lib Lists a écrit : > On Mon, 12 Jun 2023 at 10:58, Jean Abou Samra > <[j...@abou-samra.fr](mailto:j...@abou-samra.fr)> wrote: > Dear Jean, all clear, thank you so much! I was exactly trying to > figure out the accidental issue and

Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Valentin Petzel
Hello Lib, #(ly:music-transpose {\mus} i) does not make sense. \mus is Lilypond syntax, not scheme. Either do #{ \mus #} to parse this as Lilypond expression, or do mus (instead of { \mus }) to scope this as Scheme object. Also ly:music-transpose does take a pitch as second argument, so if

Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Jean Abou Samra
Le lundi 12 juin 2023 à 10:23 +0200, Lib Lists a écrit : > In your example, I changed the line: #{ \new Staff { \scaleDurations #(cons > 60 i) \mus } #}) > to this: #{ \new Staff { \scaleDurations #(cons 60 i)  #(ly:music-transpose > {\mus} i)  } #}) > but clearly there's something wrong,

Re: How to generate \scaleDurations values procedurally

2023-06-12 Thread Lib Lists
On Mon, 12 Jun 2023 at 00:08, Jean Abou Samra wrote: > > Le dimanche 11 juin 2023 à 23:55 +0200, Lib Lists a écrit : > > Hello, I'm (re)working on a series of pieces for player piano. I'd like to > find a way to generate all the \scaleDurations values so that I don't have to > type them by

Re: How to generate \scaleDurations values procedurally

2023-06-11 Thread Jean Abou Samra
Le dimanche 11 juin 2023 à 23:55 +0200, Lib Lists a écrit : > Hello, > I'm (re)working on a series of pieces for player piano. I'd like to > find a way to generate all the \scaleDurations values so that I don't > have to type them by hand. In the example below they follow a simple > pattern

How to generate \scaleDurations values procedurally

2023-06-11 Thread Lib Lists
Hello, I'm (re)working on a series of pieces for player piano. I'd like to find a way to generate all the \scaleDurations values so that I don't have to type them by hand. In the example below they follow a simple pattern (60/60k 60/59, 60/58, etc.). Unfortunately my knowledge of Scheme is very