MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ excite()

void MayaFlux::Nodes::Network::ModalNetwork::excite ( double  strength = 1.0)

Excite all modes (strike/pluck)

Parameters
strengthExcitation strength (0.0 to 1.0+)

Resets all mode amplitudes to their initial values scaled by strength. Simulates striking or plucking the resonant structure.

Definition at line 530 of file ModalNetwork.cpp.

531{
532 initialize_exciter(strength);
533
534 for (auto& mode : m_modes) {
535 mode.amplitude = mode.initial_amplitude * strength;
536 }
537}
uint32_t mode
void initialize_exciter(double strength)
Initialize exciter for new excitation event.

References initialize_exciter(), m_modes, and mode.

+ Here is the call graph for this function: