Module: Musa::Neumalang::Neumalang::Parser::DeltaOctaveAttribute Private

Defined in:
lib/musa-dsl/neumalang/neumalang.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Semantic action for differential octave attribute.

Parses relative octave changes: "^2" (up 2 octaves), "v1" (down 1 octave).

API:

  • private

Instance Method Summary collapse

Instance Method Details

#valueHash

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.

Builds delta octave structure.

Returns:

  • delta_octave attribute

API:

  • private



671
672
673
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 671

def value
  { delta_octave: capture(:sign).value * capture(:number).value }
end