[PD] newbie question about tabplay~ and tabread4~

Frank Barknecht fbar at footils.org
Wed Jul 2 21:41:03 CEST 2003


Hallo,
abel.jerome at free.fr hat gesagt: // abel.jerome at free.fr wrote:

> aNother question about the difference between tabplay~ and tabread4~. I'm not 
> very relax with the mathematics problems and this kind of stuff. 

tabplay~ just plays a sample that is stored in an array or table. It's
like a one-shot sample player. tabread4~ on the other hand looks up
the value in an array using the incoming signal as an index. So if you
have an array that is 5 entries long and has this content: 
  
  pos: value
	1: 1
	2: 3
	3: 1
	4: 0
	5: 4

if you then send tabread a "sig~ 2" it will output a signal with value
"3", because that's the value at position "2" (tabread4~ starts
counting at 1) in the array.

Incoming indices in between get interpolated. If you send tabread4~ a
"sig~ 1.5", it results in a value around 2.

ciao
-- 
 Frank Barknecht                               _ ______footils.org__




More information about the Pd-list mailing list