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