Hacker News new | ask | show | jobs
by Archit3ch 17 days ago
We use Julia for realtime audio processing. ;)
2 comments

I am also curious! A few things I would like to play with but haven't made the time for yet - real time FFT/spectrogram visualization (I want to play with some spiral things for chord / harmony visualization) - synth / live coding stuff (like supercollider but in Julia)
Re: live coding, the core part (redefining Julia functions), already works in Julia Base. You use the REPL and invokelatest() . :) https://www.youtube.com/watch?v=k-WUQFxWNj0

I have wrapped it in a project with helpers for opening audio streams and timing, but it's too vibecoded to share. It mostly exists as a Strudel-like environment to experiment with audio processing inside GPU shaders, and defining analog circuits in ModelingToolkit.

I am curious if you have any projects example, writing or example around audio processing and dsp with Julia?
The interesting part is deployment. Deploying Julia is still in flux, and especially tricky for realtime audio. I wanna do a proper write up one day, with slides and GitHub code. Perhaps as a JuliaCon talk or local meetup.

I find that DSP tends to look like procedural C code in any language. It should be straightforward to port your C++/Rust directly to Julia, and the ergonomics are much improved (especially around AutoDiff!). See https://www.youtube.com/watch?v=SvnDr9nnOZs

Here's my older talk on audio processing with Julia. The code still works, if you change the deprecated functionality for the new equivalents covered in the docs: https://www.youtube.com/watch?v=3DfVowNFI2c