Interface PASource
- All Superinterfaces:
PAFloatSource
- All Known Implementing Classes:
BasicIndexGranularSource,IndexGranularSource,MCBufferSource,PABufferBackedSource,PABurstGranularSource,PathGranularSource
PASource
A PAFloatSource with an additional pitch policy hint.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ddf.minim.MultiChannelBufferOptional access to an underlying MultiChannelBuffer, if this source is fundamentally buffer-backed (e.g., plain sample playback or a rendered granular "tape").default PitchPolicyPitch policy hint for the instrument: should the instrument apply its pitch (playback rate) on top of this source?default voidseekTo(long absoluteSample) Optional seek/rewind hook, mainly for transport or "note-on" start time.default voidsetGrainWindow(ddf.minim.analysis.WindowFunction wf, int grainLenSamples) Methods inherited from interface net.paulhertz.pixelaudio.granular.PAFloatSource
lengthSamples, renderBlock
-
Method Details
-
pitchPolicy
Pitch policy hint for the instrument: should the instrument apply its pitch (playback rate) on top of this source? -
seekTo
default void seekTo(long absoluteSample) Optional seek/rewind hook, mainly for transport or "note-on" start time. Default implementation does nothing.- Parameters:
absoluteSample- absolute sample index to seek to.
-
setGrainWindow
default void setGrainWindow(ddf.minim.analysis.WindowFunction wf, int grainLenSamples) -
getMultiChannelBuffer
default ddf.minim.MultiChannelBuffer getMultiChannelBuffer()Optional access to an underlying MultiChannelBuffer, if this source is fundamentally buffer-backed (e.g., plain sample playback or a rendered granular "tape"). Implementations that are not backed by a fixed buffer (true streams, procedural sources, etc.) should simply return null.
-