MCPcopy Create free account
hub / github.com/amsynth/amsynth / SetSampleRate

Method SetSampleRate

src/core/synth/Oscillator.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46void Oscillator::reset () { rads = 0.0; }
47
48void
49Oscillator::SetSampleRate(int rateIn)
50{
51 rate = rateIn;
52 twopi_rate = m::twoPi / rate;
53}
54
55void
56Oscillator::setPolarity(float polarity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected