#music #synthesis #dsp

instrument

A foundational type for performable musical instruments. Converts discrete note events to a continuous signal of amplitude and frequency over N number of voices. Useful for instruments such as synthesizers or samplers.

2 unstable releases

Uses old Rust 2015

0.2.0 Aug 1, 2016
0.1.0 Jun 7, 2016

#33 in #synthesis

Download history 26/week @ 2024-03-16 23/week @ 2024-03-23 69/week @ 2024-03-30 23/week @ 2024-04-06 17/week @ 2024-04-13 19/week @ 2024-04-20 14/week @ 2024-04-27 10/week @ 2024-05-04 19/week @ 2024-05-11 25/week @ 2024-05-18 19/week @ 2024-05-25 21/week @ 2024-06-01 13/week @ 2024-06-08 20/week @ 2024-06-15 26/week @ 2024-06-22 5/week @ 2024-06-29

68 downloads per month
Used in 3 crates (2 directly)

MIT license

70KB
1.5K SLoC

instrument Build Status Crates.io Crates.io

A foundational type for performable musical instruments.

The Instrument type takes discrete note_on and note_off events as inputs and returns a Frames iterator yielding a amplitude/frequency value pair per Voice per Frame as an output.

Instrument supports multiple note handling Modes including n voice polyphony and n voice unison monophony (both retrigger and legato). Note-on effects such as detuning and legato are also supported.

The instrument crate is used by:


lib.rs:

A crate for sharing various software instrument abstractions.

See the Instrument type.

Dependencies

~0.6–1.1MB
~19K SLoC