Re: [LAU] Yoshimi oddity

From: cal <cal@email-addr-hidden>
Date: Sun Sep 27 2009 - 22:49:37 EEST

Folderol wrote:
> The attached patch (Sharp Synth)behaves very differently on yoshimi to
> zyn. The notes C1 to F1 and C2 to F2 are extremely dull sounding, and
> the overall level is higher.
>
> I can't really pin it down, but my suspicion is that yoshimi is
> ignoring the resonance setting and applying it's own strange one.

I need to wait for the sun to come up before I get too serious with it,
but this just might be the error in question -

{{{
--- yoshimi-dev.orig/src/Synth/Resonance.cpp
+++ yoshimi-dev/src/Synth/Resonance.cpp
@@ -67,8 +67,10 @@
 
     for (int i = 1; i < n; ++i)
     {
- float x = (logf(freq * i) - l1) / l2;
         // compute where the n-th hamonics fits to the graph
+ float x = (logf(freq * i) - l1) / l2;
+ if (x < 0.0)
+ x = 0.0;
 
         x *= N_RES_POINTS;
         float dx = x - floorf(x);
@@ -99,8 +101,10 @@
             sum = Prespoints[i];
     if (sum < 1.0)
         sum = 1.0;
- float x = (logf(freq) - l1) / l2;
     // compute where the n-th hamonics fits to the graph
+ float x = (logf(freq) - l1) / l2;
+ if (x < 0.0)
+ x = 0.0;
 
     x *= N_RES_POINTS;
     float dx = x - floorf(x);
}}}

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Mon Sep 28 00:15:08 2009

This archive was generated by hypermail 2.1.8 : Mon Sep 28 2009 - 00:15:09 EEST