diff options
author | Werner Schweer <ws.seh.de> | 2006-12-04 20:31:31 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2006-12-04 20:31:31 +0000 |
commit | 4e1abfd39f9be895d16835bf2fac26f2b1ea0c3b (patch) | |
tree | cb61f95607e66af75c2eec368b51a8989222a017 | |
parent | e27d6923d92c21f00fc3832e96b2b7952ed9058b (diff) |
fix midi recording crash
-rw-r--r-- | muse/muse/miditrack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/muse/muse/miditrack.cpp b/muse/muse/miditrack.cpp index e96f53ef..29319acf 100644 --- a/muse/muse/miditrack.cpp +++ b/muse/muse/miditrack.cpp @@ -194,6 +194,7 @@ void MidiTrack::startRecording() // create new part for recording // recordPart = new Part(this); + recordPart->ref(); recordPart->setTrack(this); int startTick = song->roundDownBar(start.tick()); int endTick = song->roundUpBar(start.tick()); @@ -226,7 +227,6 @@ void MidiTrack::recordBeat() } while (!recordFifo.isEmpty()) { MidiEvent me(recordFifo.get()); -printf("<%s> record\n", name().toLatin1().data()); unsigned time = me.time(); if (song->punchin() && time < song->lpos()) |