Git Product home page Git Product logo

elm-webaudio's Introduction

Hello ๐Ÿ‘‹

๐Ÿ”ญ Iโ€™m currently working on ...

  • Exploring generative art using glsl shaders

elm-webaudio's People

Contributors

bmatcuk avatar corajr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elm-webaudio's Issues

Can the library api be improved to fit better with Elm?

Hey @bmatcuk,

Eariler this summer I tried implementing this gist using elm-usermedia and elm-webaudio, but I was stumped by runtime errors I couldn't figure out. It's just a loop that analyses microphone input, picks out the loudest frequency at a given moment, and plays back an oscillator node of that frequency e.g you can control the oscillator (or potentially any synthetic sound) with your voice or whistle.

The errors seemed to relate quite deeply to Elm itself, and none of the libraries used. (Though I'll have to come back to this.) Nevertheless, using elm-webaudio felt a bit alien in Elm, i.e. not very functional nor reactive. It's true that the WebAudio API is neither of these things, and is indeed inherently mutable and everything not-Elm, but I'm hoping we could improve our interface with it. For my next attempt, I think I would access the WebAudio API through interop with javascript, to see how that feels, which is a nice way of saying I didn't particularly enjoy working with this library in Elm. (Please excuse my frankness -- it's a great effort! And I hope to build on it, but I also believe we could improve.)

I came across this gist on the mailing lists, and it struck me as a potentially better way to model the WebAudio API in Elm. I'm not sure if you've already considered or seen this approach, I'd be interested to hear any thoughts and if you're open to a discussion on how the design of elm-webaudio should be?

Recently, tasks have been replaced by effects and I haven't been able to stay up-to-date on everything, but I'm guessing they could be used to improve on the gist above.

Implementing MediaStreamAudioSourceNode and discuss getUserMedia

Hey, I'd like to implement what's necessary for playing with live microphone input.

I've got something basic working for getting user media (see elm-usermedia), now I'm having some problems implementing MediaStreamAudioSourceNode.

I've made my "progress" available at 04e487c, and aedb5f9 illustrates what I'm expecting. Currently I'm getting function arity errors that I haven't figured out. Grateful for any help and input.

I'm interested in a general discussion, I started working on elm-usermedia with the goal to play well with elm-webaudio. How were you thinking to originally implement this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.