I have been playing with various DAWs for years now, both Windows and Linux, but have roughly settled on Ardour and QTractor at the moment. As I am remixing all my old tunes, I am presented with a midi file all in one track (old Yamaha QX7 if you know what that is!).
This causes problems as you cannot split out the tracks easily. So after looking and looking I thought to myself, write one.
So I am teaching myself Lua for the Ardour system. So far, my script iterates over selected regions and creates a list of midi channels used in them all.
It them throws up a dialogue and asks 0 for all, or type in the channel to extract. A the same time it asks if you want to split a drum track (to eight new tracks is the thought) or extract just one note from the regions.
- if channel = 0 - split every channel into a new track called ‘midi channel 1’ etc.
- if channel != 0 - only create the one 1-16 specified channel.
- if bool drums = create eight tracks of standard drums and extract regions into those tracks.
- if note specified, only extract that one note to the new track (essentially (3) is 8 of these).
One big region for each track is the idea.
Now the logic is there - the analysis happens and everything is printing happily to the screen.
But how the hell do I create a new_midi_track please - I appear to be missing the vital ingredient?? Can someone please point me to some information on this? I have been through the class and Ardour help on Lua but am still puzzled (ASM/C# background)
Thanks all, and especially Paul.