rgill

rgill

Is there an elixir audio package?

Hi guys,
New to the forum here and somewhat new to elixir as well. I’ve been going through tutorials and doing the Dave Thomas’ course on elixir, but I’ve been looking to build something in the mean time. I had a project that I wrote in javascript which output sounds through the speakers and I was thinking of porting that to elixir for funsies.

However, I couldn’t find anything related to audio output through google or any package on hex.pm, is there anything already? Does anyone have an idea?
For reference: I was using this package in javascript (https://www.npmjs.com/package/speaker)

Most Liked

OvermindDL1

OvermindDL1

I’d imagine whipping up the Rust rodio library in rustler would make a good setup. :slight_smile:

rgill

rgill

Got a working version, would you mind reviewing it? I’m still unsure about best practices in elixir so might be doing something blatantly wrong or not following better conventions.

https://github.com/razagill/speakers

NobbZ

NobbZ

Because what you call a stream can be anything, a function, a struct of an unspecified module, a pid… And nothing but the Stream module knows how to deal with them.

Streams have to be considered opaque.

Last Post!

jonnyhotchkiss

jonnyhotchkiss

Hi everyone, I just found this whilst looking for elixir audio stuff.
First, I was going to share LiveBeats: Building a social music app with Phoenix LiveView · The Fly Blog in case that helps (there’s reference to the challenges of calculating bpm)

I’m as new to Ruby as I am to SonicPi and SuperCollider, and elixir is even newer, so whilst make and rake things seem self-explanatory, I’m not 100% how it all connects… I think a jigsaw piece landed the other day when I saw some docs on the origin stories of elixir and especially graphql, the ‘framework’ becomes popular when implemented in popular languages… https://cult.honeypot.io/originals/graphql-the-documentary/

Is there a good getting started page, to understand what hex is, what Nif’s are, what supervisison entails?

Would you recommend students get to grips with JS and RUST (and any others?) before starting to look at Elixir and others?

Will start by looking up the course by Dave Thomas.

Thanks!

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement