Giter Site home page Giter Site logo

Chords about moppy2 HOT 1 CLOSED

sammy1am avatar sammy1am commented on May 29, 2024
Chords

from moppy2.

Comments (1)

Sammy1Am avatar Sammy1Am commented on May 29, 2024

Unfortunately, if multiple note events come through on the same channel, there's no additional information to differentiate those notes. That is, there's no reliable way to e.g. always have the lowest note assigned to one drive and the highest to another. By default, each note will just immediately override the other, and you'll get one (sorta randomly selected) note of the chord.

The best generic solution I've come up with is sending incoming notes round-robin to the available drives (there's an example of this already implemented if you selected "Round Robin" from the SubAddress scripts dropdown for that channel's mapper (on the lower part of the GUI)). Basically each incoming note will be played on the next available drive (1->2->3...->8->1->2...), and any note-off events will turn off any drives currently playing that note (since there's no way to tell for sure which note-on event the note-off event correlates to). You can see the implementation of nextRoundRobinSubAddress in this file.

The upside with this strategy is that every note of a chord (up to the number of drives you have) will get played simultaneously. The downside is that the drives don't have the same sort of consistency as with assigned SubAddresses so the notes sort of chase eachother around the setup (which I guess can be kind of fun too).

In theory it should be possible to use track information to separate notes as well (though this diverges a bit from the chord question), and I've got issue #9 open to track that, but it's a tricky one.

If you decide to try to implement something new, I'm happy to provide any advice that would be helpful. Good luck!

from moppy2.

Related Issues (20)

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.