Skip to content

s+h value does not sample correctly #40

@tekcor

Description

@tekcor

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

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions