Skip to content

Commit

Permalink
Add SV change export to o!m converter
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoru committed May 1, 2015
1 parent 72a02b8 commit 51927fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void ConvertToOM(VSRG::Song *Sng, Directory PathOut, GString Author)
<< "[General]\n"
<< "AudioFilename: " << ((*i)->IsVirtual ? "virtual" : Sng->SongFilename) << "\n"
<< "AudioLeadIn: 1500\n"
<< "PreviewTime: " << Sng->PreviewTime << "\n"
<< "PreviewTime: " << (int)Sng->PreviewTime * 1000 << "\n"
<< "Countdown: 0\n"
<< "SampleSet: None\n"
<< "StackLeniency: 0.7\n"
Expand Down Expand Up @@ -115,6 +115,14 @@ void ConvertToOM(VSRG::Song *Sng, Directory PathOut, GString Author)
out.flush();
}

for (TimingData::iterator t = (*i)->Data->SpeedChanges.begin();
t != (*i)->Data->SpeedChanges.end();
t++)
{
out << (t->Time + (*i)->Offset) * 1000 << "," << - 100/(t->Value ? t->Value : 0.00001) << ",4,1,0,15,0,0\n";
out.flush();
}

out << "\n\n[HitObjects]\n";

// Then, objects.
Expand Down

0 comments on commit 51927fb

Please sign in to comment.