summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-22 18:10:44 +0100
committerRobin Gareus <robin@gareus.org>2014-01-22 18:10:44 +0100
commitfb8af167784e7e2a016bc16e195ffb902c4c48e2 (patch)
treefd11f7f6d91aaa361b4f82b8e5bea8d4222c4688
parent9dd3ceddc4412e3057e0542961aa3811577e411c (diff)
attenuate master volume
-rw-r--r--libs/plugins/reasonablesynth.lv2/rsynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c
index 3f3db579b8..eff01d8d69 100644
--- a/libs/plugins/reasonablesynth.lv2/rsynth.c
+++ b/libs/plugins/reasonablesynth.lv2/rsynth.c
@@ -185,7 +185,7 @@ static void synthesize_sineP (RSSynthChannel* sc,
for (i=0; i < n_samples; ++i) {
float env = adsr_env(sc, note);
if (sc->adsr_cnt[note] == 0) break;
- const float amp = vol * env * .6;
+ const float amp = vol * env;
if (amp > 1e-10) {
left[i] += amp * sinf(2.0 * M_PI * phase);
left[i] += .300 * amp * sinf(2.0 * M_PI * phase * 2.0);
@@ -224,7 +224,7 @@ static void process_key (void *synth,
RSSynthChannel* sc = &rs->sc[chn];
const int8_t vel = sc->miditable[note];
const int8_t msg = sc->midimsgs[note];
- const float vol = /* master_volume */ 0.25 * fabsf(vel) / 127.0;
+ const float vol = /* master_volume */ 0.1 * fabsf(vel) / 127.0;
const float phase = sc->phase[note];
sc->midimsgs[note] = 0;