Something I have just discovered with HH2. The recommended method of switching an output parameter "off" one bloc after setting its value in order to create a one-shot parameter value is to set the parameter length to -1. However, length zero produced the same effect in HH1. In HH2 setting the parameter length to zero does not block the parameter, it must be set to -1. I know some scripts including mine have previously used length zero.
Regarding midi array values, the HH1 manual actually said set the array size to zero to prevent continual sending of midi. I am not sure whether in this specific case size zero works or not.
Simon.
HH2: one-shot parameters / switching parameters "off"
-
sm_jamieson
- Member
- Posts: 559
Using 2.0.061. I think setting to zero length may still work for arrays - such as midi. But I found for other parameters it now needs to be -1.
Simon.
Simon.
-
sephult
- Member
- Posts: 1144
Yes I handle mostly arrays and midi with setting the length.
Typically I have no need to do a one-shot for others.
This might be the case as changes have and are being made to the SDK.... hopefully much more definition in the near future.
The -1 probably is in response to original suggestions regarding your one-shot...probably decided that should be defined this way now.
-S
Typically I have no need to do a one-shot for others.
This might be the case as changes have and are being made to the SDK.... hopefully much more definition in the near future.
The -1 probably is in response to original suggestions regarding your one-shot...probably decided that should be defined this way now.
-S
"Every act of creation is first an act of destruction." -Picasso
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
the main difference between length to 0 or -1 for a outlet parameter :
- length = 0 : the param contain nothing
- length = -1 : the param contain nothing, but the connection act as unplugged
it's a subtle difference witch have crucial importance.
look at the value in a connection after a 'pass if changed' module, observe how it length come back to -1 after each change
it's this exact behavior who make possible to take control of the param in the gui, even if it have input connection.
hope it help
- length = 0 : the param contain nothing
- length = -1 : the param contain nothing, but the connection act as unplugged
it's a subtle difference witch have crucial importance.
look at the value in a connection after a 'pass if changed' module, observe how it length come back to -1 after each change
it's this exact behavior who make possible to take control of the param in the gui, even if it have input connection.
hope it help
Martin FLEURENT - Usine Developer - SDK maintainer
