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

◆ excite()

void MayaFlux::Nodes::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 267 of file ModalNetwork.cpp.

268{
269 for (auto& mode : m_modes) {
270 mode.amplitude = mode.initial_amplitude * strength;
271 }
272}
std::vector< ModalNode > m_modes

References m_modes.