I am setting up eight buttons as a drum pad, but I' getting errors when I verify. I'm not sure if the buttons should be designated as CC, PC or Note buttons. Here is the code section:
using namespace MIDI_Notes;
using namespace MIDI_CC;
using namespace MIDI_PC;
PCButton pcBtn2[]{
{9,{Bass_Drum_1, Channel_10}},
{10,{Acoustic_Snare, Channel_10}},
{11,{Hand_Clap, Channel_10}},
{11,{Closed_Hi_Hat, Channel_10}},
{12,{Open_Hi_Hat, Channel_10}},
{13,{Low_Floor_Tom, Channel_10}},
{14,{Low_Mid_Tom, Channel_10}},
{15,{Hi_Mid_Tom, Channel_10}}
};
I am getting this message "not declared in this scope"
#include <Control_Surface.h> // Include the Control Surface library
// Instantiate a MIDI over USB interface
USBMIDI_Interface midi;
// Instantiate a PCButton that reads the input from a push button and sends out
// a MIDI Program Change message when it's pressed.
PCButton pcBtn {
2, // pin
{MIDI_PC::Steel_Drums, Channel_1}, // address
};
void setup() {
Control_Surface.begin(); // Initialize Control Surface
}
void loop() {
Control_Surface.loop(); // Update the Control Surface
}
I know that MIDI_PC works, I have a section in my code with guitars and bass among other instruments. The problem is that the library doesn't seem to include the components of a standard drum kit, bass drum, snare, hi hat, etc. The other question I had was whether I should be using MIDI_PC to get access to the drum set.
Where did you find these names? None of these exist as part of the Control Surface library, and none of them are GM program names (they would be note numbers).
If you know which notes you want to trigger, simply use the note name or note number. For example, according to the GM spec, "bass drum 1" is note 36, so you would use
Quite clearly not. I obtained this information from a list "GM Percussion Key Map" which gives 36, C1, Bass Drum 1. I guess it was an easy assumption to make the same step as for the instruments.
As an aside: is this the best way to set up PC button to work with a DAW, or should they have a more general nomination? Are the PC buttons still programmable, by the DAW, the way I have defined them?