pub enum Command {
Check {
input: Input,
json: bool,
},
Fmt {
input: Input,
write: bool,
check: bool,
width: Option<String>,
normalize: bool,
},
Info {
input: Input,
json: bool,
},
Render {
input: Input,
output: String,
rate: Option<String>,
loops: Option<String>,
eq: Option<String>,
fade: Option<String>,
lufs: Option<String>,
stems: Option<String>,
report: bool,
json: bool,
vgm_gzip: bool,
},
Build {
input: Input,
output: String,
json: bool,
max_size: Option<String>,
inline: Option<String>,
},
Spec,
Synths {
json: bool,
},
Library {
library: Option<String>,
json: bool,
tones: Vec<String>,
check: Option<String>,
},
Dx7 {
file: String,
voice: Option<String>,
list: bool,
name: Option<String>,
},
Tone {
category: String,
file: Option<String>,
synth: Option<String>,
output: Option<String>,
json: bool,
alias: bool,
reference: Option<String>,
ref_from: Option<String>,
ref_to: Option<String>,
ref_release: Option<String>,
ref_note: Option<String>,
},
Play {
input: Input,
track: Option<String>,
from: Option<String>,
looping: bool,
loops: Option<String>,
buffer: Option<String>,
watch: bool,
watch_interval: Option<String>,
},
}Expand description
pikopiko のサブコマンド。
Variants§
Check
Check the grammar and print diagnostics
Fmt
Tidy whitespace and wrap long lines (the song’s output never changes)
Fields
Info
Print the track count, duration, note range and more
Render
Write a WAV file (16-bit stereo)
Fields
eq: Option<String>Output EQ applied before writing (famicom, small-speaker, subsonic, lowcut:150, peak:2500:-4, … joined with ,)
lufs: Option<String>Gain the whole render to a target integrated loudness in LUFS (-40 to -5; peaks stay under -1 dBFS)
stems: Option<String>Also write one WAV per track into DIR (<name>_<track>.wav, through the same master processing)
Build
Convert to the event binary and print the size breakdown
Fields
Spec
Print the MML grammar specification (for generative AI)
Synths
List the synths with their tones, parameters and options
Library
List the tones of the built-in tone libraries (#include “@va/bass”)
Fields
Dx7
Convert a Yamaha DX7 patch (SysEx) to a va @15 tone (MML macro lines)
Fields
Tone
Play one timbre with the audition phrase of a category and measure it
Fields
category: StringCategory (lead, pluck, pad, chord, bell, keys, vocal, strings, guitar, bass, kick, snare, hat, crash, tom, fx)
Play
Play it now
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand