Class: Scruby::Ugens::RecordBuf

Inherits:
Ugen show all
Defined in:
lib/scruby/ugens/buffer_read_write.rb

Constant Summary

Constants inherited from Ugen

Ugen::E_RATES, Ugen::RATES, Ugen::VALID_INPUTS

Instance Attribute Summary

Attributes inherited from Ugen

#channels, #index, #inputs, #output_index, #rate, #special_index

Class Method Summary collapse

Methods inherited from Ugen

#==, #encode, #initialize, #muladd, params, synthdef, synthdef=, valid_input?

Constructor Details

This class inherits a constructor from Scruby::Ugens::Ugen

Class Method Details

.ar(input, bufnum = 0, offset = 0.0, rec_level = 1.0, pre_level = 0.0, run = 1.0, loop = 1.0, trigger = 1.0, doneAction = 0) ⇒ Object



68
69
70
# File 'lib/scruby/ugens/buffer_read_write.rb', line 68

def ar input, bufnum = 0, offset = 0.0, rec_level = 1.0, pre_level = 0.0, run = 1.0, loop = 1.0, trigger = 1.0, doneAction=0
  new :audio, bufnum, offset, rec_level, pre_level, run, loop, trigger, doneAction, *input.to_array
end

.kr(input, bufnum = 0, offset = 0.0, rec_level = 1.0, pre_level = 0.0, run = 1.0, loop = 1.0, trigger = 1.0, doneAction = 0) ⇒ Object



64
65
66
# File 'lib/scruby/ugens/buffer_read_write.rb', line 64

def kr input, bufnum = 0, offset = 0.0, rec_level = 1.0, pre_level = 0.0, run = 1.0, loop = 1.0, trigger = 1.0, doneAction=0
  new :control, bufnum, offset, rec_level, pre_level, run, loop, trigger, doneAction, *input.to_array
end