[linux-audio-dev] one-sample length impulse - HOWTO?

Frank Barknecht fbar at footils.org
Sat Jan 14 23:19:51 UTC 2006


Hallo,
Andrew Gaydenko hat gesagt: // Andrew Gaydenko wrote:

> The aim is to generate audiofile with one/few-sample-length impulse inside
> silence. Is there suitable software to do the job?

Many. Attached is a patch to do this in Pd.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 423 345 510 509 10;
#X msg 127 84 const 0 \, 0 1;
#X obj 127 62 loadbang;
#X obj 125 447 dac~;
#X text 122 34 Generate a table with 1 one and 511 zeroes;
#X text 125 324 Play it for example like this:;
#X floatatom 126 346 5 0 0 0 freq - -;
#X obj 126 391 *~ 512;
#X obj 121 276 soundfiler;
#X obj 127 112 s imp;
#X obj 128 139 table imp 512;
#X obj 125 416 tabread~ imp;
#X obj 126 367 phasor~ 0;
#X msg 121 253 write -wave \$1 imp;
#X obj 121 231 savepanel;
#X obj 121 209 b;
#X msg 121 189 save it somewhere;
#X text 239 82 set zero \, then write 1 at pos 0;
#X connect 0 0 8 0;
#X connect 1 0 0 0;
#X connect 5 0 11 0;
#X connect 6 0 10 0;
#X connect 10 0 2 0;
#X connect 10 0 2 1;
#X connect 11 0 6 0;
#X connect 12 0 7 0;
#X connect 13 0 12 0;
#X connect 14 0 13 0;
#X connect 15 0 14 0;


More information about the Linux-audio-dev mailing list