-
- Downloads
Use processor ID number as flag for saving
Previously, every event would be saved multiple times if it passed through multiple processors. Now, GenericProcessor::getNumSamples() checks for existing TTL events and changes the processor ID (byte 2) to zero. If the RecordNode encounters an event without a positive processor ID, it will ignore it. The only potentially dangerous thing about this is that it involves modifying the MidiBuffer. But as long as the size of the buffer doesn't change (just the value of certain bytes), this should be fine.
Showing
- JuceLibraryCode/modules/juce_audio_basics/midi/juce_MidiMessage.cpp 1 addition, 1 deletion...yCode/modules/juce_audio_basics/midi/juce_MidiMessage.cpp
- Source/Processors/FileReader.cpp 16 additions, 0 deletionsSource/Processors/FileReader.cpp
- Source/Processors/GenericProcessor.cpp 57 additions, 75 deletionsSource/Processors/GenericProcessor.cpp
- Source/Processors/GenericProcessor.h 1 addition, 1 deletionSource/Processors/GenericProcessor.h
- Source/Processors/RecordNode.cpp 23 additions, 19 deletionsSource/Processors/RecordNode.cpp
- Source/Processors/RecordNode.h 1 addition, 0 deletionsSource/Processors/RecordNode.h
Loading
Please register or sign in to comment