#synthesis #dsp #music #instrument

archived synth

A polyphonic Synth type whose multiple oscillators generate sound via amplitude and frequency envelopes

34 releases

Uses old Rust 2015

0.11.0 Feb 12, 2017
0.10.0 Feb 26, 2016
0.9.2 Jan 10, 2016
0.9.1 Dec 28, 2015
0.2.4 Mar 26, 2015

#10 in #synthesis

Download history 92/week @ 2023-10-28 31/week @ 2023-11-04 24/week @ 2023-11-11 29/week @ 2023-11-18 96/week @ 2023-11-25 80/week @ 2023-12-02 90/week @ 2023-12-09 27/week @ 2023-12-16 91/week @ 2023-12-23 12/week @ 2023-12-30 26/week @ 2024-01-06 26/week @ 2024-01-13 54/week @ 2024-01-20 86/week @ 2024-01-27 14/week @ 2024-02-03 57/week @ 2024-02-10

213 downloads per month
Used in umpire

MIT license

115KB
2.5K SLoC

synth Build Status Crates.io Crates.io

A polyphonic Synth type whose multiple oscillators generate sound via amplitude and frequency envelopes.

Features

  • Sine, Saw, SawExp, Square, Noise and NoiseWalk waveforms.
  • Amplitude and frequency envelopes with an unlimited number of points.
  • Unlimited number of oscillators (each can have unique waveforms and amplitude and frequency envelopes).
  • Monophonic and Polyphonic modes (unlimited number of voices).
  • Simple note_on(pitch_in_hz, velocity) and note_off(pitch_in_hz) methods.
  • Per-channel amplitude and a stereo panning helper method.
  • "Stereo spread" for automatically spreading multiple voices evenly across the stereo image.
  • Per-voice portamento.
  • Per-voice detuning.
  • Multi-voice (unison) support in Mono mode.
  • Legato and Retrigger Mono modes.
  • Warbliness Oscillator builder method that uses gaussian noise to model the "warped-old-hardware-synth" sound.
synth.fill_slice(frame_slice, sample_hz),

See an example here.

Dependencies

~3.5MB
~57K SLoC