Navigation
API > API/Plugins > API/Plugins/HarmonixMidi > API/Plugins/HarmonixMidi/UMidiFile
Description
This does a quick and dirty to check to see if the length of the midi is on a musical subdivision. It is used primarily during asset importing, and if it returns true the importer will do further checking to see how far off it is, and suggest either conforming the length via QuantizeLengthToNearestPerfectSubdivision (for "off-by-one" type small errors) or QuantizeLengthToSubdivision (when the error is large and the user should choose a specific subdivision and direction for conforming the file.
| Name | LengthIsAPerfectSubdivision |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMidi/Public/HarmonixMidi/MidiFile.h |
| Include Path | #include "HarmonixMidi/MidiFile.h" |
| Source | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMidi/Private/HarmonixMidi/MidiFile.cpp |
bool LengthIsAPerfectSubdivision() const