Comments (6)
The callback is in the Control_Surface_ class. There's no user-accessable callback at the moment, but I'll add one tonight.
from control-surface.
amazing, thank you
from control-surface.
Added it in e786d11
You can use it like this:
#include <Control_Surface.h> // Include the Control Surface library
USBDebugMIDI_Interface midi;
bool realTimeMessageCallback(uint8_t message) {
Serial << "Real-Time message: " << hex << message << dec << endl;
return true; // Return true to indicate that handling is done,
// and Control_Surface shouldn't handle it anymore.
// If you want Control_Surface to handle it as well,
// return false.
}
void setup() {
Serial.begin(115200);
Control_Surface.begin();
Control_Surface.setMIDIInputCallbacks(nullptr,
nullptr,
realTimeMessageCallback);
}
void loop() {
Control_Surface.loop();
}
Documentation here: https://tttapa.github.io/Control-Surface/Doc/Doxygen/dc/d45/classControl__Surface__.html#ac9f7e995df0b998287da442587f73e1b
from control-surface.
Works amazing, thank you very much
from control-surface.
I'm going to reopen it for now, because I'll have to add the MIDI Cable Number as a parameter.
from control-surface.
I added the Cable Number in f9455f8.
Control-Surface/examples/Other/MIDI_Callback/MIDI_Callback.ino
Lines 1 to 24 in f9455f8
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
- 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 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.