Showing the changes to TestPlugin/Source/PluginProcessor.cpp (1 of 7 files). Show all
Unified · Split
| @@ -66,10 +66,9 @@ void OopsAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& mi · 65 unmodified lines | ||
| 66 | 66 | LEAFTest_block(); |
| 67 | 67 | |
| 68 | 68 | MidiMessage m; |
| 69 | − int time; | |
| 70 | − | |
| 71 | − for (MidiBuffer::Iterator i (midiMessages); i.getNextEvent (m, time);) | |
| 69 | + for (MidiMessageMetadata metadata : midiMessages) | |
| 72 | 70 | { |
| 71 | + m = metadata.getMessage(); | |
| 73 | 72 | int noteNumber = m.getNoteNumber(); |
| 74 | 73 | float velocity = m.getFloatVelocity(); |
| 75 | 74 | |