From c851cb5abee68c3f4de825f46311171ae372aca0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 1 Mar 2026 21:11:48 +0000 Subject: [PATCH] add Recorder section to README --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index eb2b47c..42ff6bc 100644 --- a/README.md +++ b/README.md @@ -349,6 +349,40 @@ vban.strip[0].fadeto(-10.3, 1000) vban.bus[3].fadeby(-5.6, 500) ``` +### Recorder + +The following methods are available + +- `play()` +- `stop()` +- `pause()` +- `record()` +- `ff()` +- `rew()` +- `load(filepath)`: raw string +- `goto(time_string)`: time string in format `hh:mm:ss` + +The following properties are available + +- `samplerate`: int, (22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000) +- `bitresolution`: int, (8, 16, 24, 32) +- `channel`: int, from 1 to 8 +- `kbps`: int, (32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320) +- `gain`: float, from -60.0 to 12.0 + +example: + +```python +vban.recorder.play() +vban.recorder.stop() + +# filepath as raw string +vban.recorder.load(r'C:\music\mytune.mp3') + +# set the goto time to 1m 30s +vban.recorder.goto('00:01:30') +``` + ### Command Certain 'special' commands are defined by the API as performing actions rather than setting values. The following methods are available: