Ahh, real time input from a MIDI keyboard.

Just found this:::

and fiddling with the source

http://www.alexisisaac.net/products/flashMidi/samples/midiInput.html

with SDK: http://sourceforge.net/project/showfiles.php?group_id=137372&package_id=153345

I'm just trying to get creative with alternate text input into the flash environment.

Want to be able to type text using MIDI keyboard messages, as the polyphony of the MIDI keyboard allows for many more simultaneous keys down.

pretty much the reverse to using a "text keyboard" to play MIDI notes ie. Using MIDI to write text.








Juan Pablo Califano wrote:
Hi,
 
I'm not sure I understand what you want to do. If you intend to read MIDI data from a midi file, I don't see what role keydowns would play in it. Plus, it's not clear what you mean with converting to ASCII.
 
I what you're up to is reading MIDI input (which is a binary format) and then translate it to something that's human readable (like, say, in this code time there's a Note On event, this is the pitch, and so on), you'll basically need to build a parser to read the format. Although feasible, it is a fairly complex task, because the format is a bit "convulted" and was developed with lots of space optimizations in mind, so most things are not evident.
 
Some months ago I wrote a parser for midi files in C# .NET, just implementing the core features of the MIDI spec and handling basic MIDI events both for reading and writting midi files (and supporting just one version of the format). These links were of big help. You'll find many documentation about the format googling it, so it's not a script you'll put together in 3 hours, but at lease there's a lot of info out there. Maybe there's even some library en AS that already does that (but I'm not aware of it).

http://www.sonicspot.com/guide/midifiles.html
http://www.otiana.com/vcangle/source/midiformat.pdf
http://www.gweep.net/~prefect/eng/reference/protocol/midispec.html
 
 

--









KERNAN DUKE
Spin Studios
1C/5 Collingwood Street
Osborne Park WA 6017

www.studios.spin.net.au

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to