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

◆ speed()

void MayaFlux::Kriya::TapSet::speed ( size_t  tap,
double  ratio 
)

Change the speed of a tap while it plays.

The tap carries on from where it is, so the change never jumps, and all of its outputs change together. Zero holds the tap in place and a negative ratio reads backwards. It has no effect on a tap made with lag.

Parameters
tapTap number, in declaration order.
ratioSpeed relative to the source.

Definition at line 18 of file TapSet.cpp.

19{
20 const auto& target = m_taps.at(tap);
21 *target.velocity = ratio * target.rate;
22}
std::vector< Tap > m_taps
Definition TapSet.hpp:87

References m_taps.