Load sample via API only?
-
friendlyfire33 friendlyfire33 https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=503435
- KVRer
- 7 posts since 16 Mar, 2021
Can you load samples into bitwig via the API only?
I can't find any docs on this
I can't find any docs on this
- Banned
- 11467 posts since 4 Jan, 2017 from Warsaw, Poland
Bitwig Studio under Help > Documentation > Developer Resources
-
friendlyfire33 friendlyfire33 https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=503435
- KVRer
- Topic Starter
- 7 posts since 16 Mar, 2021
Thanks but I dont' have bitwig. I'm looking to see if anyone knows if it's possible before I purchase.
- Banned
- 11467 posts since 4 Jan, 2017 from Warsaw, Poland
There's a free 30 days demo.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.
- KVRAF
- 26961 posts since 3 Feb, 2005 from in the wilds
Moss will know...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.
- KVRian
- 932 posts since 26 Oct, 2005 from The Void
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.
- KVRAF
- 4888 posts since 13 May, 2004
I haven't tested this, so I am not 100% sure if it will work: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
- 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.
- KVRian
- 932 posts since 26 Oct, 2005 from The Void
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.
-
friendlyfire33 friendlyfire33 https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=503435
- KVRer
- Topic Starter
- 7 posts since 16 Mar, 2021
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.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.
