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

juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
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
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
jam
This was an interesting post by Jose. Curious to hear what others think. Evolving programming languages in the AI era - Dashbit Blog Gen...
New
thbar
Hi there, I’m in the process of deploying a Phoenix app to a EU host (UpCloud specifically), where the instances provided are mostly raw...
New

Other Trending Topics Top

KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews