How to write notes in a clip

Post Reply New Topic
RELATED
PRODUCTS

Post

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.
Hi everybody !

I'm learning to use the API, and one thing that I haven't figured out yet is to set notes in a clip without getting the following error :

Code: Select all (#)

org.graalvm.polyglot.PolyglotException: Parameter y (=1) must be in the range 0 to 0
The line which triggers this error is the following :

Code: Select all (#)

cursorClip.setStep(x, y, 127, 1);
With x = 0 and y = 1.
With x = 0 and y = 0 I get no error and the note is created.

What have I missed ?

Post

Axyom wrote: Thu Jan 19, 2023 4:28 am
What have I missed ?
Probably not setting correct grid height when calling .createLauncherCursorClip(gridWidth, gridHeight)?

Post

Hi,

It was exactly that thank you !!

Have a good day

Post Reply

Return to “Controller Scripting”