mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 23:00:48 +00:00
40 lines
588 B
Ruby
40 lines
588 B
Ruby
|
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
|