ReaLua pre-Alpha 2
There are PCM_source PCM_sink midi_Input midi_Output classes that are made by the proper reaper.PCM_Source_CreateFromFile() and so on that you see in the main reaper table.
They are not completely implemented. But they can do some things, and there's a MIDI_eventlist class to pass around.
I am sure I have misinterpreted some of the arguments and usages.
psp = reaper.PCM_Source_CreateFromFile("TurnItOnEinMal.m p3")
Will make a PCM_source, which is a table, and can have its contents listed to see what its "methods" are.
psp:GetType()
And so on.
mip = reaper.CreateMIDIInput(1)
mip:start()
mip:RunPreNoteTracking(1)
mip:SwapBufs(0)
mel = mip:GetReadBuf()
print(mel:GetSize())
mel is a MIDI_eventlist.
I hope I have not broken too much stuff that worked before.
Enjoy!
Last edited by toddhisattva; 12-18-2008 at 03:11 PM.
|