mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Fix mistimed events on repeat starting at measure 0
This commit is contained in:
parent
f31c878e9b
commit
4ba648dcd8
|
@ -24,6 +24,7 @@ struct VLMetaEvent : MIDIMetaEvent {
|
||||||
|
|
||||||
void VLMIDIWriter::Visit(VLSong & song)
|
void VLMIDIWriter::Visit(VLSong & song)
|
||||||
{
|
{
|
||||||
|
fChordTime = 0.0f;
|
||||||
fVolta.clear();
|
fVolta.clear();
|
||||||
MusicSequenceNewTrack(fMusic, &fTrack);
|
MusicSequenceNewTrack(fMusic, &fTrack);
|
||||||
VLMetaEvent meta("VocalEasel");
|
VLMetaEvent meta("VocalEasel");
|
||||||
|
@ -40,7 +41,7 @@ void VLMIDIWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas)
|
||||||
fMeasure = m;
|
fMeasure = m;
|
||||||
fStanza = ++fVolta[m];
|
fStanza = ++fVolta[m];
|
||||||
|
|
||||||
if (!m)
|
if (!fChordTime)
|
||||||
fChordTime = fNoteTime = fCountIn*fTime.fNum;
|
fChordTime = fNoteTime = fCountIn*fTime.fNum;
|
||||||
|
|
||||||
fAt = 0;
|
fAt = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user