mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
fx class implemented
This commit is contained in:
parent
2e69321aca
commit
37e8f67573
39
lib/voicemeeter/fx.rb
Normal file
39
lib/voicemeeter/fx.rb
Normal file
@ -0,0 +1,39 @@
|
||||
require_relative "iremote"
|
||||
|
||||
module Voicemeeter
|
||||
class Fx < IRemote
|
||||
attr_reader :reverb, :delay
|
||||
|
||||
def initialize(remote)
|
||||
super
|
||||
@reverb = FxReverb.new(remote)
|
||||
@delay = FxDelay.new(remote)
|
||||
end
|
||||
|
||||
def identifier
|
||||
:fx
|
||||
end
|
||||
end
|
||||
|
||||
class FxReverb < IRemote
|
||||
def initialize(remote)
|
||||
super
|
||||
make_accessor_bool :on, :ab
|
||||
end
|
||||
|
||||
def identifier
|
||||
"fx.reverb"
|
||||
end
|
||||
end
|
||||
|
||||
class FxDelay < IRemote
|
||||
def initialize(remote)
|
||||
super
|
||||
make_accessor_bool :on, :ab
|
||||
end
|
||||
|
||||
def identifier
|
||||
"fx.delay"
|
||||
end
|
||||
end
|
||||
end
|
@ -8,6 +8,7 @@ require_relative "vban"
|
||||
require_relative "command"
|
||||
require_relative "recorder"
|
||||
require_relative "device"
|
||||
require_relative "fx"
|
||||
require_relative "configs"
|
||||
|
||||
module Voicemeeter
|
||||
@ -24,6 +25,7 @@ module Voicemeeter
|
||||
@command = Command.new(self)
|
||||
@recorder = Recorder::Recorder.new(self)
|
||||
@device = Device.new(self)
|
||||
@fx = Fx.new(self)
|
||||
end
|
||||
|
||||
def configs
|
||||
@ -48,7 +50,7 @@ module Voicemeeter
|
||||
end
|
||||
|
||||
class RemotePotato < Remote
|
||||
attr_reader :strip, :bus, :button, :vban, :command, :device, :recorder
|
||||
attr_reader :strip, :bus, :button, :vban, :command, :device, :recorder, :fx
|
||||
end
|
||||
|
||||
public
|
||||
|
Loading…
Reference in New Issue
Block a user