vvvv.js
vvvv.js copied to clipboard
s+h value does not sample correctly
it losses value again when getting 0.
whats the problem here?
this.evaluate = function() {
var maxSize = this.getMaxInputSliceCount();
if (setIn.pinIsChanged() || inputIn.pinIsChanged()) {
for (var i=0; i<maxSize; i++) {
if (outputOut.values[i]==undefined) {
outputOut.setValue(i, 0.0);
}
if (Math.round(setIn.getValue(i))>=1) {
outputOut.setValue(i, inputIn.getValue(i));
}
}
outputOut.setSliceCount(maxSize);
}
}