Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes per channels #202

Open
michiruferrari opened this issue Oct 28, 2023 · 1 comment
Open

Notes per channels #202

michiruferrari opened this issue Oct 28, 2023 · 1 comment

Comments

@michiruferrari
Copy link

I have a question, is it possible to change the tone of each channel individually using the mapper? That is, channel 1 (pin 2 and 3) has tone n and channel 2 (pin 4 and 5) has tone n-5 and so on.

@Sammy1Am
Copy link
Owner

Sammy1Am commented Oct 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants