Home AMX User Forum NetLinx Studio

General Button & Max Levels

Hi, you can set the maximum level of a bargraph at runtime using the ^GLH command. How can I set this for a normal button?

Comments

  • viningvining Posts: 4,368
    Yes. I use that command to change the hi limit of a bar graph to reflect the song lenght as received in the meta data.

    In the following example I'm using two structures one to hold the recieved meta data and the 2nd to determine if that change has been sent to the TP. I'm also sending that value to two different bar graphs, one is fixed and the ohter moves to the location of the song in the now playing queue.

    Don't know if this is appropriate way to do this but it works.

    if (SoundBSent[1].SBCurLevelChannel != SoundB[1].SBCurLevelChannel)
    {
    SEND_COMMAND dvTPSoundBArray,"'^GLH-',itoa (SoundB[1].SBCurLevelChannel),',',itoa(nSBSongLength)"
    wait 1
    {
    SEND_COMMAND dvTPSoundBArray,"'^GLH-100,',itoa(nSBSongLength)"
    }
    SoundBSent[1].SBCurLevelChannel = SoundB[1].SBCurLevelChannel
    }
  • mushmush Posts: 287
    hodeyp wrote: »
    Hi, you can set the maximum level of a bargraph at runtime using the ^GLH command. How can I set this for a normal button?

    I too am having the same problem.
    The command works for a bargraph but not for a button linked to the bargraph for ramping purposes.
    The ^BMF %GH does not work either.
    Anyone have the same issues?
    Does anyone have a fix or a workaround?

    Thanks

    Mush
Sign In or Register to comment.