|
|
@@ -65,11 +65,14 @@ struct Module { |
|
|
|
virtual void step() {} |
|
|
|
virtual void onSampleRateChange() {} |
|
|
|
|
|
|
|
/** Override these to implement spacial behavior when user clicks Initialize and Randomize */ |
|
|
|
virtual void reset() {} |
|
|
|
virtual void randomize() {} |
|
|
|
/** Deprecated */ |
|
|
|
virtual void initialize() final {} |
|
|
|
/** Called when module is created by the Add Module popup, cloning, or when loading a patch or autosave */ |
|
|
|
virtual void onCreate() {} |
|
|
|
/** Called when user explicitly deletes the module, not when Rack is closed or a new patch is loaded */ |
|
|
|
virtual void onDelete() {} |
|
|
|
/** Called when user clicks Initialize in the module context menu */ |
|
|
|
virtual void onReset() {} |
|
|
|
/** Called when user clicks Randomize in the module context menu */ |
|
|
|
virtual void onRandomize() {} |
|
|
|
|
|
|
|
/** Override these to store extra internal data in the "data" property */ |
|
|
|
virtual json_t *toJson() { return NULL; } |
|
|
|