12: Envelopes, C++ Real-Time Audio Programming with Bela

  Рет қаралды 3,054

Bela Platform

Bela Platform

Күн бұрын

Пікірлер: 17
@joaotragtenberg
@joaotragtenberg 4 жыл бұрын
This was one of the deepest lectures, I took the whole day to finish it but it feels really rewarding, thanks for that!
@droussel7359
@droussel7359 3 жыл бұрын
The value of those lectures is immense. As a long time programmer interested in getting go to audio stuff; this is invaluable. Thanks and I hope those will continue for a long time. Also ordering a Bela board :)
@ОрландоОрсо
@ОрландоОрсо 4 жыл бұрын
Thank you for this great lecture!
@michaelliuzzi
@michaelliuzzi 2 жыл бұрын
Can someone explain how a filter, which I understand to effect the frequency domain of a signal, can be used to smooth the amplitude variation of a signal? Is the amplitude variation, in this case, the "frequency" that we are talking about?
@joaotragtenberg
@joaotragtenberg 4 жыл бұрын
Should the line 99 in the Envelope Follower code you showed in 49:38 be "envelopeInput" instead of "in"? Because the "in" value could be also a negative number, and the "gLastEnvelopeSample" is always positive right? It can't understand what it could mean by the comparison of the raw signed input and the last envelope sample.
@oromoiluig
@oromoiluig 4 жыл бұрын
I think you are right. As it is, during the attack phase the envelope detector will alternate between the attack and decay time constants, which is going to make the attack slower than expected.
@apm414
@apm414 4 жыл бұрын
True, it should be envelopeInput. You end up with a sort of half-wave rectifier and, as Giulio says, a slower attack. Thanks for spotting that!
@michaelliuzzi
@michaelliuzzi 2 жыл бұрын
I also can't quite grok why we have called the tau parameters in the code attack time. It seems to scale the function by some value, but its not true that the attack time, in the way I understand it, to be the tau parameter. I would think attack time would mean the time we take to reach the maximum value,.
@joaotragtenberg
@joaotragtenberg 4 жыл бұрын
In the exponential decay envelope (around 38:45), I missed the update of the variable gLastButtonValue, you just call it inside the if statement. It should hold the gAmplitude at 1.0 when holding the button and only triggering the decay envelope when you release the button.
@oromoiluig
@oromoiluig 4 жыл бұрын
it would seem that the code as is would keep the amplitude to 1 as long as the button is held down, and start the exponential decay upon release (it acts as a gate signal). Perhaps not quite what was expected, but it should still be usable.
@apm414
@apm414 4 жыл бұрын
Yes you're right, there should be a line updating gLastButtonValue after the if statement. Good catch.
@apm414
@apm414 4 жыл бұрын
At 30:45 you can hear a bug in my example code. See if you can spot it!
@joaotragtenberg
@joaotragtenberg 4 жыл бұрын
it takes the first 2 seconds doing nothing, because you set the ramp to decrease if the gRampIncreasing was true, so since the ramp starts with the lowest value, it decreases from itself to itself...
@apm414
@apm414 4 жыл бұрын
@@joaotragtenberg yep!
@clausanders2886
@clausanders2886 4 жыл бұрын
elapsed time in seconds is not samples*sample rate, rather is samples/sample rate.
@apm414
@apm414 4 жыл бұрын
Oops, you're right! That's been in a couple videos now and escaped notice. The code examples have it correct, at least.
@lazzarello
@lazzarello 4 жыл бұрын
more like a fabsolute value
13: State Machines, C++ Real-Time Audio Programming with Bela
46:06
Bela Platform
Рет қаралды 2,3 М.
21: ARM Assembly Language,  C++ Real-Time Audio Programming with Bela
1:00:46
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 14 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 71 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 837 М.
Sarah Belle Reid meets Gliss
7:44
Bela Platform
Рет қаралды 3,1 М.
Interview with an Emacs Enthusiast in 2023 [Colorized]
8:50
Programmers are also human
Рет қаралды 1,2 МЛН
Unreal in 100 Seconds
2:52
Fireship
Рет қаралды 927 М.
Interview with Sr. C Dev | Prime Reacts
6:52
ThePrimeTime
Рет қаралды 399 М.
My Forever Dev Workflow
16:02
typecraft
Рет қаралды 109 М.
Barker meets Gliss
3:45
Bela Platform
Рет қаралды 2,2 М.
Dr Gabor Mate answers question about October 7th during conference
12:53
Middle East Eye
Рет қаралды 572 М.
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН