View Single Post
Old 05-05-2021, 04:36 PM   #12728
siniarch
Human being with feelings
 
siniarch's Avatar
 
Join Date: Jun 2018
Posts: 705
Default

Quote:
Originally Posted by Geoff Waddington View Post
Yup, exactly !

The thing that's nice about the Properties approach is that if a given widget doesn't support a property it is ignored, no havoc ensues

In the above example CSI will attempt to set the RingColor, BottomColor, DisplayType, and DisplayColor Properties of SomeEncoder.

Any Properties that SomeEncoder supports will be set, the rest will be ignored.

Kind of like the way it's turning out so far...
I have to admit it took me a few minutes to decipher the "Property+". I was thinking What property? Then it clicked. Property is to let CSI know that the Encoder's property will be listed after this statement.

I'm totally ok with this method.

Question: does this mean that the DisplayType items will also be a property or handled as before?

Code:
Zone "VST: Blah, etc. SomeFX" "Reverb"
    SomeEncoder          FXParam "3"
    Property+SomeEncoder RingColor r1 g1 b1 r2 g2 b2 r3 g3 b3
    Property+SomeEncoder RingColorChange 50 75 /these two values determine when the ring changes from rgb1 to rgb2 and rgb3.
    Property+SomeEncoder BottomColor 32 120 57
    Property+SomeEncoder DisplayType 1
    Property+SomeEncoder DisplayColor 0 127 127
    Property+SomeEncoder Bar 6 /where 1-increase, 2-decrease, 3-pan, 4-width, 5-boost/cut, 6-on/off
/-----here it switches from Property+ to old method----------------
    SomeEncoder_DisTyp1_UprTxt TrackName
    SomeEncoder_DisTyp1_MdlTxt FxParam 20 "ratio"
    SomeEncoder_DisTyp1_LwrTxt FxParamValue 20 { r1 g1 b1 r2 g2 b2 } /these colors would supersede the "DisplayColor" in the Property+ section. 

ZoneEnd
Does the above make sense. The "Property+" section is to just define properties for items, but when you want to link those items to Values such as TrackName or FXParamName, or those sort of things, we revert back to standard CSI Zone syntax?

or would those be also Porperty+ types. As in:

Code:
 Property+SomeEncoder Bar 6
 Property+SomeEncoder UprTxt TrackName
 Property+SomeEncoder MdlTxt FxParam 20 "ratio"
 Property+SomeEncoder LwrTxt FxParamValue 20 { r1 g1 b1 r2 g2 b2 }
__________________
www.SiniCon.io .......... Digital Audio Controllers
www.AcousticalGarden.com ........ Los Angeles Boutique Sound Studio
siniarch is offline   Reply With Quote