0

Found a related question, but this one is different:

I need to send events to either Windows or Linux MIDI synthesizers, and http://code.google.com/p/flash-midi-player/ tells that

Note: the player can't connect with your local midi keyboard, nor send midi events. Flash technology does not allow this.

What are currently available hacks for AS/AIR that will enable me to send MIDI events instead of embedding tons of .wav?

I know that flash-midi-player is able to store all sounds in .swc, that Java embedding/hAxe tricks will do it better, and all nasty resources may be put into loadable .swf parts - but don't intend to do any such hacking, instead wishing to use native MIDI support of any kind.

Community
  • 1
  • 1
kagali-san
  • 2,964
  • 7
  • 48
  • 87
  • you can talk to a java program with a socket and have the java program talk to your midi device... I'm just guessing though - pretty sure that's possible, I did something like that 8 years ago... so I'm a little foggy... but if you can get as3 sockets working (easy) and get a java midi library working... you'd be good to go. – Zevan May 08 '11 at 23:18
  • @Zevan, it's like using Flash to implement socket functions in Javascript.. also, the problem is that application needs to be monolithic and cross-platform. For me, the lesser pain will be to embed .swc via flash-midi-player - but generally a Java library is a good idea.. although too old-scool in the modern world of Processing, VVV and others used for implementing this kind of stuff. – kagali-san May 09 '11 at 00:06
  • i've actually done that with processing too... for a few things... one was to use processing to read the mic waveform, send it as bytes over a socket, read it into flash and draw - this was a few years back and someone asked me how to do it. Anyway, sounds like you're on the right track. – Zevan May 09 '11 at 01:27

0 Answers0