Program Listing for File dm_fx_impulse_response.h¶
↰ Return to documentation for file (src/effects/dm_fx_impulse_response.h)
// Copyright (c) 2020 Run Jump Labs LLC. All right reserved.
// This code is licensed under MIT license (see license.txt for details)
#ifndef DM_FX_IMPULSE_RESPONSE_H
#define DM_FX_IMPULSE_RESPONSE_H
class fx_impulse_response: public fx_effect {
private:
IMPULSE param_impulse;
// Parameters
void init(void) {
// Set class
type = FX_IMPULSE_RESPONSE;
// Set name
strcpy(effect_name, "impulse response");
// Assign programmable node names
input = &node_input;
output = &node_output;
// Initialize parameter stack
PARAM_STACK(param_impulse, T_INT16);
}
public:
fx_audio_node * input;
fx_audio_node * output;
fx_impulse_response(IMPULSE type) {
param_impulse = type;
init();
}
void print_params(void) {
// void print_parameter( void * val, char * name, PARAM_TYPES type)
Serial.println();
}
};
#endif // DM_FX_IMPULSE_RESPONSE_H