Module: Musa::Datasets::AbsTimed

Includes:
Abs
Defined in:
lib/musa-dsl/datasets/e.rb

Overview

Absolute events with time component.

AbsTimed represents absolute events that occur at a specific time point. The :time key indicates when the event occurs.

Natural Keys

  • :time: Absolute time position

Examples:

Timed event

{ time: 0.0, value: { pitch: 60 } }.extend(AbsTimed)
{ time: 1.0, value: { pitch: 64 } }.extend(AbsTimed)

See Also:

Constant Summary collapse

NaturalKeys =

Natural keys including time.

Returns:

(NaturalKeys + [:time]).freeze

Instance Method Summary collapse

Instance Method Details

#valid?Boolean Originally defined in module E

Checks if event is valid.

Base implementation always returns true. Subclasses should override to implement specific validation logic.

Examples:

event.valid?  # => true

Returns:

  • (Boolean)

    true if valid

#validate!void Originally defined in module E

This method returns an undefined value.

Validates event, raising if invalid.

Examples:

event.validate!  # Raises if invalid

Raises:

  • (RuntimeError)

    if event is not valid