MuseScore  3.4
Music composition and notation
Namespaces | Functions
importmidi_tuplet.cpp File Reference
#include "importmidi_tuplet.h"
#include "importmidi_tuplet_detect.h"
#include "importmidi_tuplet_filter.h"
#include "importmidi_tuplet_voice.h"
#include "importmidi_chord.h"
#include "importmidi_quant.h"
#include "importmidi_inner.h"
#include "importmidi_operations.h"
#include "libmscore/sig.h"
#include "mscore/preferences.h"
#include <set>
Include dependency graph for importmidi_tuplet.cpp:

Namespaces

 Ms
 
 
 Ms::MidiTuplet
 

Functions

const std::map< int, TupletLimits > & Ms::MidiTuplet::tupletsLimits ()
 
const TupletLimits & Ms::MidiTuplet::tupletLimits (int tupletNumber)
 
const TupletInfo & Ms::MidiTuplet::tupletFromId (int id, const std::vector< TupletInfo > &tuplets)
 
TupletInfo & Ms::MidiTuplet::tupletFromId (int id, std::vector< TupletInfo > &tuplets)
 
bool Ms::MidiTuplet::hasNonTrivialChord (const ReducedFraction &chordOnTime, const QList< MidiNote > &notes, const ReducedFraction &tupletOnTime, const ReducedFraction &tupletLen)
 
bool Ms::MidiTuplet::isTupletUseless (int voice, const ReducedFraction &onTime, const ReducedFraction &len, const ReducedFraction &maxChordLength, const std::multimap< ReducedFraction, MidiChord > &chords)
 
std::multimap< ReducedFraction, TupletData >::iterator Ms::MidiTuplet::removeTuplet (const std::multimap< ReducedFraction, TupletData >::iterator &tupletIt, std::multimap< ReducedFraction, TupletData > &tuplets, const ReducedFraction &maxChordLength, std::multimap< ReducedFraction, MidiChord > &chords)
 
std::multimap< ReducedFraction, TupletData >::iterator Ms::MidiTuplet::removeTupletIfEmpty (const std::multimap< ReducedFraction, TupletData >::iterator &tupletIt, std::multimap< ReducedFraction, TupletData > &tuplets, const ReducedFraction &maxChordLength, std::multimap< ReducedFraction, MidiChord > &chords)
 
void Ms::MidiTuplet::removeEmptyTuplets (MTrack &track)
 
int Ms::MidiTuplet::averagePitch (const std::map< ReducedFraction, std::multimap< ReducedFraction, MidiChord >::iterator > &chords)
 
void Ms::MidiTuplet::sortNotesByPitch (const std::multimap< ReducedFraction, MidiChord >::iterator &startBarChordIt, const std::multimap< ReducedFraction, MidiChord >::iterator &endBarChordIt)
 
void Ms::MidiTuplet::sortTupletsByAveragePitch (std::vector< TupletInfo > &tuplets)
 
std::pair< ReducedFraction, ReducedFraction > Ms::MidiTuplet::tupletInterval (const TupletInfo &tuplet, const ReducedFraction &basicQuant)
 
std::vector< std::pair< ReducedFraction, ReducedFraction > > Ms::MidiTuplet::findTupletIntervals (const std::vector< TupletInfo > &tuplets, const ReducedFraction &basicQuant)
 
std::vector< TupletData > Ms::MidiTuplet::findTupletsInBarForDuration (int voice, const ReducedFraction &barStartTick, const ReducedFraction &durationOnTime, const ReducedFraction &durationLen, const std::multimap< ReducedFraction, TupletData > &tupletEvents)
 
std::vector< std::multimap< ReducedFraction, TupletData >::const_iterator > Ms::MidiTuplet::findTupletsForTimeRange (int voice, const ReducedFraction &onTime, const ReducedFraction &len, const std::multimap< ReducedFraction, TupletData > &tupletEvents, bool strictComparison)
 
std::multimap< ReducedFraction, TupletData >::const_iterator Ms::MidiTuplet::findTupletContainingTime (int voice, const ReducedFraction &time, const std::multimap< ReducedFraction, TupletData > &tupletEvents, bool strictComparison)
 
std::set< std::pair< const ReducedFraction, MidiChord > * > Ms::MidiTuplet::findTupletChords (const std::vector< TupletInfo > &tuplets)
 
std::list< std::multimap< ReducedFraction, MidiChord >::iterator > Ms::MidiTuplet::findNonTupletChords (const std::vector< TupletInfo > &tuplets, const std::multimap< ReducedFraction, MidiChord >::iterator &startBarChordIt, const std::multimap< ReducedFraction, MidiChord >::iterator &endBarChordIt)
 
void Ms::MidiTuplet::splitTupletChord (const std::vector< TupletInfo >::iterator &lastMatch, std::multimap< ReducedFraction, MidiChord > &chords)
 
void Ms::MidiTuplet::splitFirstTupletChords (std::vector< TupletInfo > &tuplets, std::multimap< ReducedFraction, MidiChord > &chords)
 
void Ms::MidiTuplet::minimizeOffTimeError (std::vector< TupletInfo > &tuplets, std::multimap< ReducedFraction, MidiChord > &chords, std::list< std::multimap< ReducedFraction, MidiChord >::iterator > &nonTuplets, const ReducedFraction &startBarTick, const ReducedFraction &basicQuant)
 
void Ms::MidiTuplet::addChordsBetweenTupletNotes (std::vector< TupletInfo > &tuplets, std::list< std::multimap< ReducedFraction, MidiChord >::iterator > &nonTuplets, const std::multimap< ReducedFraction, MidiChord > &chords, const ReducedFraction &startBarTick, const ReducedFraction &basicQuant)
 
void Ms::MidiTuplet::addTupletEvents (std::multimap< ReducedFraction, TupletData > &tupletEvents, const std::vector< TupletInfo > &tuplets, const std::list< TiedTuplet > &backTiedTuplets)
 
void Ms::MidiTuplet::markStaccatoTupletNotes (std::vector< TupletInfo > &tuplets)
 
void Ms::MidiTuplet::cleanStaccatoOfNonTuplets (std::list< std::multimap< ReducedFraction, MidiChord >::iterator > &nonTuplets)
 
ReducedFraction Ms::MidiTuplet::findOnTimeBetweenChords (const std::pair< const ReducedFraction, MidiChord > &chord, const std::multimap< ReducedFraction, MidiChord > &chords, const ReducedFraction &basicQuant, const ReducedFraction &barStart)
 
ReducedFraction Ms::MidiTuplet::findPrevBarStart (const ReducedFraction &barStart, const ReducedFraction &barLen)
 
void Ms::MidiTuplet::setBarIndexesOfNextBarChords (std::vector< TupletInfo > &tuplets, std::list< std::multimap< ReducedFraction, MidiChord >::iterator > &nonTuplets, int barIndex)
 
void Ms::MidiTuplet::findTuplets (const std::multimap< ReducedFraction, MidiChord >::iterator &startBarChordIt, const std::multimap< ReducedFraction, MidiChord >::iterator &endBarChordIt, std::multimap< ReducedFraction, MidiChord > &chords, const ReducedFraction &basicQuant, std::multimap< ReducedFraction, TupletData > &tupletEvents, const TimeSigMap *sigmap, int barIndex)
 
void Ms::MidiTuplet::setAllTupletOffTimes (std::multimap< ReducedFraction, TupletData > &tupletEvents, std::multimap< ReducedFraction, MidiChord > &chords, const TimeSigMap *sigmap)
 
void Ms::MidiTuplet::findAllTuplets (std::multimap< ReducedFraction, TupletData > &tuplets, std::multimap< ReducedFraction, MidiChord > &chords, const TimeSigMap *sigmap, const ReducedFraction &basicQuant)