~ubuntu-branches/ubuntu/feisty/faust/feisty

« back to all changes in this revision

Viewing changes to examples/osci.dsp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Lang
  • Date: 2006-10-09 11:05:30 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061009110530-zvktdvpq5zewdxso
Tags: 0.9.8-1
* New upstream release.
* Upgrade Standards-Version to 3.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
declare name            "osci";
 
2
declare version         "1.0";
 
3
declare author          "Grame";
 
4
declare license         "BSD";
 
5
declare copyright       "� GRAME 2006";
 
6
 
1
7
//-----------------------------------------------
2
 
//                      Sinusoidal Oscillator 
 
8
//                      Sinusoidal Oscillator
3
9
//              (with linear interpolation)
4
10
//-----------------------------------------------
5
11
 
 
12
import("music.lib");
 
13
 
6
14
smooth(c)               = *(1-c) : +~*(c);
7
15
vol                     = hslider("volume (db)", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
8
16
freq                    = hslider("freq", 1000, 0, 24000, 0.1);