nateflanigan
Member
Hi, I'm looking to build what should be a pretty simple midi controller for MAX MSP. The controller would consist of several joysticks that would transmit CC messages. I plan on using these... https://www.adafruit.com/product/3102
I'd also like to have a keypad matrix switch that I can use to type in commands. For instance if I typed in '127' it would then send a message (what kind I don't know, I'm currently thinking program change) that would trigger some sort of event in Max like 'start playing this file' or 'load this preset' etc etc
And lastly I'd like some sort of LCD display that told me what I was doing. IE if I moved a joystick it would display what two CC values I was transmitting.
I've downloaded and installed the MIDIcontroller-master library. To get started I opened up the MIDIpot example file in arduino IDE, but I am unable to verify and compile the sketch.
This is the error message.
Arduino: 1.8.9 (Mac OS X), TD: 1.46, Board: "Teensy 2.0, MIDI, 16 MHz, US English"
/Users/nate/Documents/Arduino/libraries/MIDIcontroller-master/MIDIcapSens.cpp: In member function 'int MIDIcapSens::read()':
/Users/nate/Documents/Arduino/libraries/MIDIcontroller-master/MIDIcapSens.cpp:47:31: error: 'touchRead' was not declared in this scope
int newValue = touchRead(pin);
^
Error compiling for board Teensy 2.0.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I am very new to arduino/teensy and have no idea what this means. Any help with this specific problem or general advice on my project would be greatly appreciated.
Thanks!
The code is simply the MIDIpot exmaple, but here it is anyways,
#include "MIDIcontroller.h"
byte MIDIchannel = 5;
const int potPin = A0; // Change this to the ANALOG pin you want to use
// Pot parameters are: pin, CC number, KILL switch enabled
// When KILL is enabled, separate CC messages (with a different number) will be sent
// when you turn the pot all the way down and when you start turning it up again.
// Simply omit the "KILL" argument if you don't want that.
MIDIpot myPot(potPin, 22, KILL);
// OPTIONAL: use outputRange() to limit the min/max MIDI output values
// mysensor.outputRange(12, 90);
void setup(){
}
void loop(){
myPot.send();
}
I'd also like to have a keypad matrix switch that I can use to type in commands. For instance if I typed in '127' it would then send a message (what kind I don't know, I'm currently thinking program change) that would trigger some sort of event in Max like 'start playing this file' or 'load this preset' etc etc
And lastly I'd like some sort of LCD display that told me what I was doing. IE if I moved a joystick it would display what two CC values I was transmitting.
I've downloaded and installed the MIDIcontroller-master library. To get started I opened up the MIDIpot example file in arduino IDE, but I am unable to verify and compile the sketch.
This is the error message.
Arduino: 1.8.9 (Mac OS X), TD: 1.46, Board: "Teensy 2.0, MIDI, 16 MHz, US English"
/Users/nate/Documents/Arduino/libraries/MIDIcontroller-master/MIDIcapSens.cpp: In member function 'int MIDIcapSens::read()':
/Users/nate/Documents/Arduino/libraries/MIDIcontroller-master/MIDIcapSens.cpp:47:31: error: 'touchRead' was not declared in this scope
int newValue = touchRead(pin);
^
Error compiling for board Teensy 2.0.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I am very new to arduino/teensy and have no idea what this means. Any help with this specific problem or general advice on my project would be greatly appreciated.
Thanks!
The code is simply the MIDIpot exmaple, but here it is anyways,
#include "MIDIcontroller.h"
byte MIDIchannel = 5;
const int potPin = A0; // Change this to the ANALOG pin you want to use
// Pot parameters are: pin, CC number, KILL switch enabled
// When KILL is enabled, separate CC messages (with a different number) will be sent
// when you turn the pot all the way down and when you start turning it up again.
// Simply omit the "KILL" argument if you don't want that.
MIDIpot myPot(potPin, 22, KILL);
// OPTIONAL: use outputRange() to limit the min/max MIDI output values
// mysensor.outputRange(12, 90);
void setup(){
}
void loop(){
myPot.send();
}