Class: Sunniesnow::Charter::TimeDependent::UninterpolablePiecewiseData
- Inherits:
-
PiecewiseData
- Object
- PiecewiseData
- Sunniesnow::Charter::TimeDependent::UninterpolablePiecewiseData
- Defined in:
- lib/sscharter/charter/event.rb
Overview
Represents a piecewise constant function defined by some data points.
Instance Attribute Summary collapse
Attributes inherited from PiecewiseData
Attributes included from Metronomic
#beat, #bpm_changes, #duration_beats, #offset
Instance Method Summary collapse
Methods inherited from PiecewiseData
#data_point, #dup, #initialize
Methods included from Metronomic
#<=>, #beat_state, #end_time, #time, #time_at_relative_beat
Constructor Details
This class inherits a constructor from Sunniesnow::Charter::TimeDependent::PiecewiseData
Instance Attribute Details
#value ⇒ Integer, ...
197 198 199 |
# File 'lib/sscharter/charter/event.rb', line 197 def value @value end |
Instance Method Details
#interpolable? ⇒ false
200 201 202 |
# File 'lib/sscharter/charter/event.rb', line 200 def interpolable? false end |
#to_sunniesnow ⇒ Hash
205 206 207 |
# File 'lib/sscharter/charter/event.rb', line 205 def to_sunniesnow super.tap { _1[:value] = @value if @value } end |