that is the begining of a new era (at least for me)
Statistics: Posted by oli_lab — 29 Feb 2016, 21:33
]]>2016-01-28T13:03:46+02:002016-01-28T13:03:46+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34588#p34588 I made 2 dimensionnal buffers instead of simple array, that was the mistake !
Now it sounds like there will be a new creative filter in the Usine wardrobe !
have to do some work on the resonance...
//The filter algo: //out(n) = a1 * in + a2 * in(n - 1) + a3 * in(n - 2) - b1*out(n - 1) - b2*out(n - 2) { sdkSmoothPrecision(cutoff, m_cutoff, 0.1f); computeCoeff(); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt(audioInputs, audioOutputs); //filter for (int j = 0; j < sdkGetEvtSize(audioOutputs); j++) { signal = a1 * sdkGetEvtArrayData(audioInputs, j); signal += a2 * audioBufferN1; signal += a3 * audioBufferN2; signal -= b1 * audioBufferN1; signal -= b2 * audioBufferN2; //output sdkSetEvtArrayData(audioOutputs, j, signal); audioBufferN2 = audioBufferN1[i]; audioBufferN1[i] = signal; } } }
Statistics: Posted by oli_lab — 28 Jan 2016, 12:03
]]>2016-01-27T21:05:33+02:002016-01-27T21:05:33+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34585#p34585 it is a butterworth filter.
trouble is, it does not working like a filter, more like a reverb !
I attached the code if someone can have a fresh look on it.
Statistics: Posted by oli_lab — 27 Jan 2016, 20:05
]]>2016-01-15T21:05:41+02:002016-01-15T21:05:41+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34525#p34525So the buffer is therefore sized by the incoming audio. So my module is an fx module now... Will publish soon...
Statistics: Posted by oli_lab — 15 Jan 2016, 20:05
]]>2016-01-15T20:25:06+02:002016-01-15T20:25:06+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34524#p34524 maybe i can help with this, but i need to see your source code for that
Statistics: Posted by martignasse — 15 Jan 2016, 19:25
]]>2016-01-07T19:48:01+02:002016-01-07T19:48:01+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34469#p34469Statistics: Posted by oli_lab — 07 Jan 2016, 18:48
]]>
2016-01-07T15:32:10+02:002016-01-07T15:32:10+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34462#p34462//on. h float* my_buffer = new[max_possible_size].
//on init when you get blocsize my_buffer = new float*[bloc_size];
this will make my_buffer of bloc size. but it should idealy be done only once as it increase memory, each time a 'new' object is made it should be destroyed somewhere when/if not used anymore. for exemple if in a fuction a new bloc_size was incoming would use delete[]my_buffer; my_buffer = nullptr; before creating a new one.
strange you can't access the function/var out of process mmmm have to find about this cause creating variables in process is much more cpu consuming than if one was only set in .h. no idea why it wouldn't work sorry .
]]>2016-01-07T11:26:06+02:002016-01-07T11:26:06+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34459#p34459 >> internal buffer of -1..1 floats as you wish (of bloc size) for some reason, I have to make one of fixed sized (ie 512 or 256) doing Tpecision BLOC_SMP_BUFFER[BLOC_SIZE] is not working
the stuff inside the "my_fonction" is not reconized, even though all the variables are declared in the .h file (it is reckonnized if the content of my_fonction is placed directly inside "on_process"...
for the rest no sound is going to the output apart of a high pitch glitch...
I keep investigate.
cheers
Statistics: Posted by oli_lab — 07 Jan 2016, 10:26
Statistics: Posted by oli_lab — 06 Jan 2016, 13:41
]]>2016-01-06T13:19:56+02:002016-01-06T13:19:56+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34450#p34450I have nothing on the audioOutput, because bufferSize = 0... do I have to set the blockSize ? or else ? how ?
Statistics: Posted by oli_lab — 06 Jan 2016, 12:19
]]>2015-12-30T15:06:46+02:002015-12-30T15:06:46+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34404#p34404I'd like to experiment with strange sound generators... is anyone has an easy way to build a basic audio sawtooth in the sdk ?
this sawtooth will give me the frequency and phase and I'll manage to do all the funny sound generation from it by passing it throught cos(x) and all...
thanks
Olivar
Statistics: Posted by oli_lab — 30 Dec 2015, 14:06
that is the begining of a new era (at least for me)
Statistics: Posted by oli_lab — 29 Feb 2016, 21:33
]]>2016-01-28T13:03:46+02:002016-01-28T13:03:46+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34588#p34588 I made 2 dimensionnal buffers instead of simple array, that was the mistake !
Now it sounds like there will be a new creative filter in the Usine wardrobe !
have to do some work on the resonance...
//The filter algo: //out(n) = a1 * in + a2 * in(n - 1) + a3 * in(n - 2) - b1*out(n - 1) - b2*out(n - 2) { sdkSmoothPrecision(cutoff, m_cutoff, 0.1f); computeCoeff(); for (int i = 0; i < numOfAudiotInsOuts; i++) { sdkCopyEvt(audioInputs, audioOutputs); //filter for (int j = 0; j < sdkGetEvtSize(audioOutputs); j++) { signal = a1 * sdkGetEvtArrayData(audioInputs, j); signal += a2 * audioBufferN1; signal += a3 * audioBufferN2; signal -= b1 * audioBufferN1; signal -= b2 * audioBufferN2; //output sdkSetEvtArrayData(audioOutputs, j, signal); audioBufferN2 = audioBufferN1[i]; audioBufferN1[i] = signal; } } }
Statistics: Posted by oli_lab — 28 Jan 2016, 12:03
]]>2016-01-27T21:05:33+02:002016-01-27T21:05:33+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34585#p34585 it is a butterworth filter.
trouble is, it does not working like a filter, more like a reverb !
I attached the code if someone can have a fresh look on it.
Statistics: Posted by oli_lab — 27 Jan 2016, 20:05
]]>2016-01-15T21:05:41+02:002016-01-15T21:05:41+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34525#p34525So the buffer is therefore sized by the incoming audio. So my module is an fx module now... Will publish soon...
Statistics: Posted by oli_lab — 15 Jan 2016, 20:05
]]>2016-01-15T20:25:06+02:002016-01-15T20:25:06+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34524#p34524 maybe i can help with this, but i need to see your source code for that
Statistics: Posted by martignasse — 15 Jan 2016, 19:25
]]>2016-01-07T19:48:01+02:002016-01-07T19:48:01+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34469#p34469Statistics: Posted by oli_lab — 07 Jan 2016, 18:48
]]>2016-01-07T15:32:10+02:002016-01-07T15:32:10+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34462#p34462//on. h float* my_buffer = new[max_possible_size].
//on init when you get blocsize my_buffer = new float*[bloc_size];
this will make my_buffer of bloc size. but it should idealy be done only once as it increase memory, each time a 'new' object is made it should be destroyed somewhere when/if not used anymore. for exemple if in a fuction a new bloc_size was incoming would use delete[]my_buffer; my_buffer = nullptr; before creating a new one.
strange you can't access the function/var out of process mmmm have to find about this cause creating variables in process is much more cpu consuming than if one was only set in .h. no idea why it wouldn't work sorry .
]]>2016-01-07T11:26:06+02:002016-01-07T11:26:06+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34459#p34459 >> internal buffer of -1..1 floats as you wish (of bloc size) for some reason, I have to make one of fixed sized (ie 512 or 256) doing Tpecision BLOC_SMP_BUFFER[BLOC_SIZE] is not working
the stuff inside the "my_fonction" is not reconized, even though all the variables are declared in the .h file (it is reckonnized if the content of my_fonction is placed directly inside "on_process"...
for the rest no sound is going to the output apart of a high pitch glitch...
I keep investigate.
cheers
Statistics: Posted by oli_lab — 07 Jan 2016, 10:26
Statistics: Posted by oli_lab — 06 Jan 2016, 13:41
]]>2016-01-06T13:19:56+02:002016-01-06T13:19:56+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34450#p34450I have nothing on the audioOutput, because bufferSize = 0... do I have to set the blockSize ? or else ? how ?
Statistics: Posted by oli_lab — 06 Jan 2016, 12:19
]]>2015-12-30T15:06:46+02:002015-12-30T15:06:46+02:00https://brainmodular.com/forums/viewtopic.php?t=5250&p=34404#p34404I'd like to experiment with strange sound generators... is anyone has an easy way to build a basic audio sawtooth in the sdk ?
this sawtooth will give me the frequency and phase and I'll manage to do all the funny sound generation from it by passing it throught cos(x) and all...
thanks
Olivar
Statistics: Posted by oli_lab — 30 Dec 2015, 14:06