Time Sequence

Data Types ››
Parent Previous Next

Relative TSEQ

Sometimes it is very useful to have time values relative to another audio signal. In such cases, define a relative time sequence as follows:

[x;][y]

Example 1

The amplitude of a tone is scaled with a TSEQ, 0 at t=0, .7 at t=250ms, .3 at t=500ms, and 1 at t=1000ms. The multiplication operation with a TSEQ involves linear interpolation between specified time points.

AUX> x = tone(500,1000);

AUX> ts = [0 250 500 1000][0 .7 .3 1];

AUX> y = ts * x;

Example 2

The same TSEQ as above but the audio signal with a differation duration. Is this what you want?

AUX> x = tone(500,800);

AUX> ts = [0 250 500 1000][0 .7 .3 1];

AUX> y = ts * x;

Example 3

If you wanted to scale the audio with the same relative time course as Example 1, then go with a relative TSEQ.

AUX> x = tone(500,800);

AUX> ts = [0 .25 .5 1;][0 .7 .3 1];

AUX> y = ts * x;

Example 4

To adjust the amplitude of the audio signal with a desired time course in terms of dB, use the @ operator:

AUX> x = tone(500,800);

AUX> ts = [0 .25 .5 1;][-100 -3 -10 0];

AUX> y = x @ ts;





Created with the Personal Edition of HelpNDoc: Full-featured Help generator