Thread: ReaLua PoC
View Single Post
Old 07-16-2008, 03:41 PM   #19
toddhisattva
Human being with feelings
 
toddhisattva's Avatar
 
Join Date: Jun 2008
Location: Austin
Posts: 289
Default 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.
toddhisattva is offline   Reply With Quote