#include <supersaw.hpp>
|
| bool | prepare (SampleType sample_rate, const UnisonSpec &spec) noexcept |
| | Control-side preparation.
|
| bool | trigger (SampleType frequency, std::uint64_t seed, std::uint64_t note_instance_id) noexcept |
| | Audio-thread-safe note start.
|
| StereoSampleT< SampleType > | next (std::uint64_t absolute_frame) noexcept |
| | Render one stereo sample for the supplied absolute audio-frame index.
|
| void | reset () noexcept |
| | Audio-thread-safe hard reset.
|
| bool | prepared () const noexcept |
| bool | active () const noexcept |
| const UnisonLayout< MaximumVoices > & | layout () const noexcept |
◆ active()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
◆ layout()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
◆ next()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
Render one stereo sample for the supplied absolute audio-frame index.
Calls are allocation-free. Consecutive frame indices produce output independent of how a host partitions those calls into callbacks.
◆ prepare()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
Control-side preparation.
The sample rate is in hertz; invalid input leaves the previous configuration and render state unchanged.
◆ prepared()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
◆ reset()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
Audio-thread-safe hard reset.
Subsequent samples are silent until the next successful trigger.
◆ trigger()
template<typename SampleType = float, std::size_t MaximumVoices = 16>
| bool pulp::signal::SupersawT< SampleType, MaximumVoices >::trigger |
( |
SampleType | frequency, |
|
|
std::uint64_t | seed, |
|
|
std::uint64_t | note_instance_id ) |
|
inlinenoexcept |
Audio-thread-safe note start.
Frequency is in hertz and must remain below Nyquist after the configured maximum detune and drift. Failure is atomic: the currently sounding note is unchanged.
The documentation for this class was generated from the following file:
- /home/runner/work/pulp/pulp/core/signal/include/pulp/signal/supersaw.hpp