Old 05-13-2022, 07:18 PM   #1
juan_r
Human being with feelings
 
juan_r's Avatar
 
Join Date: Oct 2019
Posts: 578
Default JSFX: return, break

I've searched before posting this, and I've seen Saike ask for a switch/case statement. What I miss the most are instructions for flow control.

In particular, a return statement would be very handy to have. An alternative could be break. At the moment, it's impossible to terminate a loop earlier unless one alters the counter value or something, and even so you can't avoid completing the current iteration. Return or break (or both!) could help with efficiency and readability in several context.

Less necessary, but still a very welcome possible addition? Sonething like the continue statement in C, to skip to the next iteration rather than straight out of the loop.

Quote:
Originally Posted by sai'ke View Post
I do realize that I'm probably using JSFX a bit beyond the scope of what it was really intended for though,
Ordinary "brute force" DSP-oriented number crunching has less frequent need for sophisticated conditional logic. Other applications could be coded quite a bit more easily if that kind control logic were available. Saike is a programming role model for me! The fact that he managed what he did doesn't imply I can

Last edited by juan_r; 05-14-2022 at 06:37 AM.
juan_r is offline   Reply With Quote
Old 05-14-2022, 05:06 AM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 11,740
Default

Since some time it's easily "legal" to do VST3s by means of Juce.

Here you have the full power of C++ (and since recently for Reaper the ability to do plugins with "embedded" GUI and access the Reaper API)
-Michael
mschnell is online now   Reply With Quote
Old 05-14-2022, 06:30 AM   #3
juan_r
Human being with feelings
 
juan_r's Avatar
 
Join Date: Oct 2019
Posts: 578
Default

The compiler, the development kit, a 2-page hello world... what a headache.
I very much like Eel2 with its almost interactive feel, actually.
A few keywords could go a long way for me.

Last edited by juan_r; 05-14-2022 at 08:30 PM.
juan_r 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 10:21 PM.


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