Coder Social home page Coder Social logo

Notes per channels about moppy2 HOT 1 OPEN

michiruferrari avatar michiruferrari commented on July 20, 2024
Notes per channels

from moppy2.

Comments (1)

Sammy1Am avatar Sammy1Am commented on July 20, 2024

There is. There's two ways to approach this (it's been a long time since I've actually touched this program, so my examples below might not be 100% correct, but should give you an idea of how it works):

  1. You can make a separate mapper for channel by putting e.g. c==0 for the first channel, c==1 for the next channel, etc. Then each mapper will get notes from only one channel and you can do what you need to do with them there. This makes a lot of sense if each channel is assigned to a different kind of instrument that needs adjusting or something.
  2. You can programmatically change the note value using the note script. E.g. instead of n, you could put n - (5*c) which would make each successive channel get mapped 5 notes lower.

Now, as I've been typing this I realized you might be asking a different question, since "channel" isn't necessarily assigned to pin numbers. The pin assignments are controlled by the "subAddress" part of the scripts. By default I think these are mapped to channels, like maybe c+1 or something. But if you wanted each sub-address to handle just one specific note (like if you were making chimes or a xylophone or something) you could have the sub-address script be something like n-40 which would make note 40 play on sub-address 0, etc.

Hopefully that helps, if you run into something else specific though let me know.

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.