RADLib
RADical C++ application framework
RADMedia::MusicXml Class Reference

MusicXML helper for score export and notation renderers such as Verovio. More...

#include <RADMedia.h>

Static Public Member Functions

static std::string escape (const std::string &value)
 Escapes text for XML element/attribute content. More...
 
static std::vector< int > durationChunks (int ticks, int divisions=960)
 Splits a duration into MusicXML-friendly note/rest chunks for the given divisions. More...
 
static std::string partwiseScore (const std::vector< MusicXmlNoteEvent > &notes, const MusicXmlScoreOptions &options, std::string *error=nullptr)
 Builds a MusicXML 3.1 partwise score from absolute MIDI-style note events. More...
 

Detailed Description

MusicXML helper for score export and notation renderers such as Verovio.

Member Function Documentation

◆ durationChunks()

static std::vector<int> RADMedia::MusicXml::durationChunks ( int  ticks,
int  divisions = 960 
)
static

Splits a duration into MusicXML-friendly note/rest chunks for the given divisions.

◆ escape()

static std::string RADMedia::MusicXml::escape ( const std::string &  value)
static

Escapes text for XML element/attribute content.

◆ partwiseScore()

static std::string RADMedia::MusicXml::partwiseScore ( const std::vector< MusicXmlNoteEvent > &  notes,
const MusicXmlScoreOptions options,
std::string *  error = nullptr 
)
static

Builds a MusicXML 3.1 partwise score from absolute MIDI-style note events.


The documentation for this class was generated from the following file: