MuseScore  3.4
Music composition and notation
importmidi_instrument.h
Go to the documentation of this file.
1 #ifndef IMPORTMIDI_INSTRUMENT_H
2 #define IMPORTMIDI_INSTRUMENT_H
3 
4 #include "midi/midifile.h"
5 
6 
7 class QString;
8 
9 namespace Ms {
10 
11 class Score;
12 class MTrack;
13 
14 namespace MidiInstr {
15 
16 QString instrumentName(MidiType type, int program, bool isDrumTrack);
17 QString msInstrName(int trackIndex);
18 QString concatenateWithComma(const QString &left, const QString &right);
19 bool isGrandStaff(const MTrack &t1, const MTrack &t2);
20 void setGrandStaffProgram(QList<MTrack> &tracks);
21 void findInstrumentsForAllTracks(const QList<MTrack> &tracks, bool forceReload = false);
22 void createInstruments(Score *score, QList<MTrack> &tracks);
23 
24 extern void instrumentTemplatesChanged();
25 
26 } // namespace MidiInstr
27 } // namespace Ms
28 
29 
30 #endif // IMPORTMIDI_INSTRUMENT_H
void createInstruments(Score *score, QList< MTrack > &tracks)
Definition: importmidi_instrument.cpp:385
MidiType
Definition: midifile.h:27
void findInstrumentsForAllTracks(const QList< MTrack > &tracks, bool forceReload)
Definition: importmidi_instrument.cpp:353
QString concatenateWithComma(const QString &left, const QString &right)
Definition: importmidi_instrument.cpp:72
Definition: aeolus.cpp:26
void instrumentTemplatesChanged()
Definition: importmidi_instrument.cpp:374
bool isGrandStaff(const MTrack &t1, const MTrack &t2)
Definition: importmidi_instrument.cpp:37
QString msInstrName(int trackIndex)
Definition: importmidi_instrument.cpp:464
QString instrumentName(MidiType type, int program, bool isDrumTrack)
Definition: importmidi_instrument.cpp:21
void setGrandStaffProgram(QList< MTrack > &tracks)
Definition: importmidi_instrument.cpp:84