\\ some simple amplitude and db examples, some of these taken from sc docs directly \\ 0 db is full sc volume... \\ convert -20 db to raw amplitude, and print out -20.dbamp.postln 0.ampdb.postln \\ will get negative infinity, since is exponential 0.dbamp.postln \\ note gives amp of one \\ sin sweeps from -3 db to -40 db { FSinOsc.ar(800, Line.kr(-3,-40,10).dbamp) }.scope; -3.dbamp.postln 0.707946 -40.dbamp.postln 0.01 \\ now listen to a linear amplitude fade using those values { FSinOsc.ar(800, Line.kr(0.707946, 0.01, 10)) }.scope; \\ remember: \\ plot(ugenGraphFunction, duration, name, bounds) \\ plot a linear db as amp, show exponential conversion ( { (Line.ar(-3 ,-40 ,0.01).dbamp) }.plot ) \\ plot a linear amp as db, show conversion to linear db \\ remember: \\ plot(ugenGraphFunction, duration, name, bounds) Synth.plot ( { Line.ar( 0.1, 0.9999, 0.005).ampdb}, 0.01, "amp->db" );