diff options
author | Florian Jung <flo@windfisch.org> | 2011-10-11 16:42:43 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-10-11 16:42:43 +0000 |
commit | 784df1e40bbd403c34850c62c8fda3452d4f372b (patch) | |
tree | f88507c3f972e02cf26e477a121fdc74c142adc0 /muse2/muse/steprec.cpp | |
parent | abedca49b707bd5bced2bee2caa8bb4417dcfa51 (diff) |
improved steprecording in drum editor
Diffstat (limited to 'muse2/muse/steprec.cpp')
-rw-r--r-- | muse2/muse/steprec.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/muse2/muse/steprec.cpp b/muse2/muse/steprec.cpp index c07a5bb8..723fe650 100644 --- a/muse2/muse/steprec.cpp +++ b/muse2/muse/steprec.cpp @@ -61,6 +61,13 @@ void StepRec::record(Part* part, int pitch, int len, int step, int velo, bool ct unsigned lasttick=0; Undo operations; + if (tick < part->tick()) //insert note before the part to insert? + { + if (MusEGlobal::debugMsg) + printf("StepRec::record(): tick (%i) is before part (begin tick is %i), ignoring...\n",tick, part->tick()); + return; + } + // if incoming_pitch wasn't specified, set it to pitch if (incoming_pitch == 1337) incoming_pitch=pitch; |