Class: Musa::MusicXML::Builder::Internal::OctaveShift Private
- Inherits:
-
DirectionType
- Object
- DirectionType
- Musa::MusicXML::Builder::Internal::OctaveShift
- Includes:
- Helper
- Defined in:
- lib/musa-dsl/musicxml/builder/direction.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Octave shift direction type for 8va/8vb markings.
Represents octave transposition markings (8va, 8vb, 15ma, 15mb). Type indicates up/down/stop/continue, size indicates octaves (8 or 15).
Instance Method Summary collapse
- #_direction_type_to_xml(io, indent:, tabs:) ⇒ Object private
-
#initialize(type, size: nil, &block) ⇒ OctaveShift
constructor
private
up / down / stop / continue.
Constructor Details
#initialize(type, size: nil, &block) ⇒ OctaveShift
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
up / down / stop / continue
461 462 463 464 465 466 467 468 469 |
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 461 def initialize(type, # up / down / stop / continue size: nil, # number &block) @type = type @size = size super end |
Instance Method Details
#_direction_type_to_xml(io, indent:, tabs:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
474 475 476 |
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 474 def _direction_type_to_xml(io, indent:, tabs:) io.puts "#{tabs}<octave-shift type=\"#{@type}\"#{ decode_bool_or_string_attribute(@size&.to_i, 'size') }/>" end |