[music-dsp] Re: Blurps and Chirps when changing filter parameters

Julius Smith jos at ccrma.stanford.edu
Fri May 8 21:34:05 EDT 2009


This is kind of neat.  It's a Faust program that uses the 
second-order normalized-ladder-filter as an oscillator in a basic FM 
configuration. Try that with your other filter structures! - Julius

// Faust source toscr.dsp:

import("osc.lib");

amp = hslider("[0] gain [unit:dB]",0,-60,40,0.1) : db2linear;
fc = hslider("[1] carrier frequency",220,0,10000,1) : smooth(0.999);
fm = hslider("[2] modulation frequency",220,0,10000,1) : smooth(0.999);
beta = hslider("[3] FM index",440,0,10,0.001) : smooth(0.999);

process = amp*oscr(fc*(1+beta*oscr(fm)));

// Example usage:
// faust2coreaudio toscr.dsp
// open toscr.app



Julius O. Smith III <jos at ccrma.stanford.edu>
Prof. of Music and Assoc. Prof. (by courtesy) of Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/  



More information about the music-dsp mailing list