Hey this is my first post here!
so I have a problem with this situation:
value = Sig(0)
trig = Trig()
samp = SampHold(value, trig,1)
printi = Print(samp,1)
def test():
value.setValue(1)
value.setValue(2)
This should set samp's ouput to 1 and print it when the trig arives then set the control signal of the sample and hold to 2 so that the 2 is sampled on the next trig.
But what happens is that the 2 is sampled automatically, as if the code is executed like this:
value.setValue(1)
value.setValue(2)
My guess is that this happens because either Sig.setvalue or Trig.play() happens at the beginning of the buffer
Anybody can confirm this and tell me how to make it work in order? Thanks