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.
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.
What NobbZ said is the big thing, but there are other issues as well. It’s easier and safer just to make a push interface, something like:
IO.stream(:stdio, :line)
|> Stream.each(&Speakers.append_to_queue/1)
|> Stream.run()
Or so.
Gotcha, thanks again!
Ah I see what you mean, thanks, I’ll try it out.
Very great to hear people discussing Rust Rodio here. I am wondering where is Rodio’s support forum or chat room, I do have some Sink play() stop() questions want to ask.
Thanks,
Ajaxdone
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… GraphQL: The Documentary | .cult by Honeypot
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!