tanh-lib
  • Getting Started
  • Components
  • Real-Time Safety
  • API Reference
    • Class List Every class in the public headers
    • Struct List Every struct in the public headers
/

Contents:

  • Getting Started
  • Components
  • Real-Time Safety
  • Symbol visibility
  • Modulation: input events
  • AudioIO: Android notes
  • API Reference
    • Class list
      • Class thl::AudioDeviceManager
      • Class thl::AudioFileSink
      • Class thl::AudioIODeviceCallback
      • Class thl::AudioPlayerSource
      • Class thl::BlockingException
      • Class thl::CallbackListener
      • Class thl::Dispatcher
      • Class thl::DispatcherListener
      • Class thl::DuplicateParameterIdException
      • Class thl::Logger::rt::DrainThread
      • Class thl::Logger::rt::Queue
      • Class thl::Parameter
      • Class thl::ParameterAlreadyExistsException
      • Class thl::ParameterHandle
      • Class thl::ParameterListener
      • Class thl::ParameterTypeMismatchException
      • Class thl::RCU
      • Class thl::State
      • Class thl::StateGroup
      • Class thl::StateGroupNotFoundException
      • Class thl::StateKeyNotFoundException
      • Class thl::audio_io::AudioFileLoader
      • Class thl::audio_io::DataSource
      • Class thl::core::BasicBufferView
      • Class thl::core::Buffer
      • Class thl::core::DynamicLockFreeQueue
      • Class thl::core::LockFreeQueue
      • Class thl::core::MemoryBlock
      • Class thl::core::RingBuffer
      • Class thl::core::Thread
      • Class thl::dsp::BaseProcessor
      • Class thl::dsp::analysis::Compressor
      • Class thl::dsp::analysis::Follower
      • Class thl::dsp::analysis::NoteFilter
      • Class thl::dsp::analysis::OnsetDetector
      • Class thl::dsp::analysis::ZScorer
      • Class thl::dsp::audio::AudioDataStore
      • Class thl::dsp::filter::DCBlocker
      • Class thl::dsp::filter::MorphFilter
      • Class thl::dsp::filter::NaiveSvf
      • Class thl::dsp::filter::OnePole
      • Class thl::dsp::filter::Svf
      • Class thl::dsp::fx::ConstellationReverbImpl
      • Class thl::dsp::fx::IntellijelWavefolderImpl
      • Class thl::dsp::fx::RingsChorus
      • Class thl::dsp::fx::RingsEnsemble
      • Class thl::dsp::fx::RingsFxEngine
      • Class thl::dsp::fx::RingsReverb
      • Class thl::dsp::fx::StereoFDN
      • Class thl::dsp::granular::GrainEngine
      • Class thl::dsp::granular::GrainProcessorImpl
      • Class thl::dsp::granular::GrainVisualizationListener
      • Class thl::dsp::granular::GrainVisualizer
      • Class thl::dsp::granular::HeadPolicy
      • Class thl::dsp::granular::LoopScanHead
      • Class thl::dsp::granular::PositionSprayHead
      • Class thl::dsp::granular::SamplePlayer
      • Class thl::dsp::granular::SampleReader
      • Class thl::dsp::metronome::MetronomePlayerImpl
      • Class thl::dsp::resonator::RingsDampingFilter
      • Class thl::dsp::resonator::RingsModalResonator
      • Class thl::dsp::resonator::RingsString
      • Class thl::dsp::resonator::RingsStrummer
      • Class thl::dsp::synth::Plucker
      • Class thl::dsp::synth::RingsFmVoice
      • Class thl::dsp::synth::RingsResonatorSynthProcessor
      • Class thl::dsp::synth::RingsStringSynthPart
      • Class thl::dsp::synth::RingsVoiceManager
      • Class thl::dsp::synth::SineProcessorImpl
      • Class thl::dsp::synth::StringSynthOscillator
      • Class thl::dsp::synth::StringSynthVoice
      • Class thl::dsp::transport::InternalTransportClock
      • Class thl::dsp::transport::TransportClock
      • Class thl::dsp::utils::ADSR
      • Class thl::dsp::utils::Allpass
      • Class thl::dsp::utils::BrownianNoise
      • Class thl::dsp::utils::CosineOscillator
      • Class thl::dsp::utils::DelayLine
      • Class thl::dsp::utils::DynamicAllpass
      • Class thl::dsp::utils::DynamicDelayLine
      • Class thl::dsp::utils::FrequencyShifter
      • Class thl::dsp::utils::HannWindow
      • Class thl::dsp::utils::LimiterImpl
      • Class thl::dsp::utils::LinearRamp
      • Class thl::dsp::utils::LinearSmootherBank
      • Class thl::dsp::utils::MorphWindow
      • Class thl::dsp::utils::ParamSmoother
      • Class thl::dsp::utils::ParameterInterpolator
      • Class thl::dsp::utils::PitchShifter
      • Class thl::dsp::utils::Random
      • Class thl::dsp::utils::SineOscillator
      • Class thl::dsp::utils::SmoothedValue
      • Class thl::dsp::utils::SoftLimiter
      • Class thl::dsp::utils::StringSynthEnvelope
      • Class thl::modulation::InputEventQueue
      • Class thl::modulation::LFOSourceImpl
      • Class thl::modulation::ModulationMatrix
      • Class thl::modulation::ModulationSource
      • Class thl::modulation::SmartHandle
      • Class thl::net::AssetStore
      • Class thl::net::HttpClient
      • Class thl::net::Sha256
    • Struct list
      • Struct thl::AtomicCacheEntry
      • Struct thl::AudioDeviceInfo
      • Struct thl::Logger::LogRecord
      • Struct thl::Logger::LoggerConfig
      • Struct thl::NormalizationCurve
      • Struct thl::ParameterDefinition
      • Struct thl::ParameterRecord
      • Struct thl::Range
      • Struct thl::core::ThreadOptions
      • Struct thl::dsp::fx::DataType
      • Struct thl::dsp::fx::DataType< Format12Bit >
      • Struct thl::dsp::fx::DataType< Format16Bit >
      • Struct thl::dsp::fx::DataType< Format32Bit >
      • Struct thl::dsp::granular::AudioBlock
      • Struct thl::dsp::granular::BankView
      • Struct thl::dsp::granular::Grain
      • Struct thl::dsp::granular::SampleRegion
      • Struct thl::dsp::granular::VoiceParams
      • Struct thl::dsp::resonator::RingsPatch
      • Struct thl::dsp::resonator::RingsPerformanceState
      • Struct thl::dsp::synth::PreparedVoiceParams
      • Struct thl::dsp::synth::VoiceGroup
      • Struct thl::dsp::utils::IntegralFractional
      • Struct thl::modulation::BulkStep
      • Struct thl::modulation::CyclicStep
      • Struct thl::modulation::ModulationRouting
      • Struct thl::modulation::ModulationScope
      • Struct thl::modulation::MonoBuffers
      • Struct thl::modulation::ProcessingConfig
      • Struct thl::modulation::ResolvedRouting
      • Struct thl::modulation::ResolvedTarget
      • Struct thl::modulation::VoiceBuffers
      • Struct thl::net::AssetDescriptor
      • Struct thl::net::AssetFile
      • Struct thl::net::AssetProgress
      • Struct thl::net::HttpProgress
      • Struct thl::net::HttpResult
      • Struct thl::net::InstallResult
  • Changelog
  • Contributing
  • License

On this page

  • thl::dsp::granular::SamplePlayer
    • SamplePlayer()
    • SamplePlayer()
    • operator=()
    • prepare()
    • reset()
    • note_on()
    • is_started()
    • render()
    • report_visualization()
  1. tanh-lib /
  2. API Reference /
  3. Class list /
  4. Class thl::dsp::granular::SamplePlayer

Class thl::dsp::granular::SamplePlayer#

class SamplePlayer#

Public Functions

SamplePlayer(const SampleReader &reader, GrainVisualizer &viz)#
SamplePlayer(const SamplePlayer&) = delete#
SamplePlayer &operator=(const SamplePlayer&) = delete#
void prepare(double sample_rate, size_t num_channels)#
void reset()#
void note_on()#
inline bool is_started() const#
bool render(const AudioBlock &block, const VoiceParams &params)#
void report_visualization() const#
Previous
Class thl::dsp::granular::PositionSprayHead
Next
Class thl::dsp::granular::SampleReader

2026, tanh-lab

Made with Sphinx and Shibuya theme.