Load sample via API only?

Post Reply New Topic
RELATED
PRODUCTS

Post

Can you load samples into bitwig via the API only?
I can't find any docs on this

Post

Bitwig Studio under Help > Documentation > Developer Resources
Music tech enthusiast
DAW, VST & hardware hoarder
My "music": https://soundcloud.com/antic604

Post

Thanks but I dont' have bitwig. I'm looking to see if anyone knows if it's possible before I purchase.

Post

friendlyfire33 wrote: Tue Mar 16, 2021 9:32 pm Thanks but I dont' have bitwig. I'm looking to see if anyone knows if it's possible before I purchase.
There's a free 30 days demo.
Music tech enthusiast
DAW, VST & hardware hoarder
My "music": https://soundcloud.com/antic604

Post

friendlyfire33 wrote: Tue Mar 16, 2021 9:32 pm Thanks but I dont' have bitwig. I'm looking to see if anyone knows if it's possible before I purchase.
Moss will know...

Post

Maybe through a popup browser session, but I really doubt it. The documentation isn't exactly great either, so there could be something hidden away I haven't stumbled over. If you are looking for a straight forward "load this file path into this track", that doesn't exist.

Post

friendlyfire33 wrote: Tue Mar 16, 2021 8:33 pm Can you load samples into bitwig via the API only?
I can't find any docs on this
I haven't tested this, so I am not 100% sure if it will work:
- Look for InsertionPoint in the API docs, it has a method insertFile. You need to test for which file types it will work and on which insertion points it will work.
- Insertion points can be used on slots and device chains (track, channel, ...)
e.g. ClipLauncherSlot.replaceInsertionPoint ()

As antic604 pointed out, you can test that with the demo.

Post

I gave this a quick try with afterTrackInsertionPoint() and it creates a new instrument track with the audio file loaded into a sampler device. Probably not what OP is after based on the other thread they started. Didn't try out clip insertion points.

Post

Dozius wrote: Thu Mar 18, 2021 12:05 am I gave this a quick try with afterTrackInsertionPoint() and it creates a new instrument track with the audio file loaded into a sampler device. Probably not what OP is after based on the other thread they started. Didn't try out clip insertion points.
Thanks for the input, guys. Not exactly what I was hoping for but at least a direction to start hacking. I'll give it a shot and report back for posterity.

Post Reply

Return to “Controller Scripting”