summaryrefslogtreecommitdiff
path: root/muse2/awl/posedit.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-07 03:27:48 +0000
committerTim E. Real <termtech@rogers.com>2010-12-07 03:27:48 +0000
commit8e9886770af1022d88e6f92ff4fcceb3e50d0e55 (patch)
treefb42340c5d7a75278b7ed37478f066324fa59dde /muse2/awl/posedit.cpp
parent45f13100f9b5d0fd5a9f4950e135c2ed6de0429c (diff)
Built Awl::posedit and Awl::sigedit, and replaced /widget versions and all usages.
Reverted class SpinBox to previous revision.
Diffstat (limited to 'muse2/awl/posedit.cpp')
-rw-r--r--muse2/awl/posedit.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp
index 4f8b19b2..51cea634 100644
--- a/muse2/awl/posedit.cpp
+++ b/muse2/awl/posedit.cpp
@@ -22,10 +22,13 @@
#include "awl.h"
#include "posedit.h"
#include "al/sig.h"
+//#include "sig.h"
+
+//#include "sync.h" // Tim.
namespace Awl {
- using AL::mtcType;
+ ///using AL::mtcType;
using AL::sigmap;
//---------------------------------------------------------
@@ -239,8 +242,11 @@ QAbstractSpinBox::StepEnabled PosEdit::stepEnabled() const
int bar, beat;
unsigned tick;
AL::sigmap.tickValues(_pos.tick(), &bar, &beat, &tick);
+ //sigmap.tickValues(_pos.tick(), &bar, &beat, &tick);
unsigned tb = AL::sigmap.ticksBeat(_pos.tick());
+ //unsigned tb = sigmap.ticksBeat(_pos.tick());
unsigned tm = AL::sigmap.ticksMeasure(_pos.tick());
+ //unsigned tm = sigmap.ticksMeasure(_pos.tick());
int bm = tm / tb;
switch (segment) {
@@ -386,7 +392,9 @@ void PosEdit::stepBy(int steps)
_pos.mbt(&bar, &beat, &tick);
int tb = AL::sigmap.ticksBeat(_pos.tick());
+ //int tb = sigmap.ticksBeat(_pos.tick());
unsigned tm = AL::sigmap.ticksMeasure(_pos.tick());
+ //unsigned tm = sigmap.ticksMeasure(_pos.tick());
int bm = tm / tb;
switch(segment) {