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).

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:

  • (Hash)

    delta_octave attribute



652
653
654
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 652

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