| 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 |
|
| 19 |
int toIntVoiceCount(MidiOperations::VoiceCount value); |
| 20 |
int voiceLimit(); |
| 21 |
bool separateVoices(std::multimap<int, MTrack> &tracks, const TimeSigMap *sigmap); |
| 22 |
|
| 23 |
bool splitChordToVoice( |
| 24 |
std::multimap<ReducedFraction, MidiChord>::iterator &chordIt, |
| 25 |
const QSet<int> ¬esToMove, |
| 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 IMPORTMIDI_DEBUG |
| 35 |
|
| 36 |
bool areVoicesSame(const std::multimap<ReducedFraction, MidiChord> &chords); |
| 37 |
|
| 38 |
#endif |
| 39 |
|
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
#endif |