Comments (2)
The address is always an object of type MIDICNChannelAddress
. The constructor takes three parameters: the MIDI address (note/controller number), the MIDI channel, and the MIDI cable number.
The latter two have default values, if you don't specify them, the channel is 1, and the cable number is 0.
You can specify those optional parameters, but you have to add braces to group them:
MIDICNChannelAddress address1 = note(C, 4); // default channel, default cable
MIDICNChannelAddress address2 = {note(C, 4), CHANNEL_1}; // default cable
MIDICNChannelAddress address3 = {note(C, 4), CHANNEL_1, 0}; // no defaults
NoteButton button[] = {
{mux.pin(0), {note(C, 4), CHANNEL_2}},
{mux.pin(7), {note(D, 4), CHANNEL_2}},
{mux.pin(15), {note(E, 4), CHANNEL_2}}
};
MIDINoteLED leds[] = {
{sreg.pin(1), {note(C, 4), CHANNEL_2}}, // LED pin, address (note number, channel, cable)
{sreg.pin(9), {note(D, 4), CHANNEL_2}},
{sreg.pin(17), {note(E, 4), CHANNEL_2}}
};
from control-surface.
It works very well thank you!
from control-surface.
Related Issues (20)
- Bankable::ManyAddresses::CCAbsoluteEncoder HOT 2
- Time Display does not work.
- Does it's support ESP32-S3/C3 via USB port? HOT 7
- How to use 1 shift button to change bank:
- The sketch compiles, but doesn't work HOT 3
- Error when compiling for ESP32 S3 HOT 3
- Metronome Led HOT 3
- BANKS WITH MULTIPLE BUTTON FUNCTION HOT 1
- Using Control Surface with Teensy 4.1 board HOT 3
- BTstackBackgroundBackend connection issue HOT 6
- Map on Filtered Analog HOT 3
- Setting CCPotentiometer range HOT 3
- Switching presets Roland FP-30X HOT 2
- TYPO IN DOCUMENTATION HOT 1
- Error running on M1 Mac Sonoma with Teensy 4.0 HOT 4
- Arduino Nano 33 BLE Support? HOT 3
- Пример CCIncrementDecrementButtons.ino HOT 10
- Select bank HOT 2
- MIDI-монитор-OLED HOT 3
- Arduino Giga R1 Wifi support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from control-surface.