AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Hello therewell i´m relativly new to Bitwig but coming from Ableton Live so Bitwig looks quite familiar. Anyway I am creating a MIDI Foot Controller as an upcoming crowfunding project. It shall support Ableton Live and Bitwig. I allready created a working controller script for Live which took me nearly two month till I got everything I wanted and now I started the script creation for Bitwig.
I want that every new preset which I create starts with the following configuration: There will be 4 Audiotracks with 4 scenes. The first track should be armed. In Live this works very well if you add your controller in the settings. So, after looking into the Bitwig API I tried the following:
Code: Select all (#)
loadAPI(1);
host.defineController("Frido", "Frido", "1.0", "a044f430-363c-11e6-bdf4-0800200c9a66");
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(["LoopBe Internal MIDI"], ["LoopBe Internal MIDI"]);
function init()
{
host.createTrackBank(4,0,4);
host.showPopupNotification(":::160629 - V2::: Bitwig + Frido = Ready For Rock n Rolling");
println("Hello Frido");
}
I thought that "host.createTrackBank(4,0,4);" should change my session in showing 4 additional tracks + scenes but that doesnt work. The script doesn´t add any tracks inside of the Bitwig session but the popup notification I wrote will be displayed. Also there are no errors in the Log. Is it because im using the demo where I can´t save anything or did I understand something wrong when it comes to track-creation?
Many greetings
Johannes