Solved Multi-group instruments and purge_group() sanity-check

Discussion in 'Scripting Workshop' started by Rob Jackson, Aug 1, 2021.

  1. Rob Jackson

    Rob Jackson New Member

    Messages:
    15
    I've seen a few posts on this topic, so please accept my apologies for this sanity-check.

    I'm doing one of these one big instrument / all the sounds in different groups type projects.

    From previous posts, it seems that good practice when switching sounds, is to persist the current group, and when it changes, purge all groups out of memory, then purge 1 your current group using purge_group().

    Is that all you need to do?

    It's what I currently do and it seems to work fine. I was worried about stuff like what happens if you've got sequencers or incoming MIDI data, will the KONTAKT engine handle that gracefully when you purge groups?

    It seems to, but if anyone out there knows for sure, I'll sleep better tonight :)

    Thanks!
     
    Last edited: Aug 1, 2021
  2. EvilDragon

    EvilDragon Moderator Moderator

    Messages:
    19,474
    Yeah that should be just fine.
     
  3. Rob Jackson

    Rob Jackson New Member

    Messages:
    15
    Many thanks again ED!