Class: Voicemeeter::Patch::Base
- Inherits:
-
Object
- Object
- Voicemeeter::Patch::Base
- Extended by:
- MetaFunctions
- Includes:
- IRemote
- Defined in:
- lib/voicemeeter/patch.rb
Overview
Base class for Patch
Instance Attribute Summary collapse
-
#A2 ⇒ Object
readonly
Returns the value of attribute A2.
-
#A3 ⇒ Object
readonly
Returns the value of attribute A3.
-
#A4 ⇒ Object
readonly
Returns the value of attribute A4.
-
#A5 ⇒ Object
readonly
Returns the value of attribute A5.
-
#asio ⇒ Object
readonly
Returns the value of attribute asio.
-
#composite ⇒ Object
readonly
Returns the value of attribute composite.
-
#insert ⇒ Object
readonly
Returns the value of attribute insert.
Instance Method Summary collapse
-
#initialize(remote) ⇒ Base
constructor
A new instance of Base.
Methods included from IRemote
Methods included from Logging
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
#A2 ⇒ Object (readonly)
Returns the value of attribute A2.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def A2 @A2 end |
#A3 ⇒ Object (readonly)
Returns the value of attribute A3.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def A3 @A3 end |
#A4 ⇒ Object (readonly)
Returns the value of attribute A4.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def A4 @A4 end |
#A5 ⇒ Object (readonly)
Returns the value of attribute A5.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def A5 @A5 end |
#asio ⇒ Object (readonly)
Returns the value of attribute asio.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def asio @asio end |
#composite ⇒ Object (readonly)
Returns the value of attribute composite.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def composite @composite end |
#insert ⇒ Object (readonly)
Returns the value of attribute insert.
8 9 10 |
# File 'lib/voicemeeter/patch.rb', line 8 def insert @insert end |