Home AMX User Forum AMX Design Tools
Options

How to programatically change multi-state bargraph state during runtime?

Hi,

Im new to the forums and I want to ask something about states.
How can I change a multi-state bargraph state during runtime?
eg. i have a button above the bargraph and when i press on it i want to
change its state.

Thank guys!

Comments

  • Options
    DHawthorneDHawthorne Posts: 4,584
    SEND_LEVEL to the address of the bargraph.
  • Options
    MarkCoMarkCo Posts: 18
    Hi,

    I woudn't think send_level would do since I want to show a specific level for the multi-state bargraph
    on button press.

    Any other ideas?
  • Options
    nickmnickm Posts: 152
    The state of the bargraph is directly correlated with the level value. For example, if you have a multi-state bargraph object with 10 states, and value range of 0 through 100, at value 1-9 State 1 would be active, 10 - 19 State 2, and so on. I don't know that there's any way to break this correlation and manually trigger states. However, a workaround in your case may be to create two MSB objects, one on top of the other, with transparency to create the desired effect you wish.
  • Options
    viningvining Posts: 4,368
    I usually just make my range low 0 or 1 and my range high the number of states or num states -1. Then what everone else has said about send_level.

    Just have to make your button a multi-state bargraph not a multi-state general button.
Sign In or Register to comment.