lilypond-user
[Top][All Lists]
Advanced

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

midi volume/ s1*0 trick in Frescobaldi Score Wizard (was Re: Off-topic:


From: Wilbert Berendsen
Subject: midi volume/ s1*0 trick in Frescobaldi Score Wizard (was Re: Off-topic: Automatically create rehearsal files from SATB midi file)
Date: Wed, 22 Jan 2014 20:22:54 +0100

Op Mon, 20 Jan 2014 09:41:06 +0100
Johan Vromans <address@hidden> 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)




reply via email to

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