Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > f1370d9b17597db213c06ccf33274692 > files > 108

faust-0.9.10-5mdv2010.1.x86_64.rpm

declare name 		"osci";
declare version 	"1.0";
declare author 		"Grame";
declare license 	"BSD";
declare copyright 	"(c)GRAME 2009";

//-----------------------------------------------
// 			Sinusoidal Oscillator
//		(with linear interpolation)
//-----------------------------------------------

import("music.lib");

smooth(c)       = *(1-c) : +~*(c);
vol             = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq            = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);


process 		= vgroup("Oscillator", osci(freq) * vol);