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

◆ set_pickup_position()

void MayaFlux::Nodes::Network::WaveguideNetwork::set_pickup_position ( double  position)

Set pickup position along the string.

Parameters
positionNormalized position (0.0 to 1.0)

Determines where the output is read from the delay line. Different positions emphasize different harmonics.

Definition at line 388 of file WaveguideNetwork.cpp.

389{
390 position = std::clamp(position, 0.0, 1.0);
391 m_pickup_sample = static_cast<size_t>(position * static_cast<double>(m_delay_length_integer));
392 m_pickup_sample = std::clamp(m_pickup_sample, size_t { 0 }, m_delay_length_integer);
393}
glm::vec3 position

References m_delay_length_integer, m_pickup_sample, and position.

Referenced by apply_broadcast_parameter().

+ Here is the caller graph for this function: