Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@kiki they always do, from what i have seen so far. But i lowkey always wanted to get into vst plugin development
-
ummm... if the code in the video is the code, there is SDL2 dependency i can see right at the start.
anyways, sound isn't that hard if you understand it. it's just a sequence of numbers making up a graph of the soundwave which you then throw at a function that produces current and thus em field with said intensities in the speakers.
i was halfway to something like this, except it was throwing the final buffer to a play audio function in Unity engine. it was supposed to be a sound generating library, you had various waveform generators and modifiers, and you could connect them in a graph, and i got it to a point where creating a whole song like this was possible, building it up from layers of waves, the bottom-most layer being waves determining the rythm of the notes, next one on top of that determining the melody for that rythm, then next few layers actually generating the sounds for those rythm and melody waves... -
i mean... it's mighty cool and awesome, but it's not something insanely incredible/impossible deserving of bewildered "how???"
-
@kiki ? No, I'm actively refactoring it, bit by bit.
- Formatted the notes
- Refactored the WAV exporting
- Refactored the instructions -
@kiki The more I work on this code, the more pain I feel..
https://github.com/ElectronicsArchi...
I really want to untangle that GIANT switch statement somehow ..
( not sure what is local and what isn't, what a pain ) -
kiki353252y@ElectroArchiver did you really see this stuff in my rant and jumped straight into action?
-
@kiki oh, sorry, i read that wrong, but yeah, it was clear to me that the only reason why sdl is included is that single function that dumps the buffer onto the speakers.
-
@kiki Not right away, but I left a tab open to check it out later and then decided I could use it as exercise and make it more readable at the same time.
Though I still don't know what dc_sl is, well left stands for left but no idea about the rest .. -
@ElectroArchiver It's the integral (sum) of the signal, i.e. the DC component. The purpose of the DC blocker is to eliminate the DC component so you don't end up using the voice coil of your speaker as a heater.
Related Rants
This crazy guy who created SunVox synth released a single C file that contains a long note sequence AND the synth code itself, with echo and shit, no deps other than SDL to output audio, so you basically compile a single C file, and it PLAYS REAL MUSIC
HOOOOOW
https://github.com/pixicoder/PS
https://youtube.com/watch/...
random
🤯