lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make-music function question


From: Gilles THIBAULT
Subject: Re: make-music function question
Date: Mon, 12 Jan 2009 10:07:49 +0100



Please, 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.
--
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 description
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#Lists

At 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]