A symphony of light without sound.
Wednesday, April 15th, 2009Heres my second submission to the AR contest. i call it.
“A symphony of light without sound.”
enjoy
I’m really not sure how to deal with the copyright’s situation. so i just leave it where i put the corrosponding code most of the time, hehe.
I try my best to give credit above and beyond where applicable.
And really i have such a terrible method of coding i dont know what i should leave from fork to fork and what i dont need as you can see in what i call my “vestigial import evolution” system.
Since my grasp of AS3 goes about as far as questionable grammar and syntax, and try as i may i am just unable to wrap my mind around the class system as of yet (just know this all of you Flex programmers… you are the enemy). Sooo to get a little understanding of what youre seeing here i’ll explain my Nintendo Gauntlet style HACK and SLASH method of coding.
I take whole classes, remove all the public, private, class, static etc. statements, paste everything in the main time line in flash, call the main function from the root in flash and work out errors from there :-) my theory is, if I did it, theres probably a better way.
I know i totally break everyones very well organized and pretty code structure and proceduralize it to my understanding. Just giving you a referance as to what youre looking at.
Something in the source is killing my whole post.
Heres a link to the code in a .txt file
http://www.splengy.com/FireWorksMidiAS3.txt
Flint, papervision, FlarManager.
the magic here is a midi Java applett written by a programmer named “abudaan”. as it turns out the week i decided to throw my self into Flash and AS3 this brilliant gentleman decided it was time to take alot of the complexity out of AS3 and midi communication. He wrote a beautifully simple set of java applets that connect to your systems midi devices and give you variables in flash.
to be honest thats the end of my understanding about it. the beauty is thats all ive needed to know up till now.
theres a java applet and swf that has to be running in a browser to connect to the midi hardware and translate midi to flash. it only runs on a single domain. so you cant connect to it from a differant domain. for instance your swf and the midi java applet have to be on Splengy.com, or 127.0.0.1,
then theres a block of code i copy and paste from file to file that gives me access to allmost anything i could need out of in bound midi communications.
http://code.google.com/p/miditoflash/
I’m going to do my best to get an online version running for any of you that have midi hardware plugged in. If not i’ll post a few more videos of velocity response and such.
ONLINE DEMO INFO!!
If for some reason youve allready clicked the links and are wondering why it doesnt work let me first ask you, do you have any midi hardware? You’ll NEED midi hardware (a keyboard, drum pad, retro midi wind controller, free energy device…) to make this work.
First click this link. it brings up the java midi bridge.(update java and flash player if you think you maybe should please) it should bring up a list of midi devices connected to your machine. if it doesnt, refresh the screen once or twice, it should work. then when you see a list of available midi devices click the one you want to use to input data, and click OK.
http://www.splengy.com/MIDI/src/bridge.html
Once all that is done and you have a connection to the applet click the link below.
http://www.splengy.com/MIDI/src/ARfireworksMidi2.swf
it will bring up the SWF in a differant window.
I USED MIDI NOTES 69, 70, 71, and 72 FOR THIS DEMO AND IT SHOULD REACT TO THOSE NOTES REGARDLESS OF THE CHANNEL#, GLOBAL RESPONSE TO THOSE NOTES.
if for some reason those notes do not get a response like the one in the video, do the refresh dance, refresh one then the other, and keep trying. it may or may not work for you, i have gotten it to work here pretty successfully.
You may need these. same markers for both examples.




submissionexamples.zip Both submissions one zip. virus scanned right before upload.
If you take a look at my past posts you’ll see that this is really a compilation of most of my work with AS3 up till this point used in 2 files. though my acomplishments may not be great in the scale of things, it doesnt detract from the works taken to get there. enjoy them.
