Re: oddly corrupt midi - need help

2013-05-14 Thread Madoka Machitani
I'm sorry, I noticed my solution doesn't work. On Tue, May 14, 2013 at 4:54 PM, Madoka Machitani wrote: > Hi, Tom! > > To answer question 1 (and only 1), you need to add volta repeats to voice > two as well. > [omitting the wrong part] So, It seems you have to explicit

Re: oddly corrupt midi - need help

2013-05-14 Thread Madoka Machitani
Hi, Tom! To answer question 1 (and only 1), you need to add volta repeats to voice two as well. For that matter, utilizing the "global" variable is a good practice, I think. Namely, Add the following lines to the variable "global": \repeat volta 2 { s1*3/4*3 } \alternative { {s1*3/4} {s1*3/4

Re: scheme function help

2013-05-06 Thread Madoka Machitani
On Mon, May 6, 2013 at 10:59 PM, David Kastrup wrote: [...] > In general, your approach is fundamentally flawed: it is very bad idea > to write code relying on user-specified music to be of a particular type > (in this case, SequentialMusic) without verifying it. [...] > I think he is just stru

Re: scheme function help

2013-05-06 Thread Madoka Machitani
Hi, David! On Mon, May 6, 2013 at 6:40 PM, David Kastrup wrote: > Madoka Machitani writes: > > > Now, is it correct to assume you are trying to achieve something like > > this? \insMark "a" musical-sequence > > > > If so, the function would be: >

Re: scheme function help

2013-05-06 Thread Madoka Machitani
Hi, Stjepan On Mon, May 6, 2013 at 4:57 PM, Stjepan Horvat wrote: > Ok..thanks Madoka.. > It wasn't to me clear where i have to use the display-scheme-music > function => in lilypond scheme-sandbox..and that it had to be > music..ok..that is now clear.. > > but your function does not work for me

Re: scheme function help

2013-05-05 Thread Madoka Machitani
Hi, Let me first point out that you have to remember object type matters. ly:music-property expects music object, not pitch object or anything else, so you have to give a music object to it, like this: (display-scheme-music (car (ly:music-property #{ \mark "A" c'4 #} 'el

Re: lilypond scheme-sandbox

2013-05-02 Thread Madoka Machitani
Maybe this is a documentation error. I tried the sequence in another scheme implementation (racket) and resulted in a similar output, implying separate functions are processed one by one, whose outputs intersperesed each time with command prompts. So, you need to enclose multiple functions (comman

Re: cre - - sen - - do

2013-04-29 Thread Madoka Machitani
Hello :) This is trivial, but having functions like these might help ease typing a lot: #(define (span-maker type) (lambda (text) (make-music 'type 'span-direction START 'span-type 'text 'span-text text))) textCresc = #(define-event-func