audio-processor-standalone
Augmented Audio: Audio Processor Standalone
This is part of https://github.com/yamadapc/augmented-audio. Please review its goals. This
crate builds upon audio_processor_traits::AudioProcessor
.
Provides a stand-alone audio-processor runner for AudioProcessor
implementations.
Navigating the documentation
- Look at exported functions & macros; the structs/traits are for more advanced/internal usage.
- Start with [
audio_processor_main
] and [audio_processor_main_with_midi
] - There are plenty examples in the
augmented-audio
repository
The gist of it is:
- Implement
AudioProcessor
orSimpleAudioProcessor
fromaudio_processor_traits
- Call
audio_processor_main(processor)
- You now have a CLI for rendering online (CPAL, use your mic) or offline (pass a file through your processor & write
the results to a
.wav
)
A VST may also be generated through the standalone_vst
module and by enabling the vst
feature flag.
Example usage
Declare the AudioProcessor
:
use ;
Declare the main function:
Usage of the command-line
audio-processor-standalone
USAGE:
my-crate
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --input-file <INPUT_PATH> An input audio file to process
--midi-input-file <MIDI_INPUT_FILE> If specified, this MIDI file will be passed through the processor
-o, --output-file <OUTPUT_PATH> If specified, will render offline into this file
License: MIT