Module: Scruby::Ugens::MultiOut

Included in:
Balance2, BiPanB2, BufRd, Control, DecodeB2, Demand, DiskIn, In, Pan2, Pan4, PanAz, PanB, PanB2, PlayBuf, Rotate2, TGrains, VDiskIn
Defined in:
lib/scruby/ugens/multi_out.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



4
5
6
# File 'lib/scruby/ugens/multi_out.rb', line 4

def self.included base
  base.extend ClassMethods
end

Instance Method Details

- (MultiOut) initialize(rate, channels, *inputs)



8
9
10
11
12
# File 'lib/scruby/ugens/multi_out.rb', line 8

def initialize rate, channels, *inputs
  super rate, *inputs
  @channels = Array === channels ? channels : (0...channels).map{ |i| OutputProxy.new rate, self, i }
  @channels = @channels.to_da
end

- (Object) output_specs



14
15
16
# File 'lib/scruby/ugens/multi_out.rb', line 14

def output_specs
  channels.output_specs.flatten
end