Class: Voicemeeter::Strip::Base
- Inherits:
-
Object
- Object
- Voicemeeter::Strip::Base
- Extended by:
- MetaFunctions
- Includes:
- IRemote, Mixins::Fades, Mixins::Outputs
- Defined in:
- lib/voicemeeter/strip.rb
Overview
Base class for Strip
Direct Known Subclasses
Instance Attribute Summary collapse
-
#gainlayer ⇒ Object
readonly
Returns the value of attribute gainlayer.
-
#levels ⇒ Object
readonly
Returns the value of attribute levels.
Class Method Summary collapse
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(remote, i) ⇒ Base
constructor
A new instance of Base.
Methods included from Mixins::Fades
Methods included from Mixins::Outputs
Methods included from IRemote
Methods included from Logging
Constructor Details
#initialize(remote, i) ⇒ Base
Returns a new instance of Base.
20 21 22 23 24 25 |
# File 'lib/voicemeeter/strip.rb', line 20 def initialize(remote, i) super make_attr_outputs(*remote.kind.outs) @gainlayer = (0...8).map { GainLayer.new(remote, i, _1) } @levels = StripLevels.new(remote, i) end |
Instance Attribute Details
#gainlayer ⇒ Object (readonly)
Returns the value of attribute gainlayer.
10 11 12 |
# File 'lib/voicemeeter/strip.rb', line 10 def gainlayer @gainlayer end |
#levels ⇒ Object (readonly)
Returns the value of attribute levels.
10 11 12 |
# File 'lib/voicemeeter/strip.rb', line 10 def levels @levels end |
Class Method Details
.make(remote, i) ⇒ Object
16 17 18 |
# File 'lib/voicemeeter/strip.rb', line 16 def self.make(remote, i) (i < remote.kind.phys_in) ? PhysicalStrip.new(remote, i) : VirtualStrip.new(remote, i) end |
Instance Method Details
#identifier ⇒ Object
27 28 29 |
# File 'lib/voicemeeter/strip.rb', line 27 def identifier "strip[#{@index}]" end |