HISE Logo Forum
    • Categories
    • Register
    • Login

    How do you purge samples?

    Scheduled Pinned Locked Moved Presets / Scripts / Ideas
    2 Posts 2 Posters 875 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elanhickler
      last edited by

      How do you purge samples?

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        To purge a whole sampler is pretty simple (but impossible to know until there is some documentation):

        Sampler = Synth.getChildSynth("Sampler");
        Sampler.setAttribute(12, 1); // 12 is the index for purging attribute and '1' is purged ('0' is normal and '2' is disabled)
        
        

        I wouldn't call this in a MIDI callback because it blocks the audio processing, but for control callbacks it is perfectly fine.

        You can also purge selected samples within a sampler. This procedure is a bit more complicated and I'll decide the next blog tutorial to it (you can also automap the samples with these API calls).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        25

        Online

        1.7k

        Users

        11.8k

        Topics

        103.0k

        Posts