PLUG'N SCRIPT
rapid plugin development
Tutorial
DSP
KUIML
How-to
Scripts
Main functions
  • processBlock
  • processSample
  • updateInputParameters
  • updateInputParametersForBlock
  • computeOutputData
Additional
  • initialize
  • shutdown
  • reset
  • getTailSize
  • getLatency
  • wantSilence
DSPreset
September 04, 2025

Reset

This function is used to "reset" the state of a filter (in EQ, etc.), clear buffers, and so on. For example, you may have some buffered data that you are working with, and suddenly it becomes obsolete due to a change in the sample rate, buffer size, or other parameters. 

  1. // the measured level
  2. double level=0;
  3.  
  4. void reset() {
  5. level=0; // reset level to zero
  6. }

As Blue Cat Audio said: "Reset is called when the host needs to reset the state of the plug-in. Typically before restarting playback from another location or after initialization. But it depends on the host application."

In my experience, the reset function is called immediately after "initialize" when the script is loaded, or when there is a change in the sample rate or buffer size.


Comments

Please, authorize to view and post comments.

2020 - 2025 © Site by LetiMix · Donate  |  Plug'n Script and KUIML by Blue Cat Audio