From 4ba648dcd86e698ea814fc83fcc4c7379746e156 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 5 Jul 2008 13:56:27 +0000 Subject: [PATCH] Fix mistimed events on repeat starting at measure 0 --- Sources/VLMIDIWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/VLMIDIWriter.cpp b/Sources/VLMIDIWriter.cpp index 543daa5..decf10b 100644 --- a/Sources/VLMIDIWriter.cpp +++ b/Sources/VLMIDIWriter.cpp @@ -24,6 +24,7 @@ struct VLMetaEvent : MIDIMetaEvent { void VLMIDIWriter::Visit(VLSong & song) { + fChordTime = 0.0f; fVolta.clear(); MusicSequenceNewTrack(fMusic, &fTrack); VLMetaEvent meta("VocalEasel"); @@ -40,7 +41,7 @@ void VLMIDIWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas) fMeasure = m; fStanza = ++fVolta[m]; - if (!m) + if (!fChordTime) fChordTime = fNoteTime = fCountIn*fTime.fNum; fAt = 0;