Clip launcher script

Post Reply New Topic
RELATED
PRODUCTS

Post

How do I get the clip_launcher?
which codes I need ?
maybe a small example?

Post

You want to code in Java or JavaScript? That's the first choice.

Did you look at the pinned posts?

Post

wpostma wrote: Sun Apr 09, 2023 8:03 pm You want to code in Java or JavaScript? That's the first choice.

Did you look at the pinned posts?
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

Post

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.

Post

moss wrote: Tue Apr 11, 2023 8:00 pm 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.
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.;(

Post

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

Post

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.

Post

wpostma wrote: Tue Apr 25, 2023 11:41 pm 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.
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)

Post

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.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

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.
i like to create a red rectangle for track. I found out that "TrackBank" is required for this. my example shows only the scenes.

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.

Post

What do you mean “appear on the track”? The box is the size of the track bank.

Post

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?.

Post

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?.
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.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”