Skip to content

Instantly share code, notes, and snippets.

Created July 25, 2012 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3176748 to your computer and use it in GitHub Desktop.
Save anonymous/3176748 to your computer and use it in GitHub Desktop.
for(int i = 0; i < 1; i++){
synthsMixer->addInput(
a(new Panner())
->setVolume(v(0.1, str("synthVolume", i)))
->setSource(
t(strPlusInt("synthEnv", i), new Enveloper())
->setAllTimes(v(0.001), v(0.1, str("synthEnvDecay", i)), v(0.001), v(0.001))
->setAudioSource(
a(new SineWaveMod())
->setFrequency(
a(new Adder())
->addInput(
v(300 + 50 * i, strPlusInt("synthFreq", i))
)
->addInput(
t(str("synthPitchEnv", i), new Enveloper())
->setAllTimes(v(0.001), v(str("synthEnvDecay", i)), v(0.001), v(0.001))
->setAudioSource(
a(new Multiplier())
->addVal(
v(strPlusInt("synthFreq", i))
)
->addVal(v(10.0f, str("synthZapHeight", i)))
)
)
)
)
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment