57 void write(
const QString &sFilename )
const;
67 typedef std::vector<std::vector<std::pair<int, float> > >
notes_t;
87 void writeUpper( QTextStream &stream,
unsigned nMeasure )
const;
90 void writeLower( QTextStream &stream,
unsigned nMeasure )
const;
100 const std::vector<int> &whiteList )
const;
QString m_sName
Name of the song.
std::vector< std::vector< std::pair< int, float > > > notes_t
void extractData(const Song &song)
void writeMeasures(QTextStream &stream) const
Write measures in LilyPond format to stream.
static void addPattern(const Pattern &pattern, notes_t ¬es)
QString m_sAuthor
Author of the song.
static void addPatternList(const PatternList &list, notes_t ¬es)
void writeLower(QTextStream &stream, unsigned nMeasure) const
Write lower voice of given measure to stream.
std::vector< notes_t > m_Measures
Representation of the song.
void writeUpper(QTextStream &stream, unsigned nMeasure) const
Write upper voice of given measure to stream.
void writeVoice(QTextStream &stream, unsigned nMeasure, const std::vector< int > &whiteList) const
float m_fBPM
BPM of the song.
void write(const QString &sFilename) const
PatternList is a collection of patterns.
Pattern class is a Note container.