Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s+h value does not sample correctly #40

Open
tekcor opened this issue Aug 10, 2015 · 0 comments
Open

s+h value does not sample correctly #40

tekcor opened this issue Aug 10, 2015 · 0 comments

Comments

@tekcor
Copy link
Contributor

tekcor commented Aug 10, 2015

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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant