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.

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:

  • (Hash)

    v with kind :v



538
539
540
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 538

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