Clip launcher script
-
- KVRer
- Topic Starter
- 7 posts since 25 Apr, 2022
I've looked at various scripts, but it's not easy to see through them.
the videos from moss don't show, how to create the box for cliplauncher.
I found this out:
function init() {
boxcreate = host.createTrackBank( 2,0,2 ); /createbox/
box = boxcreate.getClipLauncherScenes(); /get scene?/
box.setIndication(true); /visible/
}
// I can navigate the box (up and down)
function onMidi0(status, data1, data2) {
if (isNoteOn(status) && data2 == 0x7f) {
switch (data1) {
case scrolldown:
trackBank.scrollScenesDown();
println("down");
break;
case scrollup:
trackBank.scrollScenesUp ();
println("down");
break;
default:
host.errorln("comand " + data1 + " is not supported");
break;
}
}
}
but it only shows the box for the scenes.
how i can place the box in the first track (box for tracks)?
I only have basic knowledge of javascript and now I'm learning java.
no idea what to do now java or javascript?
Bitwig's API is not described very well.
I would be very grateful for a few tips
- KVRAF
- 4206 posts since 13 May, 2004
You should not use setIndication anymore. Now with Bitwig 5, the user can fully control if the "box" should be shown or not and in which color.
-
- KVRer
- Topic Starter
- 7 posts since 25 Apr, 2022
thank you for the tip.
I want to integrate the .getClipLauncher() but I can't.
I'm still too bad for it. that annoys me.
I have an idea and can't implement it.
I've learned javascript and java for so many hours and I'm still stupid.;(
- KVRist
- 325 posts since 12 Apr, 2020
It takes a while to learn some of this stuff. What are you missing? Sometimes i do a lookup of the function on GitHub and enough people have used it to get an idea of how to use it
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
-
- KVRist
- 116 posts since 21 Nov, 2018
Also you haven't stated if your coding in what language and what API level you are using.
If you have started from scratch then i recommend starting from studying other working scripts.
If you have started from scratch then i recommend starting from studying other working scripts.
-
- KVRer
- Topic Starter
- 7 posts since 25 Apr, 2022
I see the red box on the scenes, but I want it for the tracks. I've tried everything possible. Don't understand the API description. This is too much and I have no idea where to start. i think i need getClipLauncherSlots() and getTrack() but somehow it doesn't work ;( I've looked at many scripts and tried to copy them, it doesn't work. can't someone just put a small example in here? (API version is 17) Bitwig 4.3 (JavaScript)
- KVRist
- 325 posts since 12 Apr, 2020
the closer you get to being able to describe what you want to achieve will be the closer you can figure out what you are needing to code.
Not sure what you mean by red boxes for tracks and what that gets you. i'm not even sure if what you are looking for exists.
Not sure what you mean by red boxes for tracks and what that gets you. i'm not even sure if what you are looking for exists.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
-
- KVRer
- Topic Starter
- 7 posts since 25 Apr, 2022
i like to create a red rectangle for track. I found out that "TrackBank" is required for this. my example shows only the scenes.Kirkwood West wrote: ↑Wed Apr 26, 2023 6:20 pm the closer you get to being able to describe what you want to achieve will be the closer you can figure out what you are needing to code.
Not sure what you mean by red boxes for tracks and what that gets you. i'm not even sure if what you are looking for exists.
function init() {
boxcreate = host.createTrackBank( 2,0,2 ); /createbox/
box = boxcreate.getClipLauncherScenes(); /get scene?/ (how it for track?)
box.setIndication(true); /visible/
}
What do I have to do to make it appear on the track.
See the picture.
You do not have the required permissions to view the files attached to this post.
-
- KVRer
- Topic Starter
- 7 posts since 25 Apr, 2022
I found out that "clipLauncherSlotBank" is responsible for the box. now I try to control the clips. it's very confusing because different API versions always handled it differently. That means you read things here in the forum that are no longer valid. i will try further. maybe someone can put in the latest definition of the slot bank including clip?.
- KVRist
- 325 posts since 12 Apr, 2020
Its likely we are on version 17 of api. So a lot of things have changed quite a bit and for the better. You got to experiment and learn how to read through the API Documentation. Setup several test extensions for experiments and it will free you to experiment without ruining your core extension.Krumkol wrote: ↑Sun May 14, 2023 7:18 am I found out that "clipLauncherSlotBank" is responsible for the box. now I try to control the clips. it's very confusing because different API versions always handled it differently. That means you read things here in the forum that are no longer valid. i will try further. maybe someone can put in the latest definition of the slot bank including clip?.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest