topical media & game development
student-musicpad-TB303.ax
student-musicpad-TB303.ax
[swf]
[flash]
flex
/*
* Copyright suweller
*/
package {
import flash.display.Sprite;
import flash.events.*;
import org.si.sion.*;
import org.si.sion.events.*;
import org.si.sion.utils.SiONPresetVoice;
[SWF(backgroundColor="#000000", frameRate=60, height=480,width=800)]
public class @ax-student-musicpad-TB303 extends Sprite {
private var driver:SiONDriver;
// generators
private var matrixPad:student_musicpad_MatrixPad;
// effects
private var kaosPad:student_musicpad_KaosPad;
function @ax-student-musicpad-TB303() {
// setup driver
with(driver = new SiONDriver() ) {
bpm = 160;
}
// setup generators
with(addChild(matrixPad = new student_musicpad_MatrixPad(stage, driver, 36, 32)) ) {
x = 100;
y = 72;
lowest_note = 24;
}
// setup effects
with(addChild(kaosPad = new student_musicpad_KaosPad(stage, driver)) ) {
x = 320;
y = 0;
}
// start playback
driver.play(null, false);
}
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.