Differentiate Initializations caused by Ens Load and usual Inits by turning Audio Off/On
Hi all,
the topic says it all.
How can Initializations by Ens Load and Initializations by restarting Reaktor Audio (turning Off/On) beeing separated?
An ideas?
I think it must be a module or a variable (respectively Outport) in such a module that is usually init solid, but clears it´s internal state when closing the ensemble.
Comments
-
Ok, this is one solution using the Tapedeck Module:
Ens attched
EDIT, Short explanation:
Idea: A Tapedeck with option "keep audio only in memory" would loose it´s memory when closing the Ens but not at Init.
At Init (whichever), the length of the sample data in Tapedeck is checked. If it is 0, Init is definetely caused by loading an Ensemble because the Tapedeck is empty. If it is greater 0, Init is caused by a Reaktor Audio Restart, because the Tapedeck contains Audio data.
Audio data is written to the Tapedeck at Ens Load (because len=0) for a minimum time (1 sample, the resulting 2 sample length might be due to Tapedeck interpolation)
The 1 sample Single Delay post the Init Bang seems to be needed due to the TD not allowing recording starts in the Init and first post init phase (Order 2, 3, ...), i guess.
1 -
Just to add:
This macro puts out the answer 2 samples post init. So it can´t be embedded into the global synchronous initialization step and it´s targets must be aligned to it.
0 -
This solution, using the Event Table, is so much smarter:
It uses less resources and it fires at the synchronous init step :-)
The event table gives out a 0 if you loaded the ens and it gives out a 1 if you restartet the Reaktor audio engine.
Re-initializations on ens load forced by switches, lists, etc. do not trigger the ET to fire a second time :-)
I like this one...
PS: it also gives out a 1 if a Sample Rate change occured. And it sometimes gives out a 1 at Voice Number change. But this is another topic that i should grab up in the R6 Initialization Info thread again...
Here the Module for you:
3
Categories
- All Categories
- 19 Welcome
- 1.4K Hangout
- 60 NI News
- 761 Tech Talks
- 4K Native Access
- 16.2K Komplete
- 2K Komplete General
- 4.2K Komplete Kontrol
- 5.6K Kontakt
- 1.6K Reaktor
- 373 Battery 4
- 831 Guitar Rig & FX
- 423 Massive X & Synths
- 1.2K Other Software & Hardware
- 5.6K Maschine
- 7.1K Traktor
- 7.1K 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