class Musicality::Change::Immediate
Public Class Methods
new(end_value)
click to toggle source
Calls superclass method
Musicality::Change::new
# File lib/musicality/notation/model/change.rb, line 18 def initialize end_value super(end_value) end
Public Instance Methods
clone() { |end_value| ... }
click to toggle source
# File lib/musicality/notation/model/change.rb, line 22 def clone Immediate.new(block_given? ? yield(@end_value) : @end_value) end
duration()
click to toggle source
# File lib/musicality/notation/model/change.rb, line 26 def duration; 0; end
offsets(base_offset)
click to toggle source
# File lib/musicality/notation/conversion/change_conversion.rb, line 5 def offsets base_offset [ base_offset ] end
remap(base_offset, map)
click to toggle source
# File lib/musicality/notation/conversion/change_conversion.rb, line 9 def remap base_offset, map self.clone end
to_transition(offset, value)
click to toggle source
# File lib/musicality/notation/conversion/change_conversion.rb, line 13 def to_transition offset, value Transition.new(Function::Constant.new(@end_value), offset..offset) end