Module: Musa::Datasets::Delta
Overview
Events with delta (incremental) values.
Delta represents events where values are incremental changes from a previous state. Examples: pitch +2 semitones, duration +0.5 beats, velocity -10.
A passage written as deltas says nothing about where it starts, so it can be replayed from any other starting point: the same movement from another note, in another register, at another dynamic. That is what it is for, rather than any saving in size.
Instance Method Summary collapse
-
#valid? ⇒ Boolean
included
from E
Checks if event is valid.
-
#validate! ⇒ void
included
from E
Validates event, raising if invalid.
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.
#validate! ⇒ void Originally defined in module E
This method returns an undefined value.
Validates event, raising if invalid.