vvvv.js icon indicating copy to clipboard operation
vvvv.js copied to clipboard

s+h value does not sample correctly

Open tekcor opened this issue 10 years ago • 0 comments

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);
}

}

tekcor avatar Aug 10 '15 19:08 tekcor