Re: Little scheme question

2006-12-08 Thread Sébastien Gross
On Fri, Dec 08, 2006 at 05:46:03PM +0100, [EMAIL PROTECTED] wrote: > Maybe the code is ugly (my first scheme routine) and may be enhenced. > I thing about: > - use relative music whitout being messed u by octave shifts > - abbility to change tags > - put all in a scm file instead

Re: Little scheme question

2006-12-08 Thread Sébastien Gross
On Wed, Dec 06, 2006 at 09:05:53PM +0100, [EMAIL PROTECTED] wrote: [...] > The first thing to do is to observe what the input music looks like, and > what the output of your function should look like, using > \displayMusic. The purpose of your function will then be to transform > one into the oth

Re: Little scheme question

2006-12-06 Thread Nicolas Sceaux
Sebastien Gross <[EMAIL PROTECTED]> writes: > The question is how to factorise an expression like: > \tag #'tab {4} tag #'score {8 ~ } > to something like: > > \tabRhythme {} #'(4) #'(8 8) > > I thought to write a function like: > > tabRhythme = #(define-music-function (parser location music tab s

Little scheme question

2006-12-06 Thread Sebastien Gross
Hi all I do use lilypond for a while and I have a recurent problem when splitting notes to feat to a beat. Let's see a simple example: [1]: relative c { c4. 4 c8 4 } This produce a nice output but: [2]: \relative c { c4 ~ c8 8 ~ c8 4 } I think this is more readble on a staff. Anyway I also d