From 98c2c4044adcb034b7f2bb65b639ceb4a93707aa Mon Sep 17 00:00:00 2001 From: Menno Knevel Date: Mon, 11 Mar 2024 11:26:05 +0100 Subject: [PATCH] Add files via upload --- dynamics/FollowAmpModule.binstr | 398 ++++++++++++++++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 dynamics/FollowAmpModule.binstr diff --git a/dynamics/FollowAmpModule.binstr b/dynamics/FollowAmpModule.binstr new file mode 100644 index 0000000..267c844 --- /dev/null +++ b/dynamics/FollowAmpModule.binstr @@ -0,0 +1,398 @@ + + FollowAmpModule + +DESCRIPTION: + +FollowAmpModule needs to get its input signal from the FollowMe effect. The effect sends the data over the named channel, whereas FollowAmp receives it +(if the channel name it the same AND the Sending is done before the Receiving. Else the system will not work). + + +--- + +version 1, March 2024 +- initial version + + + ;--------------------------------- FollowAmpModule ------------------------------ +if (<FollowAmpON> == 1) then + if (<input channel FA> == 0) then + ainFAL, ainFAR ins + ainFAL *= 50 + ainFAR *= 50 + else + ainFAL chnget "<name Channel1>" + ainFAR chnget "<name Channel2>" + endif + + if <channel1> == 1 then + ainFAR = ainFAL + endif + + aoutFAL follow2 ainFAL, <attack time>, <release time> + aoutFAR follow2 ainFAR, <attack time>, <release time> + + ampFA xadsr i(<expADSR_attackFA>)+0.00001, i(<expADSR_decayFA>)+0.00001, i(<expADSR_sustainFA>)+0.00001, i(<expADSR_releaseFA>)*5 +0.00001 + ampFA -= 0.00001 + + aoutFAL *= ampFA * 10 + aoutFAR *= ampFA * 10 +else + aoutFAL = 1 + aoutFAR = 1 +endif + +; instrument +krand randomh 1000, 1100, 20 +a3 poscil 1, 1250+krand +; outs +blueMixerOut a1*a3*aampdsr,a2*a3*aampdsr + + + + 10 + 10 + DOT + true + + + + 0 + 0 + Group + 0x00000033 + 0x000000ff + 0xffffffff + true + 20 + 20 + + Roboto + 12.0 + + + + + 0 + 0 + FollowAmp + 0x282828ff + 0x000000ff + 0xffffffff + true + 228 + 100 + + Roboto + 12.0 + + + + + 205 + 30 + + + Roboto + 12.0 + + + + + FollowAmpON + 5 + 5 + true + + + input channel FA + 105 + 70 + true + 0 + 12 + true + + + line in + 0 + + + instrument + 1 + + + + + name Channel1 + 105 + 30 + amplitudeL + 100 + + + name Channel2 + 105 + 50 + amplitudeL + 100 + + + + 80 + 160 + + + Roboto + 12.0 + + + + + + 80 + 135 + + + Roboto + 12.0 + + + + + + 55 + 70 + + + Roboto + 12.0 + + + + + + 205 + 50 + + + Roboto + 12.0 + + + + + + 225 + 10 + 4 envelopes for amplitude + expADSR + 0x282828ff + 0x000000ff + 0xffffffff + true + 20 + 99 + + Roboto + 12.0 + + + + expADSR_sustainFA + 110 + 5 + true + 0.0 + 1.0 + 0.001 + 1.0 + 150 + true + false + + + + 130 + 145 + + + Roboto + 12.0 + + + + + expADSR_attackFA + 10 + 5 + true + 0.0 + 1.0 + 0.001 + 0.0 + 150 + true + false + + + expADSR_releaseFA + 160 + 5 + true + 0.0 + 1.0 + 0.001 + 0.38 + 150 + true + false + + + + 80 + 145 + + + Roboto + 12.0 + + + + + expADSR_decayFA + 60 + 5 + true + 0.0 + 1.0 + 0.001 + 0.0 + 150 + true + false + + + + 30 + 145 + + + Roboto + 12.0 + + + + + + 180 + 145 + + + Roboto + 12.0 + + + + + + attack time + 10 + 135 + true + 0.001 + 0.2 + 0.001 + 0.021 + 150 + true + true + + + + 15 + 30 + + + Roboto + 12.0 + + + + + channel1 + 15 + 105 + true + + true + true + + + release time + 10 + 160 + true + 0.001 + 0.2 + 0.001 + 0.021 + 150 + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file