|
From: | Gilles THIBAULT |
Subject: | Re: make-music function question |
Date: | Mon, 12 Jan 2009 10:07:49 +0100 |
Do you know the \displayMusic function ? It is very useful, and i think it is the base to start. \displayMusic {a1 \sustainOn a \sustainOff }for example, will give you scheme descriptionPlease, help me with my own music function creation. How can I modify music object or create a new one with existing music data and add sustain event to it? If I understand correct, I must use make-music function and then use (make-span-event 'SustainEvent START) call to generate sustain event . Can anybody make short example, what such procedure must contain? It is my furst music function and I have not any experience with it. --
of music and allow you to understand how things work. You see here that you have to add a (make-music 'SustainEvent 'span-direction -1) to the 'elements property of an 'EventChord event.So the next step is to learn how to add an element to a list, with scheme. You can go to the reference manual of GUILE.
http://www.gnu.org/software/guile/manual/guile.html All about list is here : http://www.gnu.org/software/guile/manual/guile.html#ListsAt end, you can read LSR, there is a lot examples doing things very close that you want to do.
For example : http://lsr.dsi.unimi.it/LSR/Item?id=82 Good luck.Gilles
[Prev in Thread] | Current Thread | [Next in Thread] |