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

« back to all changes in this revision

Viewing changes to examples/vumeter.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            "vumeter";
 
2
declare version         "1.0";
 
3
declare author          "Grame";
 
4
declare license         "BSD";
 
5
declare copyright       "� GRAME 2006";
 
6
 
 
7
//-------------------------------------------------
 
8
// Simple vumeter
 
9
//-------------------------------------------------
 
10
 
 
11
import("math.lib");
 
12
 
 
13
 
 
14
vmeter(x)               = attach(x, envelop(x) : vbargraph("meter", 0, 1));
 
15
hmeter(x)               = attach(x, envelop(x) : hbargraph("meter", 0, 1));
 
16
 
 
17
envelop                 = abs : min(0.99) : max ~ -(1.0/SR);
 
18
 
 
19
process                 = vmeter;
 
 
b'\\ No newline at end of file'