#music #dsp #synthesis

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

#35 in #synthesis

Download history 6/week @ 2024-10-31 3/week @ 2024-11-07 1/week @ 2024-11-14 3/week @ 2024-11-21 2/week @ 2024-11-28 29/week @ 2024-12-05 56/week @ 2024-12-12 4/week @ 2024-12-19 2/week @ 2025-01-02 19/week @ 2025-01-09 17/week @ 2025-01-16 9/week @ 2025-01-23 12/week @ 2025-01-30 40/week @ 2025-02-06 38/week @ 2025-02-13

102 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.2MB
~20K SLoC