Sending MIDI commands from Flash (AS3)? 
Posted: 30 November 2010 09:58 PM   [ Ignore ]
RankRank
Joined  2008-04-16
Total Posts:  183
Member

I was surprised to find out that theres not much information out there for sending MIDI directly from Flash (with no crazy translations through OSC or some program). Meanwhile I can make my Arduino send MIDI commands very easily, but I can’t do it so easily with AS3? I just read a book on MIDI over the weekend and wanted to make a virtual instrument in Flash, but I can’t figure out the MIDI functionality.

Anybody have any info on this?

 Signature 

Visit my research blog at:
http://cs.unk.edu/~webb/

Profile
 
 
Posted: 30 November 2010 10:21 PM   [ Ignore ]   [ # 1 ]
Avatar
Rank
Joined  2010-08-13
Total Posts:  40
New Member

Flash can’t do MIDI. You’ll need OSC or something similar.

Cheers, - Jon -

 Signature 

Jon Webb - Flash/ActionScript/.NET/Web developer - Utrecht (NL) - http://www.webbsites.nl

Profile
 
 
Posted: 30 November 2010 10:40 PM   [ Ignore ]   [ # 2 ]
RankRank
Joined  2008-04-16
Total Posts:  183
Member

Any ideas on why Flash “can’t do MIDI”? Isn’t it as simple as serially broadcasting strings of binary for any MIDI-enabled device or program to receive? One can write a few functions to transmit binary strings very easily, its just a matter of doing it in such a way that is available to your entire computer at once, not just within the scope of the program doing the transmitting.

Hopefully Seth Sandler will jump in here sometime, I believe he’s gone the whole nine yards getting Flash to play with MIDI for his AudioTouch project. We need a “Cerupcat Signal”, lol.

 Signature 

Visit my research blog at:
http://cs.unk.edu/~webb/

Profile
 
 
Posted: 01 December 2010 06:00 AM   [ Ignore ]   [ # 3 ]
Avatar
Rank
Joined  2010-08-13
Total Posts:  40
New Member

Flash simply doesn’t have access to the hardware. There are no functions in the runtime for accessing any ports - midi, serial, or otherwise. To send midi you’ll need to send the notes from Flash to another (native) process and vice versa.

OSC is one way of doing this.

 Signature 

Jon Webb - Flash/ActionScript/.NET/Web developer - Utrecht (NL) - http://www.webbsites.nl

Profile
 
 
Posted: 01 December 2010 09:20 AM   [ Ignore ]   [ # 4 ]
RankRank
Joined  2008-04-16
Total Posts:  183
Member

I see. Well I hear flOSC is a very good gateway program for OSC, but how about translating those OSC messages into MIDI ones that I can use in a software synth? (I’m on Win7 btw)

 Signature 

Visit my research blog at:
http://cs.unk.edu/~webb/

Profile
 
 
Posted: 01 December 2010 09:35 AM   [ Ignore ]   [ # 5 ]
Avatar
Rank
Joined  2010-08-13
Total Posts:  40
New Member

Never tried it myself, but PureData or Plogue Bidule should work:

http://www.gadgetcracker.com/2009/06/how-to-iphone-touchosc-pure-data-ableton-live/

http://www.plogue.com/?page_id=56

 Signature 

Jon Webb - Flash/ActionScript/.NET/Web developer - Utrecht (NL) - http://www.webbsites.nl

Profile
 
 
Posted: 09 October 2011 01:33 AM   [ Ignore ]   [ # 6 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1495
Administrator

Found this too: http://theboringblog.wordpress.com/2009/02/01/using-flash-for-midi/

 Signature 

~

Profile