[Header] Info=Clavia Nord Modular patch file Version=Nord Modular patch 2.10 Name=VCSwitch2Example KbRangeMin=0 KbRangeMax=127 VelRangeMin=0 VelRangeMax=127 BendRange=1 PMMode=0 PMTime=0 Voices=4 Cable0=1 Cable1=1 Cable2=1 Cable3=1 Morph0=1 Morph1=1 Morph2=1 Morph3=1 Sustain=1 OctShift=2 Retrig=1 [Voices] 0=4210752 1=4210752 2=4210752 3=4210752 [Module 1] Type=1 Name=Keyboard Col=0 Row=0 [Module 2] Type=8 Name=Osc 1 Col=0 Row=2 P0=52 P1=64 P2=64 P3=3 P4=0 P5=0 P6=0 P7=0 [Module 3] Type=11 Name=Osc 2 Col=0 Row=5 P0=76 P1=64 P2=0 P3=1 Im0=2 Ih0=65 Ic0=3 [Module 4] Type=11 Name=Osc 3 Col=0 Row=7 P0=83 P1=67 P2=0 P3=1 Im0=3 Ih0=0 Ic0=3 [Module 5] Type=51 Name=Fi Col=2 Row=16 P0=1 P1=1 P2=127 P3=79 P4=64 P5=0 P6=55 P7=1 P8=0 Im0=16 Ih0=64 Ic0=1 Im2=14 Ih2=65 Ic2=0 [Module 6] Type=4 Name=2 outputs1 Col=2 Row=20 P0=115 P1=1 Im0=5 Ih0=64 Ic0=0 Im1=6 Ih1=0 Ic1=0 [Module 7] Type=19 Name=Osc Mix Col=2 Row=10 P0=127 P1=127 P2=127 Im0=8 Ih0=64 Ic0=0 Im1=9 Ih1=64 Ic1=0 Im2=10 Ih2=64 Ic2=0 [Module 8] Type=44 Name=Osc 1 Gate Col=1 Row=7 P0=0 Im0=17 Ih0=64 Ic0=2 Im1=2 Ih1=64 Ic1=0 [Module 9] Type=44 Name=Osc 2 Gate Col=1 Row=11 P0=0 Im0=19 Ih0=64 Ic0=2 Im1=3 Ih1=64 Ic1=0 [Module 10] Type=44 Name=Osc 3 Gate Col=1 Row=14 P0=0 Im0=13 Ih0=64 Ic0=2 Im1=4 Ih1=64 Ic1=0 [Module 11] Type=59 Name=Trigger at -64 Col=1 Row=3 P0=0 Im0=15 Ih0=65 Ic0=1 [Module 12] Type=59 Name=Trigger at -21 Col=1 Row=8 P0=43 Im0=11 Ih0=0 Ic0=1 [Module 13] Type=59 Name=Trigger at 22 Col=1 Row=13 P0=86 Im0=12 Ih0=0 Ic0=1 [Module 14] Type=20 Name=Amp Envelope Col=2 Row=11 P0=0 P1=31 P2=77 P3=127 P4=74 P5=0 Im0=7 Ih0=64 Ic0=0 Im1=1 Ih1=65 Ic1=2 [Module 15] Type=24 Name=LFO Col=1 Row=0 P0=62 P1=1 P2=1 P3=0 P4=1 P5=0 P6=34 Im1=1 Ih1=65 Ic1=2 [Module 16] Type=84 Name=Filter Env Col=2 Row=14 P0=59 P1=103 P2=0 Im0=14 Ih0=1 Ic0=2 [Module 17] Type=73 Name=AND Col=1 Row=5 P0=0 Im0=11 Ih0=64 Ic0=2 Im1=18 Ih1=64 Ic1=2 [Module 18] Type=70 Name=Not Next Col=1 Row=4 Im0=12 Ih0=64 Ic0=2 [Module 19] Type=73 Name=AND Col=1 Row=10 P0=0 Im0=12 Ih0=64 Ic0=2 Im1=20 Ih1=64 Ic1=2 [Module 20] Type=70 Name=Not Next Col=1 Row=9 Im0=13 Ih0=64 Ic0=2 [Notes] Count=20 L0=VCSwitch2Example L1=Copyright 1998, Keith R. Crosley L2=krc@gehenna.com L3=http://www.gehenna.com/modular L4= L5=A voltage controlled"exclusive" switch example. This example extends the L6="VCSwitchExample" patch. Instead of a regular switch (which is just a compare L7=module combined with a gain controller), we add a little bit of logic. For each control L8=voltage range, we only want the gate to trigger if the voltage is greater than some L9=trigger voltage AND less than the next trigger voltage. That is, we only want the gate L10=to open if: L11= L12= (Voltage >= Current Trigger) AND (Voltage <= Next Trigger) L13= L14=which is equivalent to: L15= L16= (Voltage >= Current Trigger) AND NOT(Voltage >= Next Trigger) L17= L18=This expression can be easily expressed in Nord Modular modules as illustrated in L19=this patch.