octetta

octetta

Hello everyone.

I’m fresh from the excitement from talking to folks at the 2024 NervesConf and ElixirConf in Chattanooga and want to open a thread about using audio on Nerves.

I chatted with FrankH about experiments I’ve made in C using a header-file-only library called miniaudio which makes it super easy to get audio frames into/out-of your system (works on Linux/Windows/macOS), and he encouraged me to find like-minded Nerves folks here for support and collaboration…

Anyway… while I’ve only lightly tried to get miniaudio working on Nerves, I have used this library extensively on my Mac and Linux desktop/laptop hardware for synthesizer/sequencing toys I’m working on…

The summary of miniaudio is that for my cases, it allows me to enumerate audio input and output devices attached to my systems, then attach a callback to the selected devices where I then receive audio frames and/or send audio frames to the selected hardware… all in about 30 lines of C.

I’ve used this in conjunction with C/Go code interacting with a few synth/waveform engines (AMY and PureData / libpd), but I’m still new enough with Nerves that I haven’t fully gotten my C/port application to run there (I suspect it’s a lack of shared library for pulseaudio/ALSA/pipewire/etc there).

(warning messy code AMY here and libpd here)

Nonetheless, I think this is very solvable and I wanted to open a conversation for people here who might be doing things in Nerves that need audio input / output.

Ideas?

While my existing stuff is only loosely Elixir/Nerves adjacent, I’ve put a few notes on my rarely updated blog here and here.

If you want to see some unexplained demos of my WIP sound playground, I’ve got a few videos on YT showing off the prototypes at various points in time here… someone described this tool as it looks like brainf*ck and PureData mated and had a very ugly and noisy child, LOL.

Cheers and BEEP/BOOP/BANG (text sound effects :wink: )

Joe/octetta

Showing Posts 1 to 1

pojiro

pojiro

Hi, just FYI :slight_smile:

I’ve ported Nerves to Zybo Z7-10 before, nerves_system_zybo_z7_10.
I don’t know much about music or audio and FPGA. But at that time, I thought that this board seemed to be suitable for playing with sound. There are audio input/output and FPGA, so we are possible to convert the waves.

I also found the intelesting youtube, you may have already watched.
Geoffrey Lessel - Controlling MIDI Devices in Real Time with Elixir and Nerves

beep/boop/bang !

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews