fmbell - guyjbrown/bleepmanual GitHub Wiki

FM Bell (fmbell)

Simple example of FM synthesis to make a bell sound

Author: Guy Brown

Parameters

parameter minimum maximum default description
timbre 0 1 0.4 Controls the harmonicity of the bell sound
attack 0 5 0 attack time
decay 0 5 1.2 decay time
sustain 0 1 0 sustain level
release 0 5 0.7 release time
volume 0 1 0.28 Controls the overall volume of the bell sound

WebAudio graph

graph TD;
   modulator_id(["SIN-OSC:modulator"])-->gain_id("VCA:gain");
   gain_id("VCA:gain")-->carrier_id(["SIN-OSC:carrier"]);
   carrier_id(["SIN-OSC:carrier"])-->vca_id("VCA:vca");
   vca_id("VCA:vca")-->audio_id("audio");
   env_id[/"ADSR:env"\]-.->vca_id("VCA:vca");

Examples