Timbre.js

JavaScript Library for Objective Sound Programming
system requirements: Chrome 14- or Firefox 4-

Dac

Audio output

Constructor

dac = T("dac", ...);

// ...   Input objects which will be processed


dac = T("pandac", pan=0.5, ...);
// pan  [Object]
// ...  Input objects which will be processed
        

Properties

dac.pan  [Object] 
        

Methods

        

Events

        

Example: Panning

synth = T("saw", 880, 0.25);
dac   = T("dac", synth);
dac.pan = T("+sin", 0.5);

dac.play();
        

What is a play() method doing?

synth = T("sin", 880).play();

// In fact, the above code is the shortcut, it's the same as below.

synth = T("sin", 880);
dac = T("dac", synth);
dac.play();

synth.dac === dac; // true


// A play() method creates a T("dac") object if it is not exists,
// and appends self to it, and T("dac").play().