Crate instrument [] [src]

A crate for sharing various software instrument abstractions.

See the Instrument type.

Reexports

pub use mode::Mode;
pub use note_freq::NoteFreq;
pub use note_freq::NoteFreqGenerator;

Modules

mode
note_freq
unit

Structs

Frames

An iterator that endlessly yields the next FramePerVoice for an Instrument.

Instrument

A performable Instrument type that converts Note events into a sequence of voices, each with their own unique amplitude and frequency per frame. This is useful for driving the playback of instrument types like synthesisers or samplers.

Voice

A single Voice. A Synth may consist of any number of Voices.

Enums

NoteState

The current state of the Voice's note playback.