Module: Voicemeeter::Mixin::Fades

Included in:
Bus, Strip
Defined in:
lib/voicemeeter/mixin.rb

Instance Method Summary collapse

Instance Method Details

#fadeby(change, time) ⇒ Object



9
10
11
12
# File 'lib/voicemeeter/mixin.rb', line 9

def fadeby(change, time)
  self.setter("FadeBy", "(#{change}, #{time})")
  sleep(@remote.delay)
end

#fadeto(target, time) ⇒ Object



4
5
6
7
# File 'lib/voicemeeter/mixin.rb', line 4

def fadeto(target, time)
  self.setter("FadeTo", "(#{target}, #{time})")
  sleep(@remote.delay)
end