voicemeeter_api_ruby 4.6.0 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -8
- data/lib/voicemeeter/base.rb +3 -3
- data/lib/voicemeeter/device.rb +1 -1
- data/lib/voicemeeter/event.rb +1 -1
- data/lib/voicemeeter/iremote.rb +1 -1
- data/lib/voicemeeter/kinds.rb +7 -1
- data/lib/voicemeeter/midi.rb +1 -1
- data/lib/voicemeeter/mixin.rb +19 -8
- data/lib/voicemeeter/strip.rb +4 -1
- data/lib/voicemeeter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239598e09c64eec66267e8e9858e5dd73a105849c25853dc0135e0f519765ea9
|
4
|
+
data.tar.gz: 85197e57ca02c6101316657c4ae5bead86868292da33bac04dd7e6e50cb03329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513f5db541020e4e51247718821e522944bef450e3f757002d7787c072e7d5938a72b8e1ec34d4e824acae330b5c356dc727f02d4acb8782fbfffc7e681377f9
|
7
|
+
data.tar.gz: addb2cd633eaa31bfe80775016bef56dc8521c489ebe46ff9feb63b4d9183bf0fddbbbff6831092de3bf5f8a3f2d1909db41def8a5d22856e7cd49b64fab8bda
|
data/README.md
CHANGED
@@ -25,14 +25,13 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
|
25
25
|
|
26
26
|
### Bundler
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
```
|
29
|
+
bundle add 'voicemeeter_api_ruby'
|
30
|
+
bundle install
|
31
|
+
```
|
31
32
|
|
32
33
|
### Gem
|
33
34
|
|
34
|
-
Install voicemeeter_api_ruby gem from your console
|
35
|
-
|
36
35
|
`gem install 'voicemeeter_api_ruby'`
|
37
36
|
|
38
37
|
## `Use`
|
@@ -257,6 +256,10 @@ puts vm.strip[0].device.name
|
|
257
256
|
vm.bus[0].device.asio = "Audient USB Audio ASIO Driver"
|
258
257
|
```
|
259
258
|
|
259
|
+
strip|bus device parameters are defined for physical channels only.
|
260
|
+
|
261
|
+
name, sr are read only. wdm, ks, mme, asio are write only.
|
262
|
+
|
260
263
|
### Macrobuttons
|
261
264
|
|
262
265
|
Three modes defined: state, stateonly and trigger.
|
@@ -496,9 +499,9 @@ Or add, remove an array of events.
|
|
496
499
|
|
497
500
|
The following methods are available:
|
498
501
|
|
499
|
-
- `add()`
|
500
|
-
- `remove()`
|
501
|
-
- `get
|
502
|
+
- `add(events)`
|
503
|
+
- `remove(events)`
|
504
|
+
- `get`
|
502
505
|
|
503
506
|
example:
|
504
507
|
|
data/lib/voicemeeter/base.rb
CHANGED
@@ -46,13 +46,13 @@ module Voicemeeter
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def to_s
|
49
|
-
"Voicemeeter #{@kind
|
49
|
+
"Voicemeeter #{@kind}"
|
50
50
|
end
|
51
51
|
|
52
52
|
def login
|
53
53
|
@@cdll.call(:login)
|
54
54
|
clear_polling
|
55
|
-
LOGGER.info("Logged into
|
55
|
+
LOGGER.info("Logged into #{self}")
|
56
56
|
rescue CAPIErrors => error
|
57
57
|
case
|
58
58
|
when error.value == 1
|
@@ -67,7 +67,7 @@ module Voicemeeter
|
|
67
67
|
clear_polling
|
68
68
|
sleep(0.1)
|
69
69
|
@@cdll.call(:logout)
|
70
|
-
LOGGER.info("Logged out of
|
70
|
+
LOGGER.info("Logged out of #{self}")
|
71
71
|
end
|
72
72
|
|
73
73
|
def type
|
data/lib/voicemeeter/device.rb
CHANGED
data/lib/voicemeeter/event.rb
CHANGED
data/lib/voicemeeter/iremote.rb
CHANGED
data/lib/voicemeeter/kinds.rb
CHANGED
data/lib/voicemeeter/midi.rb
CHANGED
data/lib/voicemeeter/mixin.rb
CHANGED
@@ -40,14 +40,25 @@ module Voicemeeter
|
|
40
40
|
module Xy
|
41
41
|
include Channel_Meta_Functions
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
43
|
+
module Pan
|
44
|
+
def initialize(remote, i)
|
45
|
+
super
|
46
|
+
self.make_accessor_float :pan_x, :pan_y
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
module Color
|
51
|
+
def initialize(remote, i)
|
52
|
+
super
|
53
|
+
self.make_accessor_float :color_x, :color_y
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
module Fx
|
58
|
+
def initialize(remote, i)
|
59
|
+
super
|
60
|
+
self.make_accessor_float :fx_x, :fx_y
|
61
|
+
end
|
51
62
|
end
|
52
63
|
end
|
53
64
|
|
data/lib/voicemeeter/strip.rb
CHANGED
@@ -39,7 +39,9 @@ module Voicemeeter
|
|
39
39
|
end
|
40
40
|
|
41
41
|
class PhysicalStrip < Strip
|
42
|
-
include Mixin::Xy
|
42
|
+
include Mixin::Xy::Pan
|
43
|
+
include Mixin::Xy::Color
|
44
|
+
include Mixin::Xy::Fx
|
43
45
|
include Mixin::Fx
|
44
46
|
|
45
47
|
def initialize(remote, i)
|
@@ -51,6 +53,7 @@ module Voicemeeter
|
|
51
53
|
end
|
52
54
|
|
53
55
|
class VirtualStrip < Strip
|
56
|
+
include Mixin::Xy::Pan
|
54
57
|
include Mixin::Apps
|
55
58
|
|
56
59
|
def initialize(remote, i)
|
data/lib/voicemeeter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voicemeeter_api_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- onyx_online
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|