MuseScore  3.4
Music composition and notation
importmidi_voice.h
Go to the documentation of this file.
1 #ifndef IMPORTMIDI_VOICE_H
2 #define IMPORTMIDI_VOICE_H
3 
4 #include "importmidi_operation.h"
5 
6 
7 namespace Ms {
8 
9 class MTrack;
10 class TimeSigMap;
11 class MidiChord;
12 
13 namespace MidiTuplet {
14 struct TupletData;
15 }
16 
17 namespace MidiVoice {
18 
20 int voiceLimit();
21 bool separateVoices(std::multimap<int, MTrack> &tracks, const TimeSigMap *sigmap);
22 
24  std::multimap<ReducedFraction, MidiChord>::iterator &chordIt,
25  const QSet<int> &notesToMove,
26  int newVoice,
27  std::multimap<ReducedFraction, MidiChord> &chords,
28  std::multimap<ReducedFraction, MidiTuplet::TupletData> &tuplets,
29  std::multimap<ReducedFraction,
30  std::multimap<ReducedFraction, MidiTuplet::TupletData>::iterator> &insertedTuplets,
31  const ReducedFraction &maxChordLength,
32  bool allowParallelTuplets = false);
33 
34 #ifdef QT_DEBUG
35 
36 bool areVoicesSame(const std::multimap<ReducedFraction, MidiChord> &chords);
37 
38 #endif
39 
40 } // namespace MidiVoice
41 } // namespace Ms
42 
43 
44 #endif // IMPORTMIDI_VOICE_H
int voiceLimit()
Definition: importmidi_voice.cpp:34
int toIntVoiceCount(MidiOperations::VoiceCount value)
Definition: importmidi_voice.cpp:19
Definition: aeolus.cpp:26
bool splitChordToVoice(std::multimap< ReducedFraction, MidiChord >::iterator &chordIt, const QSet< int > &notesToMove, int newVoice, std::multimap< ReducedFraction, MidiChord > &chords, std::multimap< ReducedFraction, MidiTuplet::TupletData > &tuplets, std::multimap< ReducedFraction, std::multimap< ReducedFraction, MidiTuplet::TupletData >::iterator > &insertedTuplets, const ReducedFraction &maxChordLength, bool allowParallelTuplets)
Definition: importmidi_voice.cpp:733
bool separateVoices(std::multimap< int, MTrack > &tracks, const TimeSigMap *sigmap)
Definition: importmidi_voice.cpp:998
VoiceCount
Definition: importmidi_operation.h:25