mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-14 10:49:20 +01:00
chore: renamed metavars
This commit is contained in:
parent
d5742f746b
commit
a337852dac
2 changed files with 17 additions and 17 deletions
10
README.md
10
README.md
|
@ -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
|
||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue