fx class implemented

This commit is contained in:
onyx-and-iris 2023-07-16 23:30:24 +01:00
parent 2e69321aca
commit 37e8f67573
2 changed files with 42 additions and 1 deletions

39
lib/voicemeeter/fx.rb Normal file
View 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

View File

@ -8,6 +8,7 @@ require_relative "vban"
require_relative "command" require_relative "command"
require_relative "recorder" require_relative "recorder"
require_relative "device" require_relative "device"
require_relative "fx"
require_relative "configs" require_relative "configs"
module Voicemeeter module Voicemeeter
@ -24,6 +25,7 @@ module Voicemeeter
@command = Command.new(self) @command = Command.new(self)
@recorder = Recorder::Recorder.new(self) @recorder = Recorder::Recorder.new(self)
@device = Device.new(self) @device = Device.new(self)
@fx = Fx.new(self)
end end
def configs def configs
@ -48,7 +50,7 @@ module Voicemeeter
end end
class RemotePotato < Remote class RemotePotato < Remote
attr_reader :strip, :bus, :button, :vban, :command, :device, :recorder attr_reader :strip, :bus, :button, :vban, :command, :device, :recorder, :fx
end end
public public