Comments (6)
You seem to be compiling an old example that's not compatible with the new version of the library.
See the documentation of NoteButtonMatrix here: https://tttapa.github.io/Control-Surface/Doc/Doxygen/d5/df9/group__MIDIOutputElementConstructors.html#ga23e45eeee7965faa832397bc1a842446
For example:
#include <Control_Surface.h>
USBMIDI_Interface midi;
// The note numbers corresponding to the buttons in the matrix
const AddressMatrix<4, 3> addresses = {{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
{ 10, 11, 12 }
}};
NoteButtonMatrix<4, 3> buttonmatrix = {
{2, 3, 4, 5},
{6, 7, 8},
addresses,
CHANNEL_1,
};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}
from control-surface.
from control-surface.
from control-surface.
from control-surface.
What do you mean by "velocity buttons"?
You don't have to use the NoteButtonMatrix class. You can use the ButtonMatrix class that just reads the buttons, without any MIDI stuff (it is the base class that is used by the MIDI Button Matrix classes).
https://tttapa.github.io/Control-Surface/Doc/Doxygen/d8/d6c/classButtonMatrix.html
If that doesn't fit your needs, you can just write your own classes, you can easily add MIDI Elements to the Control Surface library, and you can use the utilities it provides, like the MIDI functions and the hardware elements.
from control-surface.
Is there a max polyphony/simultaneous presses?
No, there's no limit. (Polyphony limits are usually because of the sampler that turns MIDI into sound, it can only play and mix a limited number of samples at the same time.)
However, as with all scanning button matrices, you can only press multiple keys at once if every key has a diode installed.
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
- Trying to setVelocity for all notebutton values in mux with piezo device HOT 1
- External app/webpage to change CC and Channel values HOT 1
- Hi, I would like to see the USBMIDI_Interface adapted so that you can specify the fixed cablenumber. This would it make possible to use pipes and filters connecting serial ports with virtual usb ports
- Support for MCP23S17 SPI
- error: 'SelectorPC' does not name a type HOT 2
- 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 2
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.