Comments (7)
There is some MIDI BLE code for ESP32. I think it works, but it's quite experimental, and I haven't had time yet to clean it up, write documentation, or add examples.
https://tttapa.github.io/Control-Surface/Doc/Doxygen/d0/d89/classBluetoothMIDI__Interface.html
from control-surface.
If you think the rest of the code will work on an ESP32 I'll try it out and let you know how I get on. I really need to stop buying faulty midi keyboards on ebay, but if I can give them a new life it will be worth it!
from control-surface.
Getting-started.ino compiles for me for an Arduino Uno, but for any ESP32 boards I get this:
WARNING: library Control-Surface claims to run on (avr, sam, samd, teensy, esp) architecture(s) and may be incompatible with your current board which runs on (esp32) architecture(s).
In file included from C:\Users\username\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/esp32-hal.h:53:0,
from C:\Users\username\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Arduino.h:35,
from sketch\Getting-Started.ino.cpp:1:
C:\Users\username\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/esp32-hal-gpio.h:51:19: error: expected unqualified-id before numeric constant
#define DISABLED 0x00
^
C:\Users\username\Documents\git\Arduino\libraries\Control-Surface\src/Hardware/ExtendedInputOutput/AnalogMultiplex.hpp:132:30: note: in expansion of macro 'DISABLED'
constexpr static uint8_t DISABLED = HIGH;
^
exit status 1
Error compiling for board ESP32 Dev Module.
I tried a couple of the other examples and got variations of that error. Is it just me?
from control-surface.
Apparently, the new version of the ESP32 defines a public macro that conflicts with some internal variables of the Control Surface library. I already fixed it in 5570975, so you can just pull the latest version from GitHub.
I also fixed some other BLE things, and I just tested it on Ubuntu 16.04 (Bluez 5.50) and Android 9.0.5.
from control-surface.
Wow, that's fast work! I can compile the examples that I tried, thanks!
from control-surface.
There are now three basic BLE MIDI examples. Here's the one that demonstrates both input and output:
https://tttapa.github.io/Control-Surface/Doc/Doxygen/d4/d4d/Bluetooth-BLE-MIDI-NoteButton_Input_8ino-example.html
from control-surface.
Sadly, I haven't been able to get my Windows 10 laptop to recognise the BLE connection as a MIDI device. I'll close this issue as it seems to be a problem my end rather than with your code, as I've had the same problem with other people's code. USB will have to do for me! Thanks.
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.