This is sweet, found a way to reduce cpu when the envelope generator stops.
I took a look into and envelope generator "ahdsr" hoping to find a way to detect the end of the envelope and discovered the init. As soon as the release stage is finished the init changes states. Here's a way to tap it and shut off external oscillators etc. when the envelope is over.
This is inside the env generator.
Notice the process module on the far bottom right. This is its internals modules.
Notice the output I added that says "idle", attached to the phase process. This is the inside of the phase Process.
The idle goes even deeper into the Stage Switch as shown here.
Notice the idle output is connected to a merge and a pair of latches. I added this to detect the finish of the envelope. The merge produces a 1 when the envelope is running and the exact moment it stops the final release phase the merge switches to a 0. The idle ends up here, but I also have 6 independent env generators. The oscillator modules attach to the bundle outputs.
Notice the pickup distributions labeled stp1 thru stp6. These are the "idle taps for the six envelope generators. Let's focus on OP1, it's a master on/off switch and has a value of 1 when the oscillator is on. So now the stp1 also needs to be a 1 to turn oscillator module 1 on. I could have used a logic "AND" in place of the multiplier but it may use more cpu; not sure. Anyway the external oscillator module turns on the instant the envelope generator starts and shuts off immediately when it's finished. The CPU with 20 voices dropped significantly with the technique. It's an overall improvement as some envelopes are very short and it beats running the oscillators at full power, 100 percent of the time. I hope it comes in handy!
This is the final connections. The SR router pack is shown above and notice the distribution bundle SR1 out of the pack and the lower left pickup of the module labeled SR1.
The final destination is shown here. Notice the SR distribution outlet on the bottom left. When it shuts down all internal modules attached to the SR.C buss stop. The Rst on the bottom left starts the oscillators at 0 phase angle for perfect sync when the module starts, but I'm not going into that.
Hope you enjoyed this little discovery, so far it seems to work perfect. 😀
- All Categories
- 21 Welcome
- 2.1K Hangout
- 85 NI News
- 1.4K Tech Talks
- 2.3K Native Access
- 13.3K Komplete
- 1.3K Komplete General
- 2.8K Komplete Kontrol
- 3.8K Kontakt
- 3.5K Reaktor
- 327 Battery 4
- 596 Guitar Rig & FX
- 315 Massive X & Synths
- 701 Other Software & Hardware
- 4K Maschine
- 4.9K Traktor
- 4.6K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators