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



Cheers
Juan Pablo Califano


2008/7/17, centre link <[EMAIL PROTECTED]>:
>
>   I am searching for a way to send MIDI data into flash, and then have the
> script convert to ASCII.
>
> It seems basic text keyboards have a limited number of simultaneous key
> downs.
>
>
> keyPress
>
> getCode()
>
> getAscii()
>
> ------------------------------
>
>   Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og
> find et godt tilbud! <http://dk.yahoo.com/r/pat/mmb>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to