Hallo, robbert van hulzen hat gesagt: // robbert van hulzen wrote:
thanks, though i don't really i understand this (i ran into the same problem with your 'tabread4~ help' post from august): putting a [*~] after the [vline~] affects the volume, doesn't it?
Not if the [vline~] isn't controlling volume but the position of array-reading as in sample-playing with [tabread4~]. There you use the [vline~] that goes into the [tabread4~] to control, which sample position [tabread4~] is currently playing.
Compare this to the non-signal [tabread]: You send a number into [tabread] and it will output the value the array has at the position the incoming number specifies. So if you send a 0, you get the first value in the array, if you send a 1 you get the second, if you send a 4411 you get the 4410th value. [tabread] starts counting a 0.
Now [tabread4~] is very similar to that, only it wants a signal coming in. Assume that instead of [vline~] you use [sig~]. [sig~ 10] sent into the inlet of [tabread4~] will output the 11th sample of the array.
See attached patch for an illustration of this.
Now if you have a vline~ going from 1 to 11 into tabread4~, it will play the 10 samples from 1 to 11 (counting samples from 0). What happens if you multiply the vline~-signal with 2? It will go from 2 to 22 then , using the same time as before. This will play twice as many samples: samples 2 to 22, if there are that many, and it will result in a chipmunk pitch shift of one octave higher than before.
Frank Barknecht _ ______footils.org_ __goto10.org__