MCPcopy Create free account
hub / github.com/cinder/Cinder / trigger

Method trigger

samples/FallingGears/src/Synths.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void AltoSynth::trigger( float freqMidi, float decaySeconds )
52{
53 const float initialMaxVol = 0.6f;
54
55 setInUse();
56
57 mGen->setFreq( audio::midiToFreq( freqMidi ) );
58 mGainRamp = mGain->getParam()->applyRamp( initialMaxVol, 0, decaySeconds );
59
60 mGain->enable();
61 mGen->enable();
62}
63
64BassSynth::BassSynth( AudioController *parent )
65 : Synth( parent )

Callers 15

handleCollisionMethod · 0.80
foundation.min.jsFile · 0.80
oFunction · 0.80
jquery.jsFile · 0.80
doneFunction · 0.80
jquery.min.jsFile · 0.80
xFunction · 0.80
path2dpart3.jsFile · 0.80
kFunction · 0.80
path2dpart2.jsFile · 0.80
kFunction · 0.80
path2dpart1.jsFile · 0.80

Calls 4

midiToFreqFunction · 0.85
applyRampMethod · 0.80
appendRampMethod · 0.80
enableMethod · 0.45

Tested by

no test coverage detected