Any way to return whether a group is actively playing a sample?

Alcot60890
Alcot60890 Member Posts: 18 Member

I'd like my UI to indicate actively playing groups, similar to how the Group Editor illuminates the groups in orange which are playing samples. My first thought might be to store eventIDs along with the associated group number in an array and then somehow check when those no longer match up. Any ideas or something simple that I might be missing?

Comments

  • theodorech
    theodorech Member Posts: 84 Member

    You’d use ui_buttons and set them to 1 when a group is triggered, then back to 0 when it’s not.
    It really depends on your library. Are you triggering groups by key, or layering sounds and just want to visualize which groups are active?

    Keep in mind, groups in Kontakt stay active as long as the event is, so handling that can get a bit more complex. Displaying the active groups when playing a note is much more simpler.

Back To Top