1
0
Fork 0
mirror of https://github.com/alemidev/scope-tui.git synced 2024-11-23 14:14:48 +01:00

chore: renamed metavars

This commit is contained in:
əlemi 2022-12-26 03:32:52 +01:00
parent d5742f746b
commit a337852dac
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E
2 changed files with 17 additions and 17 deletions

View file

@ -19,13 +19,13 @@ Arguments:
[DEVICE] Audio device to attach to
Options:
-b, --buffer <BUFFER> Size of audio buffer, and width of scope [default: 8192]
-r, --range <RANGE> Max value, positive and negative, on amplitude scale [default: 20000]
-b, --buffer <SIZE> Size of audio buffer, and width of scope [default: 8192]
-r, --range <SIZE> Max value, positive and negative, on amplitude scale [default: 20000]
--scatter Use vintage looking scatter mode instead of line mode
--vectorscope Combine left and right channels into vectorscope view
--tune <TUNE> Tune buffer size to be in tune with given note (overrides buffer option)
--sample-rate <SAMPLE_RATE> Sample rate to use [default: 44100]
--server-buffer <SERVER_BUFFER> Pulseaudio server buffer size, in block number [default: 32]
--tune <NOTE> Tune buffer size to be in tune with given note (overrides buffer option)
--sample-rate <HZ> Sample rate to use [default: 44100]
--server-buffer <N> Pulseaudio server buffer size, in block number [default: 32]
--no-reference Don't draw reference line
--no-braille Don't use braille dots for drawing lines
-h, --help Print help information

View file

@ -34,12 +34,12 @@ struct Args {
device: Option<String>,
/// Size of audio buffer, and width of scope
#[arg(short, long, default_value_t = 8192)]
#[arg(short, long, value_name = "SIZE", default_value_t = 8192)]
buffer: u32,
/// Max value, positive and negative, on amplitude scale
#[arg(short, long, default_value_t = 20000)]
range: u32,
#[arg(short, long, value_name = "SIZE", default_value_t = 20000)]
range: u32, // TODO counterintuitive, improve this
/// Use vintage looking scatter mode instead of line mode
#[arg(long, default_value_t = false)]
@ -50,15 +50,15 @@ struct Args {
vectorscope: bool,
/// Tune buffer size to be in tune with given note (overrides buffer option)
#[arg(long)]
#[arg(long, value_name = "NOTE")]
tune: Option<Note>,
/// Sample rate to use
#[arg(long, default_value_t = 44100)]
#[arg(long, value_name = "HZ", default_value_t = 44100)]
sample_rate: u32,
/// Pulseaudio server buffer size, in block number
#[arg(long, default_value_t = 32)]
#[arg(long, value_name = "N", default_value_t = 32)]
server_buffer: u32,
/// Don't draw reference line