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

External mappings for MIDI instruments #1212

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Bubobubobubobubo
Copy link
Contributor

@Bubobubobubobubo Bubobubobubobubo commented Nov 9, 2024

This draft PR proposes the addition of custom external instrument MIDI mappings exposing new parameters to be patterned. A mapping currently
takes this form:

let mapping = {
  port: "MIDI Bus 1",
  dummy: {cc: 80, channel: 1}, // channel is optional
  controller: true // whether or not to emit a note
}

note("C E G C").dummy(0.2).midi(mapping)

It could be much better with the following additions:

  • custom range mapping
  • automatically declaring new params (if they do not exist)
  • documentation

This commit adds a second argument to the midi() command: mapping.
This argument should be an object containing a key-value map of
MIDI controls used by an external synthesizer. If any control is
used that matches the mapping, a CC message is sent.
@Bubobubobubobubo Bubobubobubobubo marked this pull request as draft November 9, 2024 14:39
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

Successfully merging this pull request may close these issues.

2 participants