This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Control_Surface.h> | |
USBMIDI_Interface midi; | |
void setup() { Control_Surface.begin(); } | |
CCPotentiometer potentiometer1 = { A0, {MIDI_CC::General_Purpose_Controller_1} }; | |
CCPotentiometer potentiometer2 = { A1, {MIDI_CC::General_Purpose_Controller_2} }; | |
CCPotentiometer potentiometer3 = { A2, {MIDI_CC::General_Purpose_Controller_3} }; | |
CCPotentiometer potentiometer4 = { A3, {MIDI_CC::General_Purpose_Controller_4} }; | |
void loop() { Control_Surface.loop(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///This loops between two audio files that are two seconds long. | |
///The audio files are longer than two seconds to include the fade between files | |
/// | |
///Using CADisplayLink | |
import AudioKit | |
import AVFoundation | |
import SwiftUI | |
class InstrumentEXSConductor: ObservableObject, HasAudioEngine { | |
let engine = AudioEngine() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Control_Surface.h> | |
USBMIDI_Interface midi; | |
using namespace MIDI_Notes; | |
// Transposer that can transpose from one octave down to one octave up | |
Transposer<-12, +12> transposer; | |
// Selector to change the transposition | |
IncrementDecrementSelector<transposer.getNumberOfBanks()> selector { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Control_Surface.h> | |
// | |
USBMIDI_Interface midi; | |
using namespace MIDI_Notes; | |
// Button Rows | |
NoteButton button1 = { 2, {note(Eb, 3), CHANNEL_1}}; | |
NoteButton button2 = { 3, {note( D, 3), CHANNEL_1}}; | |
NoteButton button3 = { 4, {note(Db, 3), CHANNEL_1}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include <BLE2902.h> | |
#define SERVICE_UUID "03b80e5a-ede8-4b33-a751-6ce34ec4c700" | |
#define CHARACTERISTIC_UUID "7772e5db-3868-4112-a1a9-f2669d106bf3" | |
BLECharacteristic *pCharacteristic; | |
bool deviceConnected = false; |