pub struct AnalyzeArgs {
pub stem: PathBuf,
pub bpm: Bpm,
pub bpm_exact: bool,
pub notes: Option<PathBuf>,
pub profile: Option<Profile>,
pub out: Option<PathBuf>,
pub force: bool,
pub synth: Option<Synth>,
}Expand description
Arguments of analyze.
Fields§
§stem: PathBufThe audio stem: WAV, AIFF, FLAC, MP3, AAC or M4A.
bpm: BpmThe tempo of the stem in beats per minute, 4 to 1000. It is refined from the stem, 2.91 % below to 3.09 % above it, unless –bpm-exact is given
bpm_exact: boolUse –bpm as it is, without refining it from the stem
notes: Option<PathBuf>A MIDI file with the stem’s notes, instead of transcribing the stem; the f0 track still reads the stem unless the notes play chords. Its tempo must match –bpm or the refined tempo
profile: Option<Profile>Decode with the settings of this kind of stem instead of the detected ones
out: Option<PathBuf>The output folder [default: a folder named after the stem, next to it]
force: boolReplace files in the output folder that this stem’s report does not own: a report or notes of another stem, a report of the same name with other content, a file this tool did not write, or a spectrogram.png without a report
synth: Option<Synth>The target synth that the report names [default: vital]
Implementations§
Source§impl AnalyzeArgs
impl AnalyzeArgs
Sourcepub fn synth(&self) -> Result<Synth, SynthError>
pub fn synth(&self) -> Result<Synth, SynthError>
Resolves the target synth: the flag, else Vital, and only a synth with an adapter.
§Errors
SynthError::NotBuilt for a synth without an adapter.
Trait Implementations§
Source§impl Args for AnalyzeArgs
impl Args for AnalyzeArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for AnalyzeArgs
impl Debug for AnalyzeArgs
Source§impl FromArgMatches for AnalyzeArgs
impl FromArgMatches for AnalyzeArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AnalyzeArgs
impl RefUnwindSafe for AnalyzeArgs
impl Send for AnalyzeArgs
impl Sync for AnalyzeArgs
impl Unpin for AnalyzeArgs
impl UnsafeUnpin for AnalyzeArgs
impl UnwindSafe for AnalyzeArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more