Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-14-2020, 12:35 PM   #1
TomasBR
Human being with feelings
 
Join Date: Feb 2019
Posts: 3
Default @slider section called multiple times when ListBox slider is used

Hi,

I'm trying to write my first JS plugin for Reaper and I have found strange behavior.
When slider is that of "ListBox" type, @slider section is called multiple times when opening and closing this control, even when no change to value is made.

Following minimal code show this:

desc: MOZO-G Test Slider

slider1:_slidercalls=0<0,10000,1>Counter
slider2:1<0,10,1{1,2,3,4,5,6,7,8,9,10}>Drop Lisr
slider3:1<0,10,1>Slider

@init
@slider
_slidercalls+=1;
sliderchange(slider1);

@block
while ( midirecv( offset, msg1, msg2, msg3 ) ) ( midisend( offset, msg1, msg2, msg3 ); );


Sorry for code insertion, can't see code block option here at this editor.

Reaper v6.03/x64 rev 881187
TomasBR is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.