class MTK::Sequencers::LegatoSequencer
A Sequencer
which uses the longest duration of the events at each step to determine the delta times between entries in the {Events::Timeline}.
Public Instance Methods
next()
click to toggle source
(see Sequencer#next
)
Calls superclass method
# File lib/mtk/sequencers/legato_sequencer.rb, line 9 def next @previous_events = super end
Protected Instance Methods
advance()
click to toggle source
(see Sequencer#advance
)
# File lib/mtk/sequencers/legato_sequencer.rb, line 17 def advance @time += @previous_events.map{|event| event.length }.max end