Fix mistimed events on repeat starting at measure 0

This commit is contained in:
Matthias Neeracher 2008-07-05 13:56:27 +00:00
parent f31c878e9b
commit 4ba648dcd8

View File

@ -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;