synthing

a waveform sequencing synth on the web
Log | Files | Refs | Submodules

commit 1733d962c3079bf9c4dc5e3e2c49b895bc0369aa
parent 40ce4d289455086776cee41829e0e84ce06d25b4
Author: Massimo Siboldi <mdsiboldi@gmail.com>
Date:   Mon,  5 Mar 2018 20:43:23 -0800

Volume should be applied to first waveform as well

Diffstat:
Msrc/App/index.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/App/index.js b/src/App/index.js @@ -155,8 +155,8 @@ class App extends Component { (((curVal * iteration) + valToAdd) / (iteration + 1)); const firstTone = tones.shift(); return tones.reduce( - (totalArray, currTone, i) => ( - totalArray.map( + (totalWaveform, currTone, i) => ( + totalWaveform.map( (val, j) => ( runningAverage( val, @@ -167,7 +167,7 @@ class App extends Component { ) ), - firstTone.waveform + helpers.scale(firstTone.waveform, firstTone.volume) ); }