10-08-2018, 11:22 AM
Am currently trying to write lua script for "humanising" midi tracks and stuck on a few things. Anybody out there know the answers .....
1. Tried the script as a plugin but having problems with delaying midi events. I have used shmem to make buffer, which works but cannot seems to remove entries from the buffer when needed. Tried just setting to nil and table.remove() function but no luck????
2. As a non-realtime script I can get MidiRegion, list all notes but seems no way to alter note parameters using the MidiRegion -> MidiModel->Noteptr ..... am I missing something ? Is there a way of accessing raw Midi events in the region ?
Thanks in advance!
1. Tried the script as a plugin but having problems with delaying midi events. I have used shmem to make buffer, which works but cannot seems to remove entries from the buffer when needed. Tried just setting to nil and table.remove() function but no luck????
2. As a non-realtime script I can get MidiRegion, list all notes but seems no way to alter note parameters using the MidiRegion -> MidiModel->Noteptr ..... am I missing something ? Is there a way of accessing raw Midi events in the region ?
Thanks in advance!