54 void write(
const QString &sFilename )
const;
64 typedef std::vector<std::vector<std::pair<int, float> > >
notes_t;
84 void writeUpper( std::ofstream &stream,
unsigned nMeasure )
const;
87 void writeLower( std::ofstream &stream,
unsigned nMeasure )
const;
97 const std::vector<int> &whiteList )
const;
A class to convert a Hydrogen song to LilyPond format.
QString m_sName
Name of the song.
std::vector< std::vector< std::pair< int, float > > > notes_t
void extractData(const Song &song)
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)
std::vector< notes_t > m_Measures
Representation of the song.
void writeUpper(std::ofstream &stream, unsigned nMeasure) const
Write upper voice of given measure to stream.
void writeLower(std::ofstream &stream, unsigned nMeasure) const
Write lower voice of given measure to stream.
void writeVoice(std::ofstream &stream, unsigned nMeasure, const std::vector< int > &whiteList) const
void writeMeasures(std::ofstream &stream) const
Write measures in LilyPond format to stream.
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.