Skip to content

Commit

Permalink
fix #22012: Use words instead of fractions for quantization note values
Browse files Browse the repository at this point in the history
  • Loading branch information
trig-ger committed Jul 26, 2013
1 parent 3b2eb7a commit 5bc5abc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mscore/importmidi_opmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ OperationsModel::OperationsModel()
quantValue->oper.type = MidiOperation::Type::QUANT_VALUE;
quantValue->oper.value = (int)TrackOperations().quantize.value;
quantValue->values.push_back("Value from preferences");
quantValue->values.push_back("1/4");
quantValue->values.push_back("1/8");
quantValue->values.push_back("1/16");
quantValue->values.push_back("1/32");
quantValue->values.push_back("1/64");
quantValue->values.push_back("1/128");
quantValue->values.push_back("Quarter");
quantValue->values.push_back("Eighth");
quantValue->values.push_back("16th");
quantValue->values.push_back("32th");
quantValue->values.push_back("64th");
quantValue->values.push_back("128th");
quantValue->parent = root.get();
root->children.push_back(std::unique_ptr<Node>(quantValue));
controller->quantValue = quantValue;


Node *reduceToShorter = new Node;
reduceToShorter->name = "Reduce to shortest notes in bar";
reduceToShorter->name = "Reduce to shortest note in bar";
reduceToShorter->oper.type = MidiOperation::Type::QUANT_REDUCE;
reduceToShorter->oper.value = Quantization().reduceToShorterNotesInBar;
reduceToShorter->parent = quantValue;
Expand Down
2 changes: 2 additions & 0 deletions mscore/importmidi_tuplet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ int separateTupletVoices(std::vector<TupletInfo> &tuplets,
std::multimap<Fraction, MidiChord> &chords,
const Fraction &endBarTick)
{
if (tuplets.empty())
return 0;
// it's better before to sort tuplets by their average pitch
// and notes of every chord as well
sortNotesByPitch(startBarChordIt, endBarChordIt);
Expand Down

0 comments on commit 5bc5abc

Please sign in to comment.