Class: MusaLCEServer::Bitwig::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/bitwig/tracks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, logger:) ⇒ Track

Returns a new instance of Track.



35
36
37
38
39
40
# File 'lib/bitwig/tracks.rb', line 35

def initialize(name, logger:)
  @name = name
  @logger = logger

  @output = Musa::Extension::DynamicProxy::DynamicProxy.new
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



42
43
44
# File 'lib/bitwig/tracks.rb', line 42

def name
  @name
end

Instance Method Details

#_channel=(new_channel) ⇒ Object



48
49
50
51
# File 'lib/bitwig/tracks.rb', line 48

def _channel=(new_channel)
  @logger.info "Assigning #{new_channel} to track '#{@name}'"
  @output.receiver = new_channel.output
end

#_forget_channelObject



44
45
46
# File 'lib/bitwig/tracks.rb', line 44

def _forget_channel
  @output.receiver = nil
end

#outObject



53
54
55
# File 'lib/bitwig/tracks.rb', line 53

def out
  @output
end