Module: Musa::Neumalang::Neumalang::Parser::Vector 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 vector notation.

Transforms vector notation "<1 2 3>" into V structure. V is array-based vector for musical data.

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 vector structure.

Returns:

  • v with kind :v

API:

  • private



557
558
559
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 557

def value
  { kind: :v, v: capture(:raw_vector).value }.extend(Musa::Neumas::Neuma)
end