summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-12-12 02:22:17 +0000
committerTim E. Real <termtech@rogers.com>2012-12-12 02:22:17 +0000
commitbfa869ee23aa5da09f18d930766f1d6321854c1b (patch)
treedb14d835278fe02b88cec49f7ec5de86cc894fd7
parent4d046efb0d339175468f7f180315cfd194e635d7 (diff)
Fixes...
-rw-r--r--muse2/muse/vst_native.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/muse2/muse/vst_native.cpp b/muse2/muse/vst_native.cpp
index 5f98939c..419c996f 100644
--- a/muse2/muse/vst_native.cpp
+++ b/muse2/muse/vst_native.cpp
@@ -961,11 +961,11 @@ VstIntPtr VstNativeSynthIF::hostCallback(VstInt32 opcode, VstInt32 index, VstInt
p.mbt(&p_bar, &p_beat, &p_tick);
//#ifndef VST_VESTIGE_SUPPORT
- _timeInfo.barStartPos = Pos(p_bar, 0, 0).tick();
- _timeInfo.ppqPos = MusEGlobal::audio->tickPos() / 240.0;
+ _timeInfo.barStartPos = (double)Pos(p_bar, 0, 0).tick() / (double)MusEGlobal::config.division;
+ _timeInfo.ppqPos = (double)MusEGlobal::audio->tickPos() / (double)MusEGlobal::config.division;
// #else
-// *((double*)&_timeInfo.empty2[0]) = (double)Pos(p_bar, 0, 0).tick() / 120.0;
-// *((double*)&_timeInfo.empty1[8]) = (double)MusEGlobal::audio->tickPos() / 120.0;
+// *((double*)&_timeInfo.empty2[0]) = (double)Pos(p_bar, 0, 0).tick() / (double)MusEGlobal::config.division;
+// *((double*)&_timeInfo.empty1[8]) = (double)MusEGlobal::audio->tickPos() / (double)MusEGlobal::config.division;
// #endif
//pos->bar++;
//pos->beat++;