Module: Musa::Neumalang::Neumalang::Parser::AbsDurationAttribute Private

Includes:
DurationCalculation
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 absolute duration attribute.

Parses absolute duration: "1/4", "1", "1/2.." (double dotted).

Instance Method Summary collapse

Instance Method Details

#durationRational Originally defined in module DurationCalculation

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.

Calculates duration value.

Returns:

#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 absolute duration structure.

Returns:

  • (Hash)

    abs_duration attribute



733
734
735
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 733

def value
  { abs_duration: duration }
end