jsfx code sometimes bypassed ? >> Comic Book Rumbles >> FORUM lowesmall.shop
FORUM lowesmall.shop

FORUM lowesmall.shop



SearchSearch   Users   Registration   Entrance
Today: 21.07.2025 - 02:16:16
Pages:  1  

jsfx code sometimes bypassed ?

Advertising


AuthorMessage

jsp98m3

main user




Statistics:
Messages: 16,151
Registration: 04.21.2001

It's a little hard to tell without the actual source code, but here's a wild guess: Does your code include while()?

---------------------
Jim Powell
Message # 1 04.12.24 - 17:37:52
RE: jsfx code sometimes bypassed ?

Gary-TulZa

main user




Statistics:
Messages: 3,091
Registration: 07.12.2002

I have had a quick look at your code, and I do think while() is to blame. I say this because this JSFX loop will do only 5 iterations, not 10 as you might expect: Code:

---------------------
Sig courtesy of ///Maniac '99 Z3 2.3 '97 740iL '90 735iL '65 Sunbeam Alpine - Pimpmobile
Message # 2 04.12.24 - 17:45:45
RE: jsfx code sometimes bypassed ?

Doc325i

main user




Statistics:
Messages: 42
Registration: 05.27.2003

I modified the code to use the "new while" syntax. Of course it works perfectly. In fact , if not some very old version of Reapers needs to be supported, I thing the "old while"should be banned. I feel it would be a decent move to update the JSFXes that come with Reaper on that behalf, as they will be used as examples for new would be JSFX programmers (like myself) and with "old while" they cause a lot of unnecessary confusion. -Michael

---------------------
Message # 3 04.12.24 - 17:55:07
RE: jsfx code sometimes bypassed ?

ToM3

main user




Statistics:
Messages: 260
Registration: 04.28.2001

No way! The "old while" is not just syntactically different, it is functionally different, and it makes perfect sense. In fact, if we had to remove something (for an absolute reason, I sure don't want to), it should be the "new while". Reason: you can use a condition "?" and "old while" to implement the "new while", but you can't use the "new while" to implement the "old while". So from a usage perspective, the "old while" is superior. The old while functions like the do...while construct in C, and it is very useful, even more so because JS and EEL lack "break" or "continue" statements. For example: Code:

---------------------
Message # 4 04.12.24 - 17:59:11
RE: jsfx code sometimes bypassed ?

99bmw740il

main user




Statistics:
Messages: 73
Registration: 12.10.2002

I almost always use the old-style while, mostly to stay compatible with older REAPER/JSFX, but sometimes also because it can be more convenient. However, in the examples for my JSFX libs I do try to use the newer syntax, as not to confuse JSFX newbies (especially those coming from C, JavaScript, etc.). However, I disagree the bundled JSFX plug-ins should be updated with the new syntax. IMHO they are not necessarily examples, and I feel that it is up to the original author to use whatever syntax he likes.

---------------------
Message # 5 04.12.24 - 18:07:49
RE: jsfx code sometimes bypassed ?

BRUNO

main user




Statistics:
Messages: 18
Registration: 11.05.2002

Well I agree that the "new while" is much clearer and useful in cases where you need the condition first, for example you don't have to duplicate the condition and it looks cleaner too. I only said in the arbitrary situation where one of them had to be removed, I would choose the new while to be removed, simply because I can live without it (not that I would want to, it was just a hypothetical example). But yes, I know what you mean about those annoying "attacks" in other regions, I was in fact speaking in general too. :)

---------------------
Message # 6 04.12.24 - 18:19:21
RE: jsfx code sometimes bypassed ?
Improving Visual Ergonomics... : Previous topicNext topic: Online Render isn't working.
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants