Sketch 2015-10-09a
void ofApp::setup(){
_template.setup(10, 90, 2);
manager = _template.getAudioUnitManager();
mixer = manager->getMixer();
synth1.setup("Massive 1", AUDIOUNIT_MASSIVE);
manager->createChain(&chain1)
.link(&synth1)
.toMixer();
synth2.setup("Massive 2", AUDIOUNIT_MASSIVE);
manager->createChain(&chain2)
.link(&synth2)
.toMixer();
timeline = _template.getTimeline();
timeline->addCurves("filter cutoff");
timeline->addCurves("fx2 chorus wet");
timeline->addCurves("noise synth volume");
}
void ofApp::update(){
synth1.set(Massive_filter1_cut_prm_1, timeline->getValue("filter cutoff"));
synth1.set(Massive_master_fx2_dry_wet, timeline->getValue("fx2 chorus wet"));
synth2.set(Massive_master_volume, timeline->getValue("noise synth volume"));
}
void ofApp::draw(){
}
Amplitude and filter envelopes