Re: Help with music-function generating music

2014-03-27 Thread Paul Morris
the list returned by > ly:music-deep-copy. Thanks! That does look like a better approach. -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160879.html Sent from the User mailing li

Re: Help with music-function generating music

2014-03-27 Thread David Kastrup
Urs Liska writes: >> \version "2.18.0" >> >> myNotes = >> #(define-music-function (parser location note num) >> (ly:music? number?) >> "Returns a series of notes. @var{note} is repeated @var{num} times. >> @var{note} is supposed to be a single note." >> ;; iteration by named let >

Re: Help with music-function generating music

2014-03-27 Thread Urs Liska
message in context: http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160867.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypo

Re: Help with music-function generating music

2014-03-26 Thread Paul Morris
s for i and nts (loop (+ i 1) (append nts (list (ly:music-deep-copy note) (else ;; when done, return the music (make-music 'SequentialMusic 'elements nts) { \myNotes g'16 #8 } -- View this message in context: http://lilypond

Re: Help with music-function generating music

2014-03-26 Thread TaoCG
sic is the best starting point to learn the scheme way of writing music. For example \displayMusic { c8[ c c c] } will show you how to beam a group. Also I don't really get your last point. What kind of override do you want to apply to the notes? Regards, Tao -- View this message in context: ht

Re: Help with music-function generating music

2014-03-26 Thread Paul Morris
nt alt) 'duration (ly:make-duration 2 0 1) { \makeFourQuarterNotes #1 #1 #0 \makeFourQuarterNotes #1 #2 #0 \makeFourQuarterNotes #0 #1 #-1/2 \makeFourQuarterNotes #0 #2 #1/2 } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Help-with-music-f

Re: Help with music-function generating music

2014-03-26 Thread Urs Liska
- View this message in context: http://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160857.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://

Re: Help with music-function generating music

2014-03-26 Thread Paul Morris
://lilypond.1069038.n5.nabble.com/Help-with-music-function-generating-music-tp160833p160857.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Help with music-function generating music

2014-03-26 Thread Urs Liska
Hi all, I'm completely at a loss and need to get some help and pushes in the right direction. I'm for the first time trying to write a music function that actually gerenates music events on its own, i.e. that doesn't use #{ #} to output music. The sections in the "Scheme tutorial" in the Ext