VocalEasel/Sources/VLMMAWriter.h

45 lines
903 B
C
Raw Normal View History

2007-05-27 04:35:45 +00:00
//
// File: VLMMAWriter.h
//
// Author(s):
//
// (MN) Matthias Neeracher
//
// Copyright © 2007 Matthias Neeracher
//
#include "VLModel.h"
class VLMMAWriter: public VLSongVisitor {
public:
2008-01-24 01:29:18 +00:00
VLMMAWriter(bool preview, int beginSection, int endSection)
: fPreview(preview), fBeginSection(beginSection), fEndSection(endSection)
{}
2007-05-27 04:35:45 +00:00
virtual void Visit(VLSong & song);
virtual void VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas);
virtual void VisitNote(VLLyricsNote & n);
virtual void VisitChord(VLChord & c);
const std::string & Measures() const { return fMeasures; }
private:
std::string fMeasures;
2007-05-27 04:35:45 +00:00
VLSong * fSong;
2008-01-24 01:29:18 +00:00
bool fPreview;
bool fUseSharps;
bool fTied;
bool fInitial;
int fMeas;
size_t fLastDur;
std::string fAccum;
int fKey;
std::string fGroove;
2008-01-24 01:29:18 +00:00
int fBeginSection;
int fEndSection;
2007-05-27 04:35:45 +00:00
};
// Local Variables:
// mode:C++
// End: