add support for midi devices.

midi example added.

minor version bump
This commit is contained in:
onyx-and-iris
2022-07-24 14:38:16 +01:00
parent 43d4496378
commit 9d446ea17d
11 changed files with 166 additions and 3 deletions

View File

@@ -519,6 +519,25 @@ vm.option.delay[4].set(30)
i, from 0 up to 4.
### Midi
The following properties are available:
- `channel`: int, returns the midi channel
- `current`: int, returns the current (or most recently pressed) key
The following methods are available:
- `get(key)`: int, returns most recent velocity value for a key
example:
```python
print(vm.midi.get(12))
```
get() may return None if no value for requested key in midi cache
### Multiple parameters
- `apply`