Mercurial > hg > beaglert
comparison core/Midi.cpp @ 184:9108a0a34cb8
Better(non ideal) monophonic behaviour of the basic midi implementation. Would require to remember what notes are being held down and release either the most recent or low/high priority.
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 17 Jan 2016 21:56:13 +0000 |
parents | 391ad036557d |
children | b3a306da03e0 |
comparison
equal
deleted
inserted
replaced
183:2bdb48d1fca6 | 184:9108a0a34cb8 |
---|---|
35 Midi::~Midi(){} | 35 Midi::~Midi(){} |
36 | 36 |
37 void Midi::midiInputLoop(){ | 37 void Midi::midiInputLoop(){ |
38 printf("Midi input loop %d\n", objAddrs.size()); | 38 printf("Midi input loop %d\n", objAddrs.size()); |
39 for(unsigned int n = 0; n < objAddrs.size(); n++){ | 39 for(unsigned int n = 0; n < objAddrs.size(); n++){ |
40 printf("In the for\n"); | |
41 objAddrs[n] -> readInputLoop(); | 40 objAddrs[n] -> readInputLoop(); |
42 } | 41 } |
43 } | 42 } |
44 | 43 |
45 void Midi::readInputLoop(){ | 44 void Midi::readInputLoop(){ |