Hi,
I’m working in an audio mixer in Flash CS4 (AS3). It will output modified sounds according to user’s interaction. Images are created in 3DS Max. All of this will be released under a GPLv3 liscence.
For now my doubt is about how to make a collet knob working with rendered images. I’ll use about five images per knob, so I only expect to output only five values for sound modification.
At the moment I’m working with provisional sliders (EQ and master volume not yet implemented). This is the simplified code for the first column “Vol In” (at the .swf you must click at least once in each green button and then click “so resultant” for test it):
import fl.events.*;
var soDin:Sound = new sound01();
var channelDin:SoundChannel;
var transformarDin:SoundTransform;
var volActualDinIn:Number = 0.5;
reproduir_mc.addEventListener(MouseEvent.CLICK, reproduir);
vol_din_in.addEventListener(SliderEvent.CHANGE, canviar_din_in);
function reproduir(e:MouseEvent):void {
channelDin = soDinamic.play(0,int.MAX_VALUE,transformarDin);
transformarDin = new SoundTransform;
}
function canviar_din_in(e:SliderEvent):void {
volActualDinIn = e.target.value // * 3 * volActualDinOut * volActualDis;
transformarDin.volume = volActualDinIn;
channelDin.soundTransform = transformarDin;
}