audio-midi-shell
Cross-platform wrapper around tinyaudio and midir for prototyping audio algorithms as standalone applications.
It opens the default audio output device with a given sample rate and buffer size. MIDI messages are received from all detected MIDI inputs ports. The process chunk size can be set independently from the buffer size.
Usage
use ;
const SAMPLE_RATE: u32 = 44100;
const BUFFER_SIZE: usize = 1024;
const PROCESS_CHUNK_SIZE: usize = 16;
!
;
Example
The examples directory contains a simple monophonic synthesizer playing a sine wave for each received note.
cargo run --example sine_synth
License
Published under the MIT license. Any contribution to this project must be provided under the same license conditions.
Author: Oliver Rockstedt info@sourcebox.de