Class: Ruck::UGenShreduler

Inherits:
Shreduler show all
Defined in:
lib/ruck/shreduling.rb

Instance Attribute Summary

Attributes inherited from Shreduler

#current_shred, #now, #running, #shreds

Instance Method Summary collapse

Methods inherited from Shreduler

#initialize, #invoke_shred, #next_shred, #remove_shred, #run_one, #spork

Constructor Details

This class inherits a constructor from Ruck::Shreduler

Instance Method Details

#runObject



128
129
130
131
# File 'lib/ruck/shreduling.rb', line 128

def run
  require File.join(File.dirname(__FILE__), "misc", "pcm_time_helpers")
  super
end

#sim_to(new_now) ⇒ Object



133
134
135
136
137
138
# File 'lib/ruck/shreduling.rb', line 133

def sim_to(new_now)
  while @now < new_now.to_i
    BLACKHOLE.next @now
    @now += 1
  end
end