Giter Club home page Giter Club logo

elm-webmidi-ports's People

Contributors

newlandsvalley avatar rhofour avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rhofour

elm-webmidi-ports's Issues

FR: Add the ability to distinguish between midi devices

I can probably write this, but I'm opening this to track it and hopefully get some input on how to implement this.

Input and output devices are already tracked and exposed to Elm, but right now you can't do anything with them.

For input:
I think the most straightforward thing would be to expose the ID of the midi device in the EncodedEvent and Event messages. That way clients can easily ignore it if they don't care, but they also have all the information if they want to use it. There might be a race if we receive a MIDI message followed by the device immediately disconnecting it's possible when a client sees the decoded event the attached device ID doesn't match up to any device. I don't think this is much of a problem though.

For output:
I think the simplest thing here would be to have two different send functions. One which sends to everything (like the existing one) and another which accepts a list of device ids.

Thoughts?

FR: Add unit tests

I haven't looked into how to test Elm with ports, but I don't suspect this will be too hard since the ports already make a good separation between this library and the web MIDI JS.

Files aren't formatted with elm-format

Right now most of the Elm files are formatted with elm-format. Would you accept a PR to reform the Elm files?

I like autoformatters because they give me one less thing to think about when I'm writing code. However, they don't work well if everyone isn't on board as they'll otherwise clutter up unrelated changes and make the history harder to follow.

FR: Support MIDI output

I'm going to get to work on this.

For the first version I'm thinking something similar to how inputs are currently handled where we don't differentiate between devices so any output will be sent to every device.

FR: Setup CI testing

This would just ensure the main package and the examples continue to build. If tests are eventually added this would have even more benefit.

Travis CI seems to be the popular option since it's well integrated and free for open source stuff. I'll eventually get around to looking at it.

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.