summaryrefslogtreecommitdiff
path: root/libs/plugins
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-10-26 17:33:07 +0200
committerRobin Gareus <robin@gareus.org>2013-10-26 17:33:07 +0200
commitdcd610323138882a350bae4334630542b46a5869 (patch)
treec3532bde15f799ef42cbd4cfcca4a1aa36ff5b2d /libs/plugins
parente4514117190f398a0a672e25ecb48bc53cf9414b (diff)
make reasonable synth a bit more piano-like.
(overtone + decay time)
Diffstat (limited to 'libs/plugins')
-rw-r--r--libs/plugins/reasonablesynth.lv2/rsynth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c
index c876c5b067..ff88d58b64 100644
--- a/libs/plugins/reasonablesynth.lv2/rsynth.c
+++ b/libs/plugins/reasonablesynth.lv2/rsynth.c
@@ -189,7 +189,7 @@ static void synthesize_sineP (RSSynthChannel* sc,
left[i] += .080 * amp * sinf(2.0 * M_PI * phase * 4.0);
//left[i] -= .007 * amp * sinf(2.0 * M_PI * phase * 5.0);
//left[i] += .010 * amp * sinf(2.0 * M_PI * phase * 6.0);
- //left[i] += .020 * amp * sinf(2.0 * M_PI * phase * 7.0);
+ left[i] += .020 * amp * sinf(2.0 * M_PI * phase * 7.0);
phase += fq;
right[i] += amp * sinf(2.0 * M_PI * phase);
right[i] += .300 * amp * sinf(2.0 * M_PI * phase * 2.0);
@@ -197,13 +197,13 @@ static void synthesize_sineP (RSSynthChannel* sc,
right[i] -= .080 * amp * sinf(2.0 * M_PI * phase * 4.0);
//right[i] += .007 * amp * sinf(2.0 * M_PI * phase * 5.0);
//right[i] += .010 * amp * sinf(2.0 * M_PI * phase * 6.0);
- //right[i] -= .020 * amp * sinf(2.0 * M_PI * phase * 7.0);
+ right[i] -= .020 * amp * sinf(2.0 * M_PI * phase * 7.0);
if (phase > 1.0) phase -= 2.0;
}
sc->phase[note] = phase;
}
-static const ADSRcfg piano_adsr = {{ 5, 1300, 100}, { 1.0, 0.0}, {0,0,0}};
+static const ADSRcfg piano_adsr = {{ 5, 800, 100}, { 1.0, 0.0}, {0,0,0}};
/*****************************************************************************/