Hey guys,
I need some help:
I want to skip some certain values at different positions inside an array. I want to prevent these values from being sent. Is there an object that could block them?
regards
Elden
Skipping positions of an array
Hey guys,
I need some help:
I want to skip some certain values at different positions inside an array. I want to prevent these values from being sent. Is there an object that could block them?
regards
Elden
what do you mean? i think you might need to clarify it a bit more.
if you use a [tabread] and send the indexed values to a [coll] and then send [coll] the message "remove 3", if for example you don't want the value at the third position. then you can send [coll] the "dump" message and feed the list into a [tabwrite] object. the missing dots will be connected though and not zeroed, I think. Well, it's just a way I thought you'd might do that...
Alex
thanks first.
[coll] might be a good start... but that the dots will be connected is a problem...maybe i find a way...
or you can send [coll] the message " nsub 3 1 0" which means to substitute the first element of the third index with a 0. Just now tried it out with [coll]'s help file. dunno...
The coll thing is not really what I'm looking for, I guess. I think I'm more looking for a way to overwrite only some certain indexes of an array by other values without destroying all information that i saved before.
you can write directly to an array like this:
[m n(
|
where m is the index (offset) and n is the new value.
if you want to write more than one value, you can do:
[m n o p q ... (
In this case, m is still the index offset, but then the array is filled one place at a time with n, o, p, q ... etc
Oops! Looks like something went wrong!