summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-04-13 02:44:27 -0500
committerDarrell Anderson <[email protected]>2012-04-13 02:44:27 -0500
commit4a9d4beee6be253aff4f6d3c8fca4225b14e66cb (patch)
treecf98aea505b9daac7096c830ffc0397f168e5e0f /src/base
parent83a1c06d5545f2d076a75fd92a74b8d19c13e9a0 (diff)
downloadrosegarden-4a9d4beee6be253aff4f6d3c8fca4225b14e66cb.tar.gz
rosegarden-4a9d4beee6be253aff4f6d3c8fca4225b14e66cb.zip
Fix inadvertent "TQ" changes.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/BaseProperties.cpp2
-rw-r--r--src/base/BaseProperties.h2
-rw-r--r--src/base/BasicQuantizer.h4
-rw-r--r--src/base/Composition.h2
-rw-r--r--src/base/Equation.h4
-rw-r--r--src/base/LegatoQuantizer.h4
-rw-r--r--src/base/NotationQuantizer.cpp70
-rw-r--r--src/base/NotationQuantizer.h4
-rw-r--r--src/base/Quantizer.cpp10
-rw-r--r--src/base/Quantizer.h4
-rw-r--r--src/base/Segment.h2
-rw-r--r--src/base/TriggerSegment.cpp2
12 files changed, 55 insertions, 55 deletions
diff --git a/src/base/BaseProperties.cpp b/src/base/BaseProperties.cpp
index be964ac..adff519 100644
--- a/src/base/BaseProperties.cpp
+++ b/src/base/BaseProperties.cpp
@@ -115,7 +115,7 @@ const PropertyName TRIGGER_SEGMENT_RETUNE = "triggersegmentretune";
const PropertyName TRIGGER_SEGMENT_ADJUST_TIMES = "triggersegmentadjusttimes";
const std::string TRIGGER_SEGMENT_ADJUST_NONE = "none";
-const std::string TRIGGER_SEGMENT_ADJUST_STQUISH = "squish";
+const std::string TRIGGER_SEGMENT_ADJUST_SQUISH = "squish";
const std::string TRIGGER_SEGMENT_ADJUST_SYNC_START = "syncstart";
const std::string TRIGGER_SEGMENT_ADJUST_SYNC_END = "syncend";
diff --git a/src/base/BaseProperties.h b/src/base/BaseProperties.h
index 44cd477..f83b2f7 100644
--- a/src/base/BaseProperties.h
+++ b/src/base/BaseProperties.h
@@ -62,7 +62,7 @@ extern const PropertyName TRIGGER_SEGMENT_RETUNE;
extern const PropertyName TRIGGER_SEGMENT_ADJUST_TIMES;
extern const std::string TRIGGER_SEGMENT_ADJUST_NONE;
-extern const std::string TRIGGER_SEGMENT_ADJUST_STQUISH;
+extern const std::string TRIGGER_SEGMENT_ADJUST_SQUISH;
extern const std::string TRIGGER_SEGMENT_ADJUST_SYNC_START;
extern const std::string TRIGGER_SEGMENT_ADJUST_SYNC_END;
diff --git a/src/base/BasicQuantizer.h b/src/base/BasicQuantizer.h
index 2f3ce9e..1a9a7b7 100644
--- a/src/base/BasicQuantizer.h
+++ b/src/base/BasicQuantizer.h
@@ -19,8 +19,8 @@
COPYING included with this distribution for more information.
*/
-#ifndef BASIC_TQUANTIZER_H
-#define BASIC_TQUANTIZER_H
+#ifndef BASIC_QUANTIZER_H
+#define BASIC_QUANTIZER_H
#include "Quantizer.h"
diff --git a/src/base/Composition.h b/src/base/Composition.h
index 3514a86..24865dd 100644
--- a/src/base/Composition.h
+++ b/src/base/Composition.h
@@ -770,7 +770,7 @@ public:
//////
//
- // TQUANTIZERS
+ // QUANTIZERS
/**
* Return a quantizer that quantizes to the our most basic
diff --git a/src/base/Equation.h b/src/base/Equation.h
index 668c321..61377a5 100644
--- a/src/base/Equation.h
+++ b/src/base/Equation.h
@@ -20,8 +20,8 @@
COPYING included with this distribution for more information.
*/
-#ifndef _ETQUATION_H_
-#define _ETQUATION_H_
+#ifndef _EQUATION_H_
+#define _EQUATION_H_
namespace Rosegarden {
diff --git a/src/base/LegatoQuantizer.h b/src/base/LegatoQuantizer.h
index fee5360..645da05 100644
--- a/src/base/LegatoQuantizer.h
+++ b/src/base/LegatoQuantizer.h
@@ -19,8 +19,8 @@
COPYING included with this distribution for more information.
*/
-#ifndef LEGATO_TQUANTIZER_H
-#define LEGATO_TQUANTIZER_H
+#ifndef LEGATO_QUANTIZER_H
+#define LEGATO_QUANTIZER_H
#include "Quantizer.h"
diff --git a/src/base/NotationQuantizer.cpp b/src/base/NotationQuantizer.cpp
index 8f4b1e7..9e76a94 100644
--- a/src/base/NotationQuantizer.cpp
+++ b/src/base/NotationQuantizer.cpp
@@ -37,7 +37,7 @@ using std::cout;
using std::cerr;
using std::endl;
-//#define DEBUG_NOTATION_TQUANTIZER 1
+//#define DEBUG_NOTATION_QUANTIZER 1
namespace Rosegarden {
@@ -83,7 +83,7 @@ public:
}
virtual timeT getQuantizedAbsoluteTime(const Event *e) const {
timeT t = m_impl->getProvisional((Event *)e, AbsoluteTimeValue);
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "ProvisionalQuantizer::getQuantizedAbsoluteTime: returning " << t << endl;
#endif
return t;
@@ -295,7 +295,7 @@ NotationQuantizer::Impl::quantizeAbsoluteTime(Segment *s, Segment::iterator i) c
long bestScore = 0;
bool bestRight = false;
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "quantizeAbsoluteTime: t is " << t << ", d is " << d << endl;
#endif
@@ -321,7 +321,7 @@ NotationQuantizer::Impl::quantizeAbsoluteTime(Segment *s, Segment::iterator i) c
}
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
if (n != s->end() && n != nprime) {
cout << "found n (distinct from nprime) at " << (*n)->getAbsoluteTime() << endl;
}
@@ -340,7 +340,7 @@ NotationQuantizer::Impl::quantizeAbsoluteTime(Segment *s, Segment::iterator i) c
t, d, noteType, n, nprime, right);
if (depth == 0 || score < bestScore) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << " [*]";
#endif
bestBase = base;
@@ -348,13 +348,13 @@ NotationQuantizer::Impl::quantizeAbsoluteTime(Segment *s, Segment::iterator i) c
bestRight = right;
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << endl;
#endif
}
if (bestBase == -2) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "Quantizer::quantizeAbsoluteTime: weirdness: no snap found" << endl;
#endif
} else {
@@ -373,7 +373,7 @@ NotationQuantizer::Impl::quantizeAbsoluteTime(Segment *s, Segment::iterator i) c
t += sigTime;
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "snap base is " << bestBase << ", snapped to " << t << endl;
#endif
}
@@ -457,7 +457,7 @@ NotationQuantizer::Impl::scoreAbsoluteTimeForBase(Segment *s,
}
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << " depth/eff/dist/t/score/pen1/pen2/res: " << depth << "/" << effectiveDepth << "/" << distance << "/" << (right ? t + distance : t - distance) << "/" << score << "/" << penalty1 << "/" << penalty2 << "/" << (score * penalty1 * penalty2);
if (right) cout << " -> ";
else cout << " <- ";
@@ -553,7 +553,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
Profiler profiler("NotationQuantizer::Impl::quantizeDuration");
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "quantizeDuration: chord has " << c.size() << " notes" << endl;
#endif
@@ -584,7 +584,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
if ((**ci)->has(m_provisionalDuration) &&
(**ci)->has(BEAMED_GROUP_TUPLET_BASE)) {
// dealt with already in tuplet code, we'd only mess it up here
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "not recalculating duration for tuplet" << endl;
#endif
continue;
@@ -595,7 +595,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
if (!m_contrapuntal) {
// if not contrapuntal, give all notes in chord equal duration
if (nonContrapuntalDuration > 0) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "setting duration trivially to " << nonContrapuntalDuration << endl;
#endif
setProvisional(**ci, DurationValue, nonContrapuntalDuration);
@@ -613,7 +613,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
timeT qt = getProvisional(**ci, AbsoluteTimeValue);
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "note at time " << (**ci)->getAbsoluteTime() << " (provisional time " << qt << ")" << endl;
#endif
@@ -626,7 +626,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
base /= divisions[depth];
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "duration is " << ud << ", probably between "
<< bases.first << " and " << bases.second << endl;
#endif
@@ -645,7 +645,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
qd = Note::getNearestNote(spaceAvailable).getDuration();
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "non-contrapuntal segment, rounded duration down to "
<< qd << " (as only " << spaceAvailable << " available)"
<< endl;
@@ -675,7 +675,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
bases.second == absTimeBase) {
if (nextNoteTime >= qt + bases.second) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "We rounded to " << qd
<< " but we're on " << absTimeBase << " absTimeBase"
<< " and the next base is " << bases.second
@@ -699,14 +699,14 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
if (note.getNoteType() < Note::Longest) {
if (bases.second <= spaceAvailable) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "We rounded down to " << qd
<< " but have room for " << bases.second
<< ", rounding up again" << endl;
#endif
qd = bases.second;
} else {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "We rounded down to " << qd
<< "; can't fit " << bases.second << endl;
#endif
@@ -720,7 +720,7 @@ NotationQuantizer::Impl::quantizeDuration(Segment *s, Chord &c) const
if (!m_contrapuntal) nonContrapuntalDuration = qd;
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "totalFrac " << totalFrac << ", totalFracCount " << totalFracCount << ", avg " << (totalFracCount > 0 ? (totalFrac / totalFracCount) : 0) << endl;
#endif
}
@@ -746,7 +746,7 @@ NotationQuantizer::Impl::scanTupletsInBar(Segment *s,
if (depth >= 0) base /= divisions[depth];
if (base <= Note(Note::Semiquaver).getDuration()) break;
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "\nscanTupletsInBar: trying at depth " << depth << " (base " << base << ")" << endl;
#endif
@@ -766,7 +766,7 @@ NotationQuantizer::Impl::scanTupletsInBar(Segment *s,
continue;
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "scanTupletsInBar: testing " << tupletStart << "," << base << " at tuplet base " << tupletBase << endl;
#endif
@@ -786,7 +786,7 @@ NotationQuantizer::Impl::scanTupletsInBar(Segment *s,
}
if (jTime >= tupletEnd) { // nothing to make tuplets of
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "scanTupletsInBar: nothing here" << endl;
#endif
tupletStart = tupletEnd;
@@ -827,14 +827,14 @@ NotationQuantizer::Impl::scanTupletsAt(Segment *s,
if (!(*j)->isa(Note::EventType)) { ++j; continue; }
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "scanTupletsAt time " << jTime << " (unquantized "
<< (*j)->getAbsoluteTime() << "), found note" << endl;
#endif
// reject any group containing anything already a tuplet
if ((*j)->has(BEAMED_GROUP_TUPLET_BASE)) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "already made tuplet here" << endl;
#endif
return;
@@ -843,19 +843,19 @@ NotationQuantizer::Impl::scanTupletsAt(Segment *s,
timeT originalBase;
if (!(*j)->get<Int>(m_provisionalBase, originalBase)) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "some notes not provisionally quantized, no good" << endl;
#endif
return;
}
if (originalBase == base) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "accepting note at original base" << endl;
#endif
candidates.push_back(*j);
} else if (((jTime - sigTime) % base) == 0) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "accepting note that happens to lie on original base" << endl;
#endif
candidates.push_back(*j);
@@ -867,7 +867,7 @@ NotationQuantizer::Impl::scanTupletsAt(Segment *s,
// any of the likelihood tests for tuplets.
if (!isValidTupletAt(s, j, depth, base, sigTime, tupletBase)) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "no good" << endl;
#endif
return;
@@ -883,13 +883,13 @@ NotationQuantizer::Impl::scanTupletsAt(Segment *s,
// must have at least one note that is not already quantized to the
// original base
if (count < 1) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "scanTupletsAt: found no note not already quantized to " << base << endl;
#endif
return;
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "scanTupletsAt: Tuplet group of duration " << base << " starting at " << tupletStart << endl;
#endif
@@ -970,7 +970,7 @@ NotationQuantizer::Impl::isValidTupletAt(Segment *s,
timeT ud = m_q->getFromSource(*i, DurationValue);
if (ud > (tupletBase * 5 / 4)) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "\nNotationQuantizer::isValidTupletAt: note too long at "
<< (*i)->getDuration() << " (tupletBase is " << tupletBase << ")"
<< endl;
@@ -981,7 +981,7 @@ NotationQuantizer::Impl::isValidTupletAt(Segment *s,
//!!! This bit is a cop-out. It means we reject anything that looks
// like it's going to have rests in it. Bah.
if (ud <= (tupletBase * 3 / 8)) {
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "\nNotationQuantizer::isValidTupletAt: note too short at "
<< (*i)->getDuration() << " (tupletBase is " << tupletBase << ")"
<< endl;
@@ -1000,7 +1000,7 @@ NotationQuantizer::Impl::isValidTupletAt(Segment *s,
bool dummy;
long tupletScore = scoreAbsoluteTimeForBase
(s, i, depth, tupletBase, sigTime, t, d, noteType, s->end(), s->end(), dummy);
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "\nNotationQuantizer::isValidTupletAt: score " << score
<< " vs tupletScore " << tupletScore << endl;
#endif
@@ -1027,7 +1027,7 @@ NotationQuantizer::Impl::quantizeRange(Segment *s,
int events = 0, notes = 0, passes = 0;
int setGood = 0, setBad = 0;
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "NotationQuantizer::Impl::quantizeRange: from time "
<< (from == s->end() ? -1 : (*from)->getAbsoluteTime())
<< " to "
@@ -1177,7 +1177,7 @@ NotationQuantizer::Impl::quantizeRange(Segment *s,
(*i)->getDuration() == d) ++setBad;
else ++setGood;
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "Setting to target at " << t << "," << d << endl;
#endif
diff --git a/src/base/NotationQuantizer.h b/src/base/NotationQuantizer.h
index 02c1c59..87b0d72 100644
--- a/src/base/NotationQuantizer.h
+++ b/src/base/NotationQuantizer.h
@@ -19,8 +19,8 @@
COPYING included with this distribution for more information.
*/
-#ifndef NOTATION_TQUANTIZER_H_
-#define NOTATION_TQUANTIZER_H_
+#ifndef NOTATION_QUANTIZER_H_
+#define NOTATION_QUANTIZER_H_
#include "Quantizer.h"
diff --git a/src/base/Quantizer.cpp b/src/base/Quantizer.cpp
index 7b90c61..c0e4d1b 100644
--- a/src/base/Quantizer.cpp
+++ b/src/base/Quantizer.cpp
@@ -37,7 +37,7 @@ using std::cout;
using std::cerr;
using std::endl;
-//#define DEBUG_NOTATION_TQUANTIZER 1
+//#define DEBUG_NOTATION_QUANTIZER 1
namespace Rosegarden {
@@ -366,7 +366,7 @@ Quantizer::setToTarget(Segment *s, Segment::iterator i,
// that are already being referred to in ViewElementLists,
// preventing us from locating them in the ViewElementLists
// because their ordering would have silently changed
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "Quantizer: setting " << absTime << " to notation absolute time and "
<< duration << " to notation duration"
<< endl;
@@ -404,7 +404,7 @@ Quantizer::setToTarget(Segment *s, Segment::iterator i,
m_toInsert.push_back(e);
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "m_toInsert.size() is now " << m_toInsert.size() << endl;
#endif
}
@@ -464,7 +464,7 @@ Quantizer::insertNewEvents(Segment *s) const
s->insert(m_toInsert[i]);
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "Quantizer::insertNewEvents: sz is " << sz
<< ", minTime " << minTime << ", maxTime " << maxTime
<< endl;
@@ -482,7 +482,7 @@ Quantizer::insertNewEvents(Segment *s) const
}
}
-#ifdef DEBUG_NOTATION_TQUANTIZER
+#ifdef DEBUG_NOTATION_QUANTIZER
cout << "Quantizer: calling normalizeRests("
<< minTime << ", " << maxTime << ")" << endl;
#endif
diff --git a/src/base/Quantizer.h b/src/base/Quantizer.h
index 035299c..407b651 100644
--- a/src/base/Quantizer.h
+++ b/src/base/Quantizer.h
@@ -19,8 +19,8 @@
COPYING included with this distribution for more information.
*/
-#ifndef TQUANTIZER_H
-#define TQUANTIZER_H
+#ifndef QUANTIZER_H
+#define QUANTIZER_H
#include "Segment.h"
#include "Event.h"
diff --git a/src/base/Segment.h b/src/base/Segment.h
index be2981b..564d118 100644
--- a/src/base/Segment.h
+++ b/src/base/Segment.h
@@ -283,7 +283,7 @@ public:
//////
//
- // TQUANTIZATION
+ // QUANTIZATION
/**
* Switch quantization on or off.
diff --git a/src/base/TriggerSegment.cpp b/src/base/TriggerSegment.cpp
index bcf6888..c4c29de 100644
--- a/src/base/TriggerSegment.cpp
+++ b/src/base/TriggerSegment.cpp
@@ -47,7 +47,7 @@ TriggerSegmentRec::TriggerSegmentRec(TriggerSegmentId id,
m_defaultRetune(retune)
{
if (m_defaultTimeAdjust == "") {
- m_defaultTimeAdjust = BaseProperties::TRIGGER_SEGMENT_ADJUST_STQUISH;
+ m_defaultTimeAdjust = BaseProperties::TRIGGER_SEGMENT_ADJUST_SQUISH;
}
calculateBases();