Old 02-28-2015, 01:13 AM   #1
TheFlavor
Banned
 
Join Date: Jan 2015
Posts: 214
Default "bla=1" in JS midi_velocitycontrol?

In JS midi_velocitycontrol, line 34 is
Code:
bla=1;
What is bla?
TheFlavor is offline   Reply With Quote
Old 02-28-2015, 01:20 AM   #2
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,798
Default

Dummy variable.
EvilDragon is offline   Reply With Quote
Old 02-28-2015, 01:29 AM   #3
TheFlavor
Banned
 
Join Date: Jan 2015
Posts: 214
Default

Quote:
Originally Posted by EvilDragon View Post
Dummy variable.
What's the point of it? I'm trying to do some minor JS programming, but the dummy-variable concept is mysterious to me.
TheFlavor is offline   Reply With Quote
Old 02-28-2015, 01:57 AM   #4
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default

It is a statement that always evaluates as TRUE, ensuring that the while() statement loops around again.

It is placed at the very end of the midirecv() ? code block, to avoid the accidental problem caused when the last statement does not always evaluates to TRUE, which would cause the while() loop to stop.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 02-28-2015 at 02:23 AM.
DarkStar is offline   Reply With Quote
Old 02-28-2015, 02:19 AM   #5
TheFlavor
Banned
 
Join Date: Jan 2015
Posts: 214
Default

Quote:
Originally Posted by DarkStar View Post
It is a statement that always evaluates as TRUE, ensuring that the while() statement loops around again.

It is placed at the very end of the midirecv() ? code block, to avoid the accidental problem caused when where the last statement does not always evaluates to TRUE, which would cause the while() loop to stop.
Thanks, I get it now.
TheFlavor is offline   Reply With Quote
Reply

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 12:07 AM.


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