mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
45 lines
914 B
C++
45 lines
914 B
C++
//
|
|
// 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:
|