From 09d072988f09134c0ba257f678dc221f917c35f7 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Thu, 21 Jun 2018 16:19:10 -0400 Subject: [PATCH] create Effects in EffectChain in given order The first created Effect is closest to the input. The last is closest to the output. --- src/effects/EffectChain.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/effects/EffectChain.js b/src/effects/EffectChain.js index bef3775..dcef3bc 100644 --- a/src/effects/EffectChain.js +++ b/src/effects/EffectChain.js @@ -33,14 +33,12 @@ class EffectChain { * @type {Array} */ this._effects = effects - .reverse() .map(Effect => { const effect = new Effect(audioEngine, this, lastEffect); this[effect.name] = effect; lastEffect = effect; return effect; - }) - .reverse(); + }); /** * First effect of this chain.