Live data from Hacker News

Ask HN: How to get started with audio programming?

news.ycombinator.com

101–110 of 123 posts

Re: Ask HN: How to get started with audio programming?

#101

Does anybody have a good tutorial on the Fast Fourier Transform? It always feels to be just out of my grasp and I wonder if someone has broken it down in an intuitive way.

You’re in luck. There was a thread about it 5 days ago.

https://news.ycombinator.com/item?id=27229836

My favorite was

https://youtu.be/spUNpyF58BY

Re: Ask HN: How to get started with audio programming?

#102

This is a topic close to my heart as I've always been very into music production and programming, and have dabbled with a few things over the years, but have only started working professionally with audio software in the last few years. What is your background, and which parts of audio programming would you like to focus on? e.g. are you interested in writing your own low-level DSP code, or more interested in hooking…

> I'm actually working on an integration right now to allow you to build web UIs for JUCE apps, which takes away the complexity of also building the UI in C++

I assume you've seen the Blueprint project for building React UIs on top of JUCE? Very interested to hear more details about what you've been working on whenever you have something ready to share!

Re: Ask HN: How to get started with audio programming?

#103

I've been getting into this over the past couple of years too and I feel like I sort of hit a wall. I am comfortable writing low level efficient real-time code in C (I'm an ex game dev). I understand most synthesis techniques in pretty good detail. I could probably write a book on subtractive synthesis, and I have implemented a complete functioning FM synth. I get the fundamental concepts around DSP: Nyquist, samplin…

Have you tried GNU Octave? It seems to be a replacement for MATLAB.

I have not, that's a good pointer. Thanks!

Re: Ask HN: How to get started with audio programming?

#104
post #102

This is a topic close to my heart as I've always been very into music production and programming, and have dabbled with a few things over the years, but have only started working professionally with audio software in the last few years. What is your background, and which parts of audio programming would you like to focus on? e.g. are you interested in writing your own low-level DSP code, or more interested in hooking…

> I'm actually working on an integration right now to allow you to build web UIs for JUCE apps, which takes away the complexity of also building the UI in C++ I assume you've seen the Blueprint project for building React UIs on top of JUCE? Very interested to hear more details about what you've been working on whenever you have something ready to share!

I have indeed, it's great.

My primary motivations for doing something different was that Blueprint currently doesn't work on mobile (and I'm not sure it could ship on the iOS app store currently, with it using Duktape), and I wanted to get away from writing any C++ at all for the UI – and also that I love playing with this kind of stuff, heh. The app that I work on is built using React Native and JUCE (and Unity), so it's an area I have a lot of thoughts about!

TBH the web stuff started out as an experiment, but I'm actually pretty impressed by how practical web is for building UIs – I've got some nice integration going on to make it pretty natural to write plugin UIs. I'll post it on here when it's ready, but if you have a Twitter/email/whatever you'd like to share or can contact me via mine in my profile, I'd be happy to share with you in advance – I'd love to get feedback from people interested in this area.

Re: Ask HN: How to get started with audio programming?

#105

I've been getting into this over the past couple of years too and I feel like I sort of hit a wall. I am comfortable writing low level efficient real-time code in C (I'm an ex game dev). I understand most synthesis techniques in pretty good detail. I could probably write a book on subtractive synthesis, and I have implemented a complete functioning FM synth. I get the fundamental concepts around DSP: Nyquist, samplin…

As an alternative to MATLAB/Octave, may I suggest using Python with Jupyter Notebooks?

For exploratory/analysis/prototyping work, I have not found a better platform and ecosystem. These notebooks are really powerful feature-wise, you can mix Markdown notes/documentation with code blocks with data visualization natively, which is a no brainer when doing your research work.

Re: Ask HN: How to get started with audio programming?

#107
post #96
post #89

Since we are all here, I have a question. I personally am much more interested in audio sample triggering and/or loop based production in this context than synthesis/wave generation -- and it seems like the overwhelming majority of tools are focused on the latter. In my head, I'm imagining a more programmatic approach to "arrangement of samples and loops," as in, instead of, or perhaps complementing, the classic "gri…

Echoing a lot of sentiment here, you can do pretty much all of these things with SuperCollider. I'd go straight to SuperCollider rather than a "frontend" like Overtone/SonicPi. Not that these frontends are bad, but SuperCollider also has a nice frontend - the IDE works great with builtin doc searching, autocompletion, etc. Sample wrangling becomes pretty thorny quickly as if you are triggering samples you want to mak…

This looks cool! I haven't played around with these sorts of things in a long time, but yes, it's always felt like "samples" have been a second class citizen in these deals -- but of course, ought to be able to be abstracted away with functional programming.

Re: Ask HN: How to get started with audio programming?

#108
Awesome discussion in here, I'm happy to see it!

I thought I might throw my hat in the ring of shameless self promotion since you might be interested:

I'm working on a project called Elementary Audio, which is a brand new javascript runtime and framework for writing native audio applications– meaning desktop apps, like perhaps the mini-synth you're hoping to make, as well as audio plugins (VST, AU, AAX, etc) and even embedded hardware, all in JavaScript.

The project is still in an early stage (and macOS only right now). I'm planning to share it more widely here on HN once it's ready for beta, but I thought this thread might be interested in it before then.

Website: https://www.elementary.audio/

And here's an example MIDI Synth: https://github.com/nick-thompson/elementary/blob/master/exam...

You could even spin up an Electron frontend to take input from your computer keyboard and send those over to Elementary to render the synth sounds. It's actually an example project I was considering doing myself but you might beat me to it at this point!

Lastly, I'll say briefly that there are a lot of tools out there (as we're seeing in these comments), different things work for different people, and there's no single "right" way to start audio programming– find the path that makes it fun for you, because it's such an awesome field to get into.

Re: Ask HN: How to get started with audio programming?

#109

I've been getting into this over the past couple of years too and I feel like I sort of hit a wall. I am comfortable writing low level efficient real-time code in C (I'm an ex game dev). I understand most synthesis techniques in pretty good detail. I could probably write a book on subtractive synthesis, and I have implemented a complete functioning FM synth. I get the fundamental concepts around DSP: Nyquist, samplin…

As an alternative to MATLAB/Octave, may I suggest using Python with Jupyter Notebooks? For exploratory/analysis/prototyping work, I have not found a better platform and ecosystem. These notebooks are really powerful feature-wise, you can mix Markdown notes/documentation with code blocks with data visualization natively, which is a no brainer when doing your research work.

I don't think it's an issue of having some general language for doing math work. My understanding is that MATLAB specifically has a ton of built in functionality for filter design and coefficient calculation.

Re: Ask HN: How to get started with audio programming?

#110

I manage a team in this field presently; the answer to your question depends on whether you want to be gainfully employed doing so, or not. Web Audio API and JUCE are the modern building blocks for mostly everything out there; if you're familiar with these, that's a really good place to start. If you're looking for something accessible, SOUL is an excellent domain-specific scripting language that leverages JUCE under…

I'm super interested in SOUL. I noticed the keynote was two years ago and it's still being developed, makes me hopeful for its future.
Post reply on HN