audiovisual actionscript

3pm - February 22 2008 ·

popforge
Popforge is an Actionscript 3 code sandbox started by Andre Michelle and Joa Ebert.... it's hosted at google code.... they did the roland909 and 8bitboy - the amiga sound emulator....
roland909
and they've also got this great cubic vr processor for flashplayer9... and it's one of the very few free non javascript dependent vr scripts..nice work all around... and they've got something to do with hobnox which looks like some serious business.
hobnox
mi145


speaking of digital audio.. that's a composition written and played by my bro you're listening to.

  1.  
  2. var s:Sound = new Sound();
  3. var sc:SoundChannel;
  4. var ba:ByteArray = new ByteArray();
  5. var array:Array;
  6. s.load(new URLRequest("jazz_sax.mp3"));
  7. sc = s.play(0,1000);
  8. this.addEventListener(Event.ENTER_FRAME, spectrum);
  9. var a:Number = 0;
  10. function spectrum(event:Event)
  11. { a = 0;
  12.  
  13. graphics.clear();
  14.  
  15. SoundMixer.computeSpectrum(ba,true,0);
  16.  
  17. for(var i=0; i < 556; i=i+3)
  18.  
  19. {
  20.  
  21. a = ba.readFloat();
  22.  
  23. var num:Number = a*360;
  24.  
  25. graphics.lineStyle(num/19,0x999999|(num << 5));
  26.  
  27. graphics.drawCircle(stage.stageWidth/2.5,stage.stageHeight/2.5,i);
  28.  
  29. }
  30.  
  31. }
  32.