How do you purge samples?



  • How do you purge samples?



  • 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).


Log in to reply
 

18
Online

674
Users

2.7k
Topics

22.8k
Posts