1 #ifndef IMPORTMIDI_QUANT_H 2 #define IMPORTMIDI_QUANT_H 12 class ReducedFraction;
21 const std::multimap<ReducedFraction, MidiChord>::const_iterator &beg,
22 const std::multimap<ReducedFraction, MidiChord>::const_iterator &end,
23 const ReducedFraction &basicQuant);
26 const std::pair<const ReducedFraction, MidiChord> &chord,
27 const ReducedFraction &tupletLen,
28 const ReducedFraction &tupletRatio,
29 const ReducedFraction &rangeStart);
32 const std::pair<const ReducedFraction, MidiChord> &chord,
33 const ReducedFraction &basicQuant);
36 std::pair<ReducedFraction, ReducedFraction>
38 const ReducedFraction &onTime,
39 const ReducedFraction &offTime,
40 const ReducedFraction &tupletLen,
41 const ReducedFraction &tupletRatio,
42 const ReducedFraction &rangeStart);
45 std::pair<ReducedFraction, ReducedFraction>
47 const std::pair<const ReducedFraction, MidiChord> &chord,
48 const ReducedFraction &offTime,
49 const ReducedFraction &basicQuant);
52 const std::pair<const ReducedFraction, MidiChord> &chord,
53 const ReducedFraction &basicQuant);
56 const std::pair<const ReducedFraction, MidiChord> &chord,
57 const ReducedFraction &tupletLen,
58 const ReducedFraction &tupletRatio,
59 const ReducedFraction &rangeStart);
62 const std::pair<const ReducedFraction, MidiChord> &chord,
63 const ReducedFraction &basicQuant);
66 const std::pair<const ReducedFraction, MidiChord> &chord,
67 const ReducedFraction &tupletLen,
68 const ReducedFraction &tupletRatio,
69 const ReducedFraction &rangeStart);
72 const std::pair<const ReducedFraction, MidiChord> &chord,
73 const ReducedFraction &basicQuant);
76 const ReducedFraction &onTime,
77 const ReducedFraction &offTime,
78 const ReducedFraction &tupletLen,
79 const ReducedFraction &tupletRatio,
80 const ReducedFraction &rangeStart);
83 const std::pair<const ReducedFraction, MidiChord> &chord,
84 const ReducedFraction &offTime,
85 const ReducedFraction &basicQuant);
88 const std::multimap<int, MTrack> &tracks,
92 const ReducedFraction &value,
93 const ReducedFraction &quant);
96 const ReducedFraction ¬eLen,
97 const ReducedFraction &basicQuant);
100 const ReducedFraction &time,
101 const ReducedFraction &quant);
104 std::multimap<ReducedFraction, MidiChord> &chords,
105 const TimeSigMap *sigmap,
106 const ReducedFraction &basicQuant);
112 #endif // IMPORTMIDI_QUANT_H ReducedFraction findQuantForRange(const std::multimap< ReducedFraction, MidiChord >::const_iterator &beg, const std::multimap< ReducedFraction, MidiChord >::const_iterator &end, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:327
ReducedFraction quantizeValue(const ReducedFraction &value, const ReducedFraction &quant)
Definition: importmidi_quant.cpp:119
std::pair< ReducedFraction, ReducedFraction > findQuantizedNoteOffTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &offTime, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:220
ReducedFraction findOnTimeTupletQuantError(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &tupletLen, const ReducedFraction &tupletRatio, const ReducedFraction &rangeStart)
Definition: importmidi_quant.cpp:287
QuantValue
Definition: importmidi_operation.h:16
ReducedFraction findMaxQuantizedOffTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:274
ReducedFraction findMaxQuantizedTupletOffTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &tupletLen, const ReducedFraction &tupletRatio, const ReducedFraction &rangeStart)
Definition: importmidi_quant.cpp:256
MidiOperations::QuantValue fractionToQuantValue(const ReducedFraction &fraction)
Definition: importmidi_quant.cpp:55
ReducedFraction findQuantizedTupletChordOnTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &tupletLen, const ReducedFraction &tupletRatio, const ReducedFraction &rangeStart)
Definition: importmidi_quant.cpp:171
ReducedFraction findOffTimeTupletQuantError(const ReducedFraction &onTime, const ReducedFraction &offTime, const ReducedFraction &tupletLen, const ReducedFraction &tupletRatio, const ReducedFraction &rangeStart)
Definition: importmidi_quant.cpp:306
void setIfHumanPerformance(const std::multimap< int, MTrack > &tracks, TimeSigMap *sigmap)
Definition: importmidi_quant.cpp:392
void quantizeChords(std::multimap< ReducedFraction, MidiChord > &chords, const TimeSigMap *sigmap, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:1399
Definition: aeolus.cpp:26
ReducedFraction findQuantizedChordOnTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:183
ReducedFraction quantForLen(const ReducedFraction ¬eLen, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:131
ReducedFraction findMinQuantizedOnTime(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:242
ReducedFraction findOffTimeQuantError(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &offTime, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:318
MidiOperations::QuantValue defaultQuantValueFromPreferences()
Definition: importmidi_quant.cpp:81
ReducedFraction quantizeToLarge(const ReducedFraction &time, const ReducedFraction &quant)
Definition: importmidi_quant.cpp:748
ReducedFraction findOnTimeQuantError(const std::pair< const ReducedFraction, MidiChord > &chord, const ReducedFraction &basicQuant)
Definition: importmidi_quant.cpp:298
std::pair< ReducedFraction, ReducedFraction > findQuantizedTupletNoteOffTime(const ReducedFraction &onTime, const ReducedFraction &offTime, const ReducedFraction &tupletLen, const ReducedFraction &tupletRatio, const ReducedFraction &rangeStart)
Definition: importmidi_quant.cpp:192
ReducedFraction quantValueToFraction(MidiOperations::QuantValue quantValue)
Definition: importmidi_quant.cpp:23