ArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2015-06-01T20:32:21+02:00https://www.brainmodular.com/forums/app.php/feed/topic/49582015-06-01T20:32:21+02:002015-06-01T20:32:21+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32997#p32997 did that :
// destructor AudioVolumeExample::~AudioVolumeExample() { if (m_tevtSmoothCurrentCoeff != NULL) sdkDestroyEvt(m_tevtSmoothCurrentCoeff); }
...
// Called after the query popup void AudioVolumeExample::onAfterQuery (MasterInfo* pMasterInfo, ModuleInfo* pModuleInfo, int queryIndex) { sdkCreateEvt(m_tevtSmoothCurrentCoeff, pMasterInfo->BlocSize); }
{ sdkSmoothEvent(m_smoothOldCoeff, m_tevtSmoothCurrentCoeff, coeffGain , SMOOTH_SLOW); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt (audioInputs, audioOutputs); if ((coeffGain > 0) || (m_smoothOldCoeff > 0.0f)) // { sdkMultEvt2Audio(m_tevtSmoothCurrentCoeff, audioOutputs); }
//y = x / (1 + | x | ) softclipping formula for (int j = 0; j < sdkGetEvtSize(audioOutputs); j++) { tempValue = sdkGetEvtArrayData(audioOutputs, j) / (1.1f + abs(sdkGetEvtArrayData(audioOutputs, j))); sdkSetEvtArrayData(audioOutputs, j, tempValue); } } }
Statistics: Posted by oli_lab — 01 Jun 2015, 20:32
]]>2015-05-31T17:25:32+02:002015-05-31T17:25:32+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32988#p32988I tried few over things but I still amazed at the speed I get lost ! as soon as coeffgain is >0 I get a massive "on process"error
void AudioVolumeDCblock::onProcess () { //sdkSmoothEvent(m_smoothOldCoeff, m_tevtSmoothCurrentCoeff, coeffGain, SMOOTH_SLOW); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt(audioInputs, audioOutputs); //sdkClearAudioEvt(audioOutputs);
Statistics: Posted by oli_lab — 31 May 2015, 17:25
]]>2015-05-31T15:47:42+02:002015-05-31T15:47:42+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32987#p32987 you can found an implementation example in the onProcess of the matrix audio sources
MatrixAudio.cpp, line 765
Statistics: Posted by martignasse — 31 May 2015, 15:47
]]>2015-05-30T22:59:12+02:002015-05-30T22:59:12+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32983#p32983Statistics: Posted by oli_lab — 30 May 2015, 22:59
Statistics: Posted by oli_lab — 30 May 2015, 19:46
]]>BrainModularBrainModular Users Forum2015-06-01T20:32:21+02:00https://www.brainmodular.com/forums/app.php/feed/topic/49582015-06-01T20:32:21+02:002015-06-01T20:32:21+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32997#p32997 did that :
// destructor AudioVolumeExample::~AudioVolumeExample() { if (m_tevtSmoothCurrentCoeff != NULL) sdkDestroyEvt(m_tevtSmoothCurrentCoeff); }
...
// Called after the query popup void AudioVolumeExample::onAfterQuery (MasterInfo* pMasterInfo, ModuleInfo* pModuleInfo, int queryIndex) { sdkCreateEvt(m_tevtSmoothCurrentCoeff, pMasterInfo->BlocSize); }
{ sdkSmoothEvent(m_smoothOldCoeff, m_tevtSmoothCurrentCoeff, coeffGain , SMOOTH_SLOW); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt (audioInputs, audioOutputs); if ((coeffGain > 0) || (m_smoothOldCoeff > 0.0f)) // { sdkMultEvt2Audio(m_tevtSmoothCurrentCoeff, audioOutputs); }
//y = x / (1 + | x | ) softclipping formula for (int j = 0; j < sdkGetEvtSize(audioOutputs); j++) { tempValue = sdkGetEvtArrayData(audioOutputs, j) / (1.1f + abs(sdkGetEvtArrayData(audioOutputs, j))); sdkSetEvtArrayData(audioOutputs, j, tempValue); } } }
Statistics: Posted by oli_lab — 01 Jun 2015, 20:32
]]>2015-05-31T17:25:32+02:002015-05-31T17:25:32+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32988#p32988I tried few over things but I still amazed at the speed I get lost ! as soon as coeffgain is >0 I get a massive "on process"error
void AudioVolumeDCblock::onProcess () { //sdkSmoothEvent(m_smoothOldCoeff, m_tevtSmoothCurrentCoeff, coeffGain, SMOOTH_SLOW); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt(audioInputs, audioOutputs); //sdkClearAudioEvt(audioOutputs);
Statistics: Posted by oli_lab — 31 May 2015, 17:25
]]>2015-05-31T15:47:42+02:002015-05-31T15:47:42+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32987#p32987 you can found an implementation example in the onProcess of the matrix audio sources
MatrixAudio.cpp, line 765
Statistics: Posted by martignasse — 31 May 2015, 15:47
]]>2015-05-30T22:59:12+02:002015-05-30T22:59:12+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32983#p32983Statistics: Posted by oli_lab — 30 May 2015, 22:59
]]>2015-05-30T19:46:41+02:002015-05-30T19:46:41+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4958&p=32982#p32982 void sdkSmoothEvent (TPrecision &oldValue, UsineEventPtr currentEvent, TPrecision target, TPrecision factor)
is someone has a working example ?
I want to use it on the volume series I did few weeks ago.
I think I should put it on top, to have it process only once each time all the audio channel are processed
am I right ?
void AudioVolumeDCblock::onProcess () { sdkSmoothEvent(m_smoothOldCoeff, m_tevtSmoothCurrentCoeff, coeffGain, SMOOTH_FAST); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt(audioInputs, audioOutputs);