Browse Source

cleanup

tags/v0.5.0
ben 7 years ago
parent
commit
b8bf0f438f
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/core/MidiClockToCV.cpp
  2. +3
    -3
      src/core/MidiIO.cpp

+ 3
- 3
src/core/MidiClockToCV.cpp View File

@@ -41,13 +41,13 @@ struct MIDIClockToCVInterface : MidiIO, Module {
*
* Implying that every 16 midi clock ticks we need to send a pulse
* */
int ratios[] = {6, 8, 12, 16, 24, 32, 48, 96, 192};
int numratios = sizeof(ratios) / sizeof(*ratios);
const int ratios[9] = {6, 8, 12, 16, 24, 32, 48, 96, 192};
const int numratios = 9;

/*
* Length of clock pulse
*/
float pulseTime = 0.05;
const float pulseTime = 0.05;


MIDIClockToCVInterface() : MidiIO(), Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {


+ 3
- 3
src/core/MidiIO.cpp View File

@@ -50,12 +50,12 @@ void MidiIO::baseFromJson(json_t *rootJ) {

std::vector<std::string> MidiIO::getDevices() {
/* Note: we could also use an existing interface if one exists */
RtMidiIn *m = new RtMidiIn();
RtMidiIn m;

std::vector<std::string> names = {};

for (unsigned int i = 0; i < m->getPortCount(); i++) {
names.push_back(m->getPortName(i));
for (unsigned int i = 0; i < m.getPortCount(); i++) {
names.push_back(m.getPortName(i));
}

return names;


Loading…
Cancel
Save