Jump to content

FaustWorkshop2014: Difference between revisions

From CCRMA Wiki
Rmichon (talk | contribs)
Rmichon (talk | contribs)
Line 2: Line 2:


Optional textbook to go further: http://www.amazon.com/Physical-Audio-Signal-Processing-Instruments/dp/0974560723
Optional textbook to go further: http://www.amazon.com/Physical-Audio-Signal-Processing-Instruments/dp/0974560723
=== Simple Sine Oscillator Synthesizer ===


<pre style="white-space: pre-wrap;  
<pre style="white-space: pre-wrap;  
Line 8: Line 10:
white-space: -o-pre-wrap;  
white-space: -o-pre-wrap;  
word-wrap: break-word;">
word-wrap: break-word;">
import("music.lib");
import("music.lib");
import("filter.lib");
import("filter.lib");

Revision as of 15:37, 8 July 2014

Day 1

Optional textbook to go further: http://www.amazon.com/Physical-Audio-Signal-Processing-Instruments/dp/0974560723

Simple Sine Oscillator Synthesizer

import("music.lib");
import("filter.lib");

g = hslider("myParameter",0,0,1,0.01);
freq = hslider("frequency",440,50,1000,0.1);

myOsc(frequency,gain) = osc(frequency)*(smoothGain) 
with{
	smoothGain = gain : smooth(0.999);
};

process = myOsc(freq,g) ;