Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
> > You could also use append-map which will concatenate the lists without > the inner call to make-sequential-music: > > > { > $(make-sequential-music >(append-map > (lambda (x) (list > #{ $(ly:make-pitch 0 x) 4 #} > #{ \mark \markup \override #'(font-size . -3) 10 #} )) >

Re: Generate music with scheme

2022-04-11 Thread Aaron Hill
On 2022-04-11 9:10 am, Henrik Frisk wrote: \version "2.22.2" { $(make-sequential-music (map (lambda (x) (make-sequential-music (list (make-music 'NoteEvent 'pitch (ly:make-pitch 0 x)

Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
Den mån 11 apr. 2022 kl 12:30 skrev Jean Abou Samra : > > > Le 11/04/2022 à 11:50, Henrik Frisk a écrit : > > Hi, > > > > I have not worked with scheme and lilypond for some years. I realize > > that this is more of a scheme question than Lilypond, but perhaps > > someone knows how to do this. I c

Re: Generate music with scheme

2022-04-11 Thread Henrik Frisk
Hi Leo! Den mån 11 apr. 2022 kl 12:49 skrev Leo Correia de Verdier < leo.correia.de.verd...@gmail.com>: > An addition: > > MarkEvent is not added to the note, but to the staff (it’s often used for > things like rehearsal marks), if you want the markup added to the actual > note you can write it l

Re: Generate music with scheme

2022-04-11 Thread Leo Correia de Verdier
An addition: MarkEvent is not added to the note, but to the staff (it’s often used for things like rehearsal marks), if you want the markup added to the actual note you can write it like this: % \version "2.18.0" \score { { $ (make-sequential-music (map (lambda (x)

Re: Generate music with scheme

2022-04-11 Thread Jean Abou Samra
Le 11/04/2022 à 11:50, Henrik Frisk a écrit : Hi, I have not worked with scheme and lilypond for some years. I realize that this is more of a scheme question than Lilypond, but perhaps someone knows how to do this. I can generate four notes with the following:   \version "2.18.0"   \scor

Re: Generate music with scheme

2022-04-11 Thread Hans Aikema
> On 11 Apr 2022, at 11:51, Henrik Frisk wrote: > >  > Hi, > > I have not worked with scheme and lilypond for some years. I realize that > this is more of a scheme question than Lilypond, but perhaps someone knows > how to do this. I can generate four notes with the following: > > \versi

Generate music with scheme

2022-04-11 Thread Henrik Frisk
Hi, I have not worked with scheme and lilypond for some years. I realize that this is more of a scheme question than Lilypond, but perhaps someone knows how to do this. I can generate four notes with the following: \version "2.18.0" \score { { $ (make-sequential-music (map (lambd