Class: Scruby::Ugens::In

Inherits:
Ugen show all
Includes:
MultiOut
Defined in:
lib/scruby/ugens/in_out.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 included from MultiOut

included, #initialize, #output_specs

Methods inherited from Ugen

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

Class Method Details

.ar(bus, channels = 1) ⇒ Object

New In with :audio rate, inputs should be valid Ugen inputs or Ugens, arguments can be passed as an options hash or in the given order



8
9
10
# File 'lib/scruby/ugens/in_out.rb', line 8

def ar bus, channels = 1
  new :audio, channels, bus
end

.kr(bus, channels = 1) ⇒ Object

New In with :control rate, inputs should be valid Ugen inputs or Ugens, arguments can be passed as an options hash or in the given order



12
13
14
# File 'lib/scruby/ugens/in_out.rb', line 12

def kr bus, channels = 1
  new :control, channels, bus
end