[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    midi volume/ s1*0 trick in Frescobaldi Score Wizard (was Re: Off-topic: Automatically create rehears
From:       Wilbert Berendsen <wbsoft () xs4all ! nl>
Date:       2014-01-22 19:22:54
Message-ID: 20140122202254.30832ee8 () sweelinck
[Download RAW message or body]

Op Mon, 20 Jan 2014 09:41:06 +0100
Johan Vromans <jvromans@squirrel.nl> schreef:

> BTW: Whoever maintains the new score wizard: the "s1*0\f" trick to get
> the midi volume right is no longer necessary for LilyPond 2.18.

I changed it in the following way:

diff --git a/frescobaldi_app/scorewiz/parts/vocal.py b/frescobaldi_app/scorewiz/parts/vocal.py
index 79857bc..1d7500d 100644
--- a/frescobaldi_app/scorewiz/parts/vocal.py
+++ b/frescobaldi_app/scorewiz/parts/vocal.py
@@ -615,7 +615,8 @@ class Choir(VocalPart):
                 # Append voice to the rehearsalMidi function
                 name = voice2id[voice] + str(num or '')
                 seq = ly.dom.Seq(ly.dom.Voice(name, parent=ly.dom.Staff(name, parent=choir)))
-                ly.dom.Text('s1*0\\f', seq) # add one dynamic
+                if builder.lyVersion < (2, 18, 0):
+                    ly.dom.Text('<>\\f', seq) # add one dynamic
                 ly.dom.Identifier(ref, seq) # add the reference to the voice
                 
                 book = ly.dom.Book()

It seems to work correctly.
Wilbert

-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic