[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to write a scheme function to override glissando properties
From: |
Marc Hohl |
Subject: |
Re: how to write a scheme function to override glissando properties |
Date: |
Sun, 19 Dec 2010 20:13:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
Am 16.12.2010 17:04, schrieb Patrick Schmidt:
[...]
Hi Marc,
thanks for your solution but I'm still trying to find out what's wrong
with the scheme function I posted. I discussed the need for this
function with Carl and he gave me some advice:
http://www.mail-archive.com/address@hidden/msg32745.html.
It might be impossible to find a general set of values for staves and
tab staves. If I don't succeed I learned something about writing
scheme functions, at least. Maybe you can spot the mistake in the
function?
Hm, I don't know what's wrong - I tried something like
slide =
#(define-music-function (parser location len thick beg end) (number?
number? ly:music? ly:music?)
#{
\once \override Glissando #'minimum-length = $len
\once \override Glissando #'thickness = $thick
\once \override Glissando #'springs-and-rods =
#ly:spanner::set-spacing-rods
$beg \glissando $end
#})
myMusic = \relative c' {
\slide #10 #5 a4 b4\3
}
\score {
<<
\new Staff {
\new Voice {
\clef "treble_8"
\myMusic
}
}
\new TabStaff {
\new TabVoice {
\myMusic
}
}
>>
}
and that doesn't work either. I don't understand why ...
Sorry for being not very helpful.
Marc
- how to write a scheme function to override glissando properties, Patrick Schmidt, 2010/12/14
- Re: how to write a scheme function to override glissando properties, Marc Hohl, 2010/12/14
- Re: how to write a scheme function to override glissando properties, Patrick Schmidt, 2010/12/16
- Re: how to write a scheme function to override glissando properties, jakob lund, 2010/12/19
- Re: how to write a scheme function to override glissando properties, Patrick Schmidt, 2010/12/19
- Re: how to write a scheme function to override glissando properties, Marc Hohl, 2010/12/20
- Re: how to write a scheme function to override glissando properties, Marc Mouries, 2010/12/23