MuseScore  3.4
Music composition and notation
Classes | Namespaces | Functions
importmidi_lrhand.cpp File Reference
#include "importmidi_lrhand.h"
#include "importmidi_inner.h"
#include "importmidi_fraction.h"
#include "importmidi_chord.h"
#include "importmidi_operations.h"
#include "mscore/preferences.h"
Include dependency graph for importmidi_lrhand.cpp:

Classes

struct  Ms::LRHand::SplitTry
 
struct  Ms::LRHand::ChordSplitData
 

Namespaces

 Ms
 
 
 Ms::LRHand
 

Functions

bool Ms::LRHand::needToSplit (const std::multimap< ReducedFraction, MidiChord > &chords, int midiProgram, bool isDrumTrack)
 
int Ms::LRHand::findLastSplitPoint (const std::vector< ChordSplitData > &splits)
 
void Ms::LRHand::splitChords (const std::vector< ChordSplitData > &splits, std::multimap< ReducedFraction, MidiChord > &leftHandChords, std::multimap< ReducedFraction, MidiChord > &chords)
 
int Ms::LRHand::findPitchWidthPenalty (const QList< MidiNote > &notes, int splitPoint)
 
bool Ms::LRHand::isOctave (const QList< MidiNote > &notes, int beg, int end)
 
int Ms::LRHand::findSimilarityPenalty (const QList< MidiNote > &notes, const QList< MidiNote > &prevNotes, int splitPoint, int prevSplitPoint)
 
bool Ms::LRHand::areOffTimesEqual (const QList< MidiNote > &notes, int beg, int end)
 
int Ms::LRHand::findDurationPenalty (const QList< MidiNote > &notes, int splitPoint)
 
int Ms::LRHand::findNoteCountPenalty (const QList< MidiNote > &notes, int splitPoint)
 
int Ms::LRHand::findIntersectionPenalty (const ReducedFraction &currentOnTime, int prevPos, int prevSplitPoint, const ReducedFraction &maxChordLen, const std::vector< ChordSplitData > &splits, bool hasLowNotes, bool hasHighNotes)
 
std::vector< ChordSplitData > Ms::LRHand::findSplits (std::multimap< ReducedFraction, MidiChord > &chords)
 
void Ms::LRHand::insertNewLeftHandTrack (std::multimap< int, MTrack > &tracks, std::multimap< int, MTrack >::iterator &it, const std::multimap< ReducedFraction, MidiChord > &leftHandChords)
 
void Ms::LRHand::splitStaff (std::multimap< int, MTrack > &tracks, std::multimap< int, MTrack >::iterator &it)
 
void Ms::LRHand::addNewLeftHandChord (std::multimap< ReducedFraction, MidiChord > &leftHandChords, const QList< MidiNote > &leftHandNotes, const std::multimap< ReducedFraction, MidiChord >::iterator &it)
 
void Ms::LRHand::splitIntoLeftRightHands (std::multimap< int, MTrack > &tracks)