Module: Ruck::UGen::ShredLocal

Defined in:
lib/ruck/ugen/ugen.rb

Overview

stuff accessible in a shred

Instance Method Summary collapse

Instance Method Details

#blackholeObject



25
26
27
# File 'lib/ruck/ugen/ugen.rb', line 25

def blackhole
  BLACKHOLE
end

#finishObject



41
42
43
44
45
# File 'lib/ruck/ugen/ugen.rb', line 41

def finish
  shred = SHREDULER.current_shred
  SHREDULER.remove_shred shred
  shred.finish
end

#nowObject



29
30
31
# File 'lib/ruck/ugen/ugen.rb', line 29

def now
  SHREDULER.now
end

#play(samples) ⇒ Object



37
38
39
# File 'lib/ruck/ugen/ugen.rb', line 37

def play(samples)
  SHREDULER.current_shred.yield(samples)
end

#spork(name = "unnamed", &shred) ⇒ Object



33
34
35
# File 'lib/ruck/ugen/ugen.rb', line 33

def spork(name = "unnamed", &shred)
  SHREDULER.spork(name, &shred)
end