StripMixins removed

This commit is contained in:
onyx-and-iris 2023-07-09 19:43:26 +01:00
parent 6cb7ae020e
commit ccd7e93e94

View File

@ -1,86 +1,81 @@
module Voicemeeter module Voicemeeter
module Mixins module Mixins
module StripMixins module Fades
module Fades def fadeto(target, time)
def fadeto(target, time) self.setter("FadeTo", "(#{target}, #{time})")
self.setter("FadeTo", "(#{target}, #{time})") sleep(@remote.delay)
sleep(@remote.delay)
end
def fadeby(change, time)
self.setter("FadeBy", "(#{change}, #{time})")
sleep(@remote.delay)
end
end end
module Apps def fadeby(change, time)
def appgain(name, gain) self.setter("FadeBy", "(#{change}, #{time})")
self.setter("AppGain", "(\"#{name}\", #{gain})") sleep(@remote.delay)
end end
end
def appmute(name, mute) module Return
self.setter("AppMute", "(\"#{name}\", #{mute ? 1 : 0})") include Meta_Functions
end
def initialize(remote, i)
super
make_accessor_float :returnreverb, :returndelay, :returnfx1, :returnfx2
end
end
module Apps
def appgain(name, gain)
self.setter("AppGain", "(\"#{name}\", #{gain})")
end end
module Outputs def appmute(name, mute)
def initialize(*args) self.setter("AppMute", "(\"#{name}\", #{mute ? 1 : 0})")
end
end
module Outputs
def initialize(*args)
super
remote, *rem = args
num_A, num_B = remote.kind.outs
channels =
(1..(num_A + num_B)).map do |i|
i <= num_A ? "A#{i}" : "B#{i - num_A}"
end
make_accessor_bool *channels
end
end
module Xy
include Meta_Functions
module Pan
def initialize(remote, i)
super super
remote, *rem = args make_accessor_float :pan_x, :pan_y
num_A, num_B = remote.kind.outs
channels =
(1..(num_A + num_B)).map do |i|
i <= num_A ? "A#{i}" : "B#{i - num_A}"
end
make_accessor_bool *channels
end end
end end
module Xy module Color
include Meta_Functions def initialize(remote, i)
super
module Pan make_accessor_float :color_x, :color_y
def initialize(remote, i)
super
make_accessor_float :pan_x, :pan_y
end
end
module Color
def initialize(remote, i)
super
make_accessor_float :color_x, :color_y
end
end
module Fx
def initialize(remote, i)
super
make_accessor_float :fx_x, :fx_y
end
end end
end end
module Fx module Fx
include Meta_Functions
def initialize(remote, i) def initialize(remote, i)
super super
make_accessor_float :reverb, :delay, :fx1, :fx2 make_accessor_float :fx_x, :fx_y
make_accessor_bool :postreverb, :postdelay, :postfx1, :postfx2
end end
end end
end
module Return module Fx
include Meta_Functions include Meta_Functions
def initialize(remote, i) def initialize(remote, i)
super super
make_accessor_float :returnreverb, make_accessor_float :reverb, :delay, :fx1, :fx2
:returndelay, make_accessor_bool :postreverb, :postdelay, :postfx1, :postfx2
:returnfx1,
:returnfx2
end
end end
end end
end end