Hi,
i'm looking for an efficient way to read every 2nd (4th, 8th) value of a table and write it into another.
i tried it like this, but it costs to much resources.
[bang~]
|
[for++ 1024]
| \
| \
| \
| \
[/2]
|
[tabread4 array]
any ideas?
Read every second table value (interpolation)
Hi,
i'm looking for an efficient way to read every 2nd (4th, 8th) value of a table and write it into another.
i tried it like this, but it costs to much resources.
[bang~]
|
[for++ 1024]
| \
| \
| \
| \
[/2]
|
[tabread4 array]
any ideas?
The attached patch reads every other value from one table into another. Does this do what you want?
Forgive me if I'm wrong but isn't this the opposite of interpolation?
yes. thats what i want. but isn't there a function within tabread that lets you skip every second value??
Not that I'm aware of. [tabread] needs an index into it's first inlet so you have to provide the logic outside of the object.
Oops! Looks like something went wrong!