[PlanetCCRMA] slv2-examples

Martin Tarenskeen m.tarenskeen at zonnet.nl
Sun May 31 05:19:49 PDT 2009


On Sat, May 30, 2009 at 03:33:08AM -0400, Orcan Ogetbil wrote:

> I got co-maintainership on these packages and I just updated them all
> on F-10 and F-11. They will be in the testing repo for about two
> weeks. Please report issues if you encounter any.
> 
> And as a bonus, I packaged xsynth-dssi
> https://bugzilla.redhat.com/show_bug.cgi?id=503263

Hi Orcan,

I just found a strange bug (?) in whysynth (compiled by myself from 
upstream sources), and the same bug is also present in xsynth and 
wsynth.

Not many people will notice it. These synths can save and load 
their synth patches in an ASCII text file. This makes the files sort of 
human-readable, unlike SysEx files that are in binary format.

But now I found that the system language can influence the way floating 
point numbers are written to the file. For example 1.2345 would be 
1,2345 on my own Dutch fedora system. 

This is no problem if I only load patches that I have saved myself on 
the same system. But it is a problem if I try to load patchbanks created 
by others, like the example patchbanks that come with the whysynth 
distribution.

As a workaround on the commandline I clear the LANG environment 
variable:

# unset LANG

before starting whysynth. This fixes the problem.
Is there a more elegant solution ?

I have also reported this bug to the original author of whysynth.

I have attached a diff that shows the difference between the "String 
Thingy" patch from whysynth when saved on an English and a Dutch 
language system.

-- 

Martin Tarenskeen
-------------- next part --------------
--- String Thingy.Whysynth.EN	2009-05-31 13:47:52.000000000 +0200
+++ String Thingy.Whysynth.NL	2009-05-31 13:47:02.000000000 +0200
@@ -1,25 +1,25 @@
 # WhySynth patch
 WhySynth patch format 0 begin
 name String%20Thingy
-oscY 1 2 21 0 -0.00623956 9 0.00316481 0 0 0 0 0 0 1 0
-oscY 2 2 21 0 0 11 0.00316481 0 0 0 0 0 0 0 1
-oscY 3 2 21 0 0 13 0.00362681 0 0 0 0 0 0 0.344492 0.375222
-oscY 4 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0.5
-vcfY 1 2 0 4.91945 2 0.220795 0.265056 0
-vcfY 2 2 1 5.38048 2 0.133895 0.247413 0
-mix 0 0 0 1 0.984671 0.319207 0.95404 0.680793
-volume 0.730666
+oscY 1 2 21 0 -0,00623956 9 0,00316481 0 0 0 0 0 0 1 0
+oscY 2 2 21 0 0 11 0,00316481 0 0 0 0 0 0 0 1
+oscY 3 2 21 0 0 13 0,00362681 0 0 0 0 0 0 0,344492 0,375222
+oscY 4 0 0 0 0 0 0 0 0 0 0 0 0 0,5 0,5
+vcfY 1 2 0 4,91945 2 0,220795 0,265056 0
+vcfY 2 2 1 5,38048 2 0,133895 0,247413 0
+mix 0 0 0 1 0,984671 0,319207 0,95404 0,680793
+volume 0,730666
 effects 0 0 0 0 0 0 0 0
-glide 0.984375
+glide 0,984375
 bend 2
 lfoY g 1 0 0 0 0
-lfoY v 1 0 0.1 0 0
-lfoY m 0.307589 0 0.1 0 0
-mlfo 120.296 0
-egY o 2 1 0.127513 1 3 0.1 1 3 0.1 1 0 3.04009 0.196778 0 0 0 0
-egY 1 0 3 0.1 1 3 0.1 1 3 0.1 1 3 0.0250322 0 0 0 0 0
-egY 2 0 3 0.1 1 3 0.1 1 3 0.1 1 3 0.2 0 0 0 0 0
-egY 3 0 3 0.1 1 3 0.1 1 3 0.1 1 3 0.2 0 0 0 0 0
-egY 4 0 3 0.1 1 3 0.1 1 3 0.1 1 3 0.2 0 0 0 0 0
+lfoY v 1 0 0,1 0 0
+lfoY m 0,307589 0 0,1 0 0
+mlfo 120,296 0
+egY o 2 1 0,127513 1 3 0,1 1 3 0,1 1 0 3,04009 0,196778 0 0 0 0
+egY 1 0 3 0,1 1 3 0,1 1 3 0,1 1 3 0,0250322 0 0 0 0 0
+egY 2 0 3 0,1 1 3 0,1 1 3 0,1 1 3 0,2 0 0 0 0 0
+egY 3 0 3 0,1 1 3 0,1 1 3 0,1 1 3 0,2 0 0 0 0 0
+egY 4 0 3 0,1 1 3 0,1 1 3 0,1 1 3 0,2 0 0 0 0 0
 modmix 1 0 0 0 0
 WhySynth patch end


More information about the PlanetCCRMA mailing list