MuseScore  3.4
Music composition and notation
Namespaces | Functions
importmidi_instrument.cpp File Reference
#include "importmidi_instrument.h"
#include "importmidi_chord.h"
#include "importmidi_inner.h"
#include "libmscore/instrtemplate.h"
#include "libmscore/drumset.h"
#include "libmscore/part.h"
#include "libmscore/staff.h"
#include "libmscore/score.h"
#include "importmidi_operations.h"
#include "midi/midiinstrument.h"
#include <set>
Include dependency graph for importmidi_instrument.cpp:

Namespaces

 Ms
 
 
 Ms::MidiInstr
 

Functions

QString Ms::MidiInstr::instrumentName (MidiType type, int program, bool isDrumTrack)
 
bool Ms::MidiInstr::isGrandStaff (const MTrack &t1, const MTrack &t2)
 
bool Ms::MidiInstr::isSameChannel (const MTrack &t1, const MTrack &t2)
 
bool Ms::MidiInstr::is3StaffOrgan (int program)
 
bool Ms::MidiInstr::areNext2GrandStaff (int currentTrack, const QList< MTrack > &tracks)
 
bool Ms::MidiInstr::areNext3OrganStaff (int currentTrack, const QList< MTrack > &tracks)
 
QString Ms::MidiInstr::concatenateWithComma (const QString &left, const QString &right)
 
void Ms::MidiInstr::setGrandStaffProgram (QList< MTrack > &tracks)
 
std::set< int > Ms::MidiInstr::findAllPitches (const MTrack &track)
 
void Ms::MidiInstr::findNotEmptyDrumPitches (std::set< int > &drumPitches, const InstrumentTemplate *templ)
 
bool Ms::MidiInstr::hasNotDefinedDrumPitch (const std::set< int > &trackPitches, const std::set< int > &drumPitches)
 
const InstrumentTemplate * Ms::MidiInstr::findInstrument (const QString &groupId, const QString &instrId)
 
const InstrumentTemplate * Ms::MidiInstr::findClosestInstrument (const MTrack &track)
 
std::vector< const InstrumentTemplate * > Ms::MidiInstr::findInstrumentsForProgram (const MTrack &track)
 
std::pair< int, int > Ms::MidiInstr::findMinMaxPitch (const MTrack &track)
 
int Ms::MidiInstr::findMaxPitchDiff (const std::pair< int, int > &minMaxPitch, const InstrumentTemplate *templ)
 
bool Ms::MidiInstr::hasCommonGenre (QList< InstrumentGenre *> genres)
 
void Ms::MidiInstr::sortInstrumentTemplates (std::vector< const InstrumentTemplate *> &templates, const std::pair< int, int > &minMaxPitch)
 
std::vector< const InstrumentTemplate * > Ms::MidiInstr::findSuitableInstruments (const MTrack &track)
 
void Ms::MidiInstr::findInstrumentsForAllTracks (const QList< MTrack > &tracks, bool forceReload)
 
void Ms::MidiInstr::instrumentTemplatesChanged ()
 
void Ms::MidiInstr::createInstruments (Score *score, QList< MTrack > &tracks)
 
QString Ms::MidiInstr::msInstrName (int trackIndex)