If/then/else von Herwig Kraß

If/then/else von Herwig Kraß

(9 Votes)
0.1 (Updated 20 years ago)
8.3kB
November 02, 2003
Reaktor 5 or lower

DESCRIPTION

Herwig Kraß created an elegant if/then/else macro. I liked the idea so much that I wanted to try to incorporate Chris List's comments:
Chris List (2003-10-29):
There's a little problem that I see with this - easy to spot becaused it's been a problem for me in some of my macros and it's the kind of thing you don't think about until you have a bug... The output should only change when the "if" input changes - not when the "then" or the "else" changes. That's how any procedural programming language (which is what you're trying to emulate) would work. From your example; "if (x>=in1 and x

COMMENTS  (4)

herw
21 years ago
Hi Shaw, i have allready Stuffit 8.0.1. I have to add the suffix .ens to your ensemble file if_then_else! Thanks. Have a look to my comment in my macro. ciao herw
Shaw Cunningham
21 years ago
Herwig, I downloaded this on both a Mac and PC and it appears to be fine. I know that stuffit 8 has some problem... there is an 8.01 update patch for Stuffit that supposedly fixes the problem... try that, or you can email me and I will send you a disk image or .sit file -- shaw417@mac.com
herw
21 years ago
Hi Shaw, i have downloaded it and unzipped but i was not able to open anything (i use suffit deluxe 8.0)
Shaw Cunningham
21 years ago
Although this isn't the solution that Chris was looking for -- an absolute LOGICAL equation, this still works. Y will only be outputted while X is within bounds, but Y alone will not do the trick, X has to be actively producing new events.... not as elegant as Herr Kraß work, but I'm hoping someone can help me improve it. I added an LFO as a possible source for the X input since I assume someone may want to see how it works with faster events (LFOs) as well as slower or less mobile events (your hand moving a knob).
now