14: ADSR, C++ Real-Time Audio Programming with Bela

  Рет қаралды 2,497

Bela Platform

Bela Platform

Күн бұрын

Lecture 14 of C++ Real-Time Audio Programming with Bela. This lecture covers the ADSR (attack-decay-sustain-release) envelope, implemented using state machines.
In this lecture:
Section 1: Review of state machines and envelopes 0:00
Section 2: ADSR as a state machine 9:34
Section 3: ADSR class 23:02
Section 4: Exponential ADSR 35:42
Example code and companion materials:
github.com/BelaPlatform/bela-...
This course is a deep dive into how Bela processes data, and how to implement real-time audio and interaction. If you want to learn or improve your skills with C++ and audio programming, this is a great way to start!
Bela is the open-source platform for creating beautiful interaction. If you’d like to get a Bela system to follow along with these lectures, visit shop.bela.io. Use promo code CREATEATHOME for £10 off Bela and Bela Mini Starter Kits.
Music by Vula Viel (vulaviel.com).

Пікірлер: 3
@SylvainPoitras
@SylvainPoitras 3 жыл бұрын
Working with Pure Data, I always took the shortcut to fake exponential decay presented in Andy Farnell's Designing Sound: multiplying the current envelope value by itself four times. This quartic envelope is a fairly efficient approximation of exponential decay.
@clausanders2886
@clausanders2886 3 жыл бұрын
Is there a particular reason, why you are using nested if statements instead of switch/case statements? I personally find switch statements easier to read and maintain.
@apm414
@apm414 3 жыл бұрын
Good question. You can definitely use switch/case statements instead of a series of if statements, but I chose the latter for a couple reasons: first, it's simpler and less bug-prone when learning C++ (particularly forgetting to include a "break"), and second, you can't define local variables within a "case" statement which can be slightly confusing if you have more complex code to run. Ultimately it's a matter of taste, and I use plenty of switch/case in my own code.
15: MIDI part 1, C++ Real-Time Audio Programming with Bela
50:53
Bela Platform
Рет қаралды 6 М.
Designing a simple ADSR(-ish) envelope generator from scratch
31:00
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 160 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
Barker meets Gliss
3:45
Bela Platform
Рет қаралды 1,9 М.
Trill Flex: Flexible Touch Sensing For Makers
1:07
Bela Platform
Рет қаралды 6 М.
0: Setting Up, C++ Real-Time Audio Programming with Bela
27:18
Bela Platform
Рет қаралды 25 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Grouping in mongodb
24:51
Hitesh Choudhary
Рет қаралды 23 М.
Hello from Bela
2:19
Bela Platform
Рет қаралды 3,2 М.
Scientific Concepts You're Taught in School Which are Actually Wrong
14:36
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 58 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 1,2 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 416 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН