HH2: one-shot parameters / switching parameters "off"
-
sm_jamieson
- Member
- Posts: 553
- Contact:
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.
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.
I think that the MIDI length zero case is still working, otherwise my Sequins 6 patch would be broken. But in fact it works great 
Hi sm_jamieson,
I have been using length 0 for a ton of different patches and it works for HH2.
Are you using the just released 062?
061 and before I have been working flawless.
-S
I have been using length 0 for a ton of different patches and it works for HH2.
Are you using the just released 062?
061 and before I have been working flawless.
-S
"Every act of creation is first an act of destruction." -Picasso
-
sm_jamieson
- Member
- Posts: 553
- Contact:
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.
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
Awesome,
I was always wondering how to make my script output nodes break connection like a 'pass if changed' module does.
Thanks for the information!
-S
I was always wondering how to make my script output nodes break connection like a 'pass if changed' module does.
Thanks for the information!
-S
"Every act of creation is first an act of destruction." -Picasso
Who is online
Users browsing this forum: No registered users and 131 guests
