Class: Voicemeeter::Patch::Base

Inherits:
Object
  • Object
show all
Extended by:
MetaFunctions
Includes:
IRemote
Defined in:
lib/voicemeeter/patch.rb

Overview

Base class for Patch

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IRemote

#apply, #to_s

Methods included from Logging

#logger

Constructor Details

#initialize(remote) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
17
18
19
20
# File 'lib/voicemeeter/patch.rb', line 11

def initialize(remote)
  super
  asio_in, asio_out = remote.kind.asio
  @asio = (0...asio_in).map { PatchAsioIn.new(remote, _1) }
  %i[A2 A3 A4 A5].each do |param|
    instance_variable_set("@#{param}", (0...asio_out).map { PatchAsioOut.new(remote, _1, param) })
  end
  @composite = (0...8).map { PatchComposite.new(remote, _1) }
  @insert = (0...remote.kind.insert).map { PatchInsert.new(remote, _1) }
end

Instance Attribute Details

#A2Object (readonly)

Returns the value of attribute A2.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def A2
  @A2
end

#A3Object (readonly)

Returns the value of attribute A3.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def A3
  @A3
end

#A4Object (readonly)

Returns the value of attribute A4.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def A4
  @A4
end

#A5Object (readonly)

Returns the value of attribute A5.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def A5
  @A5
end

#asioObject (readonly)

Returns the value of attribute asio.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def asio
  @asio
end

#compositeObject (readonly)

Returns the value of attribute composite.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def composite
  @composite
end

#insertObject (readonly)

Returns the value of attribute insert.



8
9
10
# File 'lib/voicemeeter/patch.rb', line 8

def insert
  @insert
end