Module: HeadMusic::Notation::MusicXML

Defined in:
lib/head_music/notation/music_xml.rb,
lib/head_music/notation/music_xml/writer.rb,
lib/head_music/notation/music_xml/divisions.rb,
lib/head_music/notation/music_xml/key_mapper.rb,
lib/head_music/notation/music_xml/pitch_writer.rb,
lib/head_music/notation/music_xml/clef_selector.rb,
lib/head_music/notation/music_xml/duration_writer.rb

Overview

A namespace for MusicXML-notation rendering helpers

Defined Under Namespace

Classes: ClefSelector, Divisions, DurationWriter, KeyMapper, PitchWriter, RenderError, Writer

Class Method Summary collapse

Class Method Details

.render(composition) ⇒ Object

Renders a composition as a score-partwise MusicXML string. No rendering options exist yet; keywords will be added with the first one.



5
6
7
# File 'lib/head_music/notation/music_xml.rb', line 5

def self.render(composition)
  Writer.new(composition).to_s
end