MuseScore  3.4
Music composition and notation
Namespaces | Functions
importmidi.cpp File Reference
#include "midi/midifile.h"
#include "mscore/preferences.h"
#include "libmscore/score.h"
#include "libmscore/key.h"
#include "libmscore/clef.h"
#include "libmscore/sig.h"
#include "libmscore/tempo.h"
#include "libmscore/note.h"
#include "libmscore/chord.h"
#include "libmscore/rest.h"
#include "libmscore/segment.h"
#include "libmscore/utils.h"
#include "libmscore/text.h"
#include "libmscore/slur.h"
#include "libmscore/tie.h"
#include "libmscore/staff.h"
#include "libmscore/measure.h"
#include "libmscore/style.h"
#include "libmscore/part.h"
#include "libmscore/timesig.h"
#include "libmscore/barline.h"
#include "libmscore/pedal.h"
#include "libmscore/ottava.h"
#include "libmscore/lyrics.h"
#include "libmscore/bracket.h"
#include "libmscore/drumset.h"
#include "libmscore/box.h"
#include "libmscore/sym.h"
#include "libmscore/pitchspelling.h"
#include "importmidi_meter.h"
#include "importmidi_chord.h"
#include "importmidi_quant.h"
#include "importmidi_tuplet.h"
#include "importmidi_tuplet_tonotes.h"
#include "libmscore/tuplet.h"
#include "libmscore/articulation.h"
#include "importmidi_swing.h"
#include "importmidi_fraction.h"
#include "importmidi_drum.h"
#include "importmidi_inner.h"
#include "importmidi_clef.h"
#include "importmidi_lrhand.h"
#include "importmidi_lyrics.h"
#include "importmidi_tie.h"
#include "importmidi_beat.h"
#include "importmidi_tempo.h"
#include "importmidi_simplify.h"
#include "importmidi_voice.h"
#include "importmidi_operations.h"
#include "importmidi_key.h"
#include "importmidi_instrument.h"
#include "importmidi_chordname.h"
#include <set>

Namespaces

 Ms
 
 

Functions

void Ms::updateNoteLines (Segment *segment, int track)
 
void Ms::lengthenTooShortNotes (std::multimap< int, MTrack > &tracks)
 
std::vector< std::multimap< ReducedFraction, MidiChord > > Ms::separateDrumChordsTo2Voices (const std::multimap< ReducedFraction, MidiChord > &chords)
 
void Ms::setChordVoice (MidiChord &chord, int voice)
 
void Ms::findAllTupletsForDrums (MTrack &mtrack, TimeSigMap *sigmap, const ReducedFraction &basicQuant)
 
void Ms::quantizeAllTracks (std::multimap< int, MTrack > &tracks, TimeSigMap *sigmap, const ReducedFraction &lastTick)
 
ReducedFraction Ms::splitDurationOnBarBoundary (const ReducedFraction &len, const ReducedFraction &onTime, const Measure *measure)
 
void Ms::setMusicNotesFromMidi (Score *score, const QList< MidiNote > &midiNotes, Chord *chord, const Drumset *drumset, bool useDrumset)
 
void Ms::setTies (Chord *chord, Score *score, QList< MidiNote > &midiNotes)
 
Fraction Ms::metaTimeSignature (const MidiEvent &e)
 
QList< MTrack > Ms::prepareTrackList (const std::multimap< int, MTrack > &tracks)
 
std::multimap< int, MTrack > Ms::createMTrackList (TimeSigMap *sigmap, const MidiFile *mf)
 
Measure * Ms::barFromIndex (const Score *score, int barIndex)
 
bool Ms::isPickupWithLessTimeSig (const Fraction &firstBarTimeSig, const Fraction &secondBarTimeSig)
 
bool Ms::isPickupWithGreaterTimeSig (const Fraction &firstBarTimeSig, const Fraction &secondBarTimeSig, const ReducedFraction &firstTick)
 
bool Ms::areNextBarsEqual (const Score *score, int barCount)
 
void Ms::tryCreatePickupMeasure (const ReducedFraction &firstTick, Score *score, int *begBarIndex, int *barCount)
 
void Ms::createMeasures (const ReducedFraction &firstTick, ReducedFraction &lastTick, Score *score)
 
void Ms::setTrackInfo (MidiType midiType, MTrack &mt)
 
void Ms::createTimeSignatures (Score *score)
 
void Ms::processMeta (MTrack &mt, bool isLyric)
 
KeyList Ms::findAllKeyList (const QList< MTrack > &tracks)
 
void Ms::createNotes (const ReducedFraction &lastTick, QList< MTrack > &tracks)
 
void Ms::processNonLyricMeta (QList< MTrack > &tracks)
 
void Ms::setTrackInfo (QList< MTrack > &tracks, MidiType midiType)
 
void Ms::processLyricMeta (QList< MTrack > &tracks)
 
void Ms::createKeys (QList< MTrack > &tracks)
 
void Ms::applySwing (QList< MTrack > &tracks)
 
void Ms::createClefs (QList< MTrack > &tracks)
 
void Ms::setLeftRightHandSplit (const std::multimap< int, MTrack > &tracks)
 
ReducedFraction Ms::findFirstChordTick (const QList< MTrack > &tracks)
 
ReducedFraction Ms::findLastChordTick (const std::multimap< int, MTrack > &tracks)
 
QList< MTrack > Ms::convertMidi (Score *score, const MidiFile *mf)
 
void Ms::loadMidiData (MidiFile &mf)
 
Score::FileError Ms::importMidi (MasterScore *score, const QString &name)