Coder Social home page Coder Social logo

Comments (3)

tttapa avatar tttapa commented on July 23, 2024 1

You can use transports for the MIDI library using Control Surface by using the included FortySevenEffectsMIDI_Interface adapter.

#include <BLEMIDI_Transport.h>
#include <hardware/BLEMIDI_ArduinoBLE.h>

#include <Control_Surface.h>
#include <MIDI_Interfaces/Wrappers/FortySevenEffects.hpp>

// Create an Arduino BLE MIDI instance
BLEMIDI_CREATE_DEFAULT_INSTANCE()
// Then wrap it in a Control Surface-compatible MIDI interface
FortySevenEffectsMIDI_Interface<decltype(MIDI) &> cs_midi = MIDI;

// Also route the incoming MIDI messages to the Serial Monitor for debugging
USBDebugMIDI_Interface debug_midi;
BidirectionalMIDI_Pipe mpipe;
 
void setup() {
  cs_midi.setAsDefault();
  Control_Surface.begin();
  debug_midi | mpipe | cs_midi;
}

void loop() {
  Control_Surface.loop();
  static AH::Timer<millis> timer{250};
  if (timer)
    Control_Surface.sendControlChange(7, (millis() / 250) % 128);
}

Unfortunately, you'll find that the library you linked to does not support the Arduino Nano 33 BLE either at this point: lathoub/Arduino-BLE-MIDI#55

None of the recent stable releases worked for me, but the Arduino-Nano-33-BLE branch does at least seem to compile.
However, the examples do not work, as I'm unable to connect to the device after uploading (Neither on Ubuntu 22.04 with BlueZ 5.64, nor on Android 14).

I have some other concerns about the way Arduino-BLE-MIDI is implemented, and the API exposed by the ArduinoBLE library is rather limited. I'll need to find some time to actually look at this topic in detail to see if these concerns are well-founded.

from control-surface.

tilllt avatar tilllt commented on July 23, 2024 1

Thanks for looking into it and happy new year :)

from control-surface.

tttapa avatar tttapa commented on July 23, 2024 1

MIDI over BLE is now supported on the Arduino Nano 33 BLE, Raspberry Pi Pico, and other boards: #993

from control-surface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.