# Uses of Class
net.paulhertz.pixelaudio.voices.ADSRParams

Packages that use ADSRParams
Package
Description
net.paulhertz.pixelaudio.voices
Package `net.paulhertz.pixelaudio.voices` provides a hierarchy of Java classes for implementing digital audio sampling synthesis with support from the Minim library for Processing.

- ## Uses of ADSRParams in net.paulhertz.pixelaudio.voices

  Fields in net.paulhertz.pixelaudio.voices declared as ADSRParams
  Modifier and Type
  Field
  Description
  `private ADSRParams`
  PASamplerInstrument.`defaultEnv`
  `private ADSRParams`
  PASamplerInstrumentPool.`defaultEnv`
  Methods in net.paulhertz.pixelaudio.voices that return ADSRParams
  Modifier and Type
  Method
  Description
  `static ADSRParams`
  ADSRUtils.`fitEnvelopeToDuration(ADSRParams adsr, int duration)`
  Returns a new ADSRParams scaled to fit the specified duration (ms).
  `ADSRParams`
  PASamplerInstrument.`getDefaultEnv()`
  `ADSRParams`
  PASamplerInstrumentPool.`getDefaultEnv()`
  Methods in net.paulhertz.pixelaudio.voices with parameters of type ADSRParams
  Modifier and Type
  Method
  Description
  `void`
  PASamplerVoice.`activate(int start, int length, float gain, ADSRParams envParams, float pitch, float pan, boolean looping)`
  `void`
  PASamplerInstrumentPoolMulti.`addPool(String key, ddf.minim.MultiChannelBuffer buffer, float bufferSampleRate, int poolSize, int perInstrumentVoices, ddf.minim.AudioOutput out, ADSRParams env)`
  `static int`
  PlaybackInfo.`computeVoiceDuration(int samplePos, int sampleLen, int bufferLen, float pitch, ADSRParams env, boolean looping, float sampleRate)`
  Computes total playback duration (in output samples, pitch-independent).
  `static ADSRParams`
  ADSRUtils.`fitEnvelopeToDuration(ADSRParams adsr, int duration)`
  Returns a new ADSRParams scaled to fit the specified duration (ms).
  `default int`
  PAPlayable.`play(float amplitude, ADSRParams env, float pitch, float pan)`
  Optional interface for playables that support envelopes.
  `int`
  PASampler.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Play command with all the useful arguments in standard order.
  `int`
  PASamplerInstrument.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  The primary play method, called by all playSample() methods, from PASamplerPlayable interface.
  `int`
  PASamplerInstrumentPool.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  The primary play command, with all common arguments in standard order.
  `int`
  PASamplerInstrumentPoolMulti.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  PASamplerPlayable's play method, all six standard parameters in standard order, called by other methods.
  `int`
  PASamplerPlayable.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Core playback method: start playback from a given buffer range with start index, duration, amplitude, envelope, pitch, and pan control, arguments in standard order for PixalAudio library.
  `int`
  PASharedBufferSampler.`play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Play command with all the useful arguments in standard order, overrides PASampler.play().
  `int`
  PASamplerInstrument.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env)`
  Plays a sample using a supplied envelope with default pitch and default pan.
  `int`
  PASamplerInstrument.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  Plays a sample using a supplied envelope, pitch, and current global pan.
  `int`
  PASamplerInstrument.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Trigger playback using all six standard per-voice parameters.
  `int`
  PASamplerInstrument.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  Sets a new buffer for PASamplerInstrument and plays it with envelope, pitch, and default pan.
  `int`
  PASamplerInstrument.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Sets a new buffer for PASamplerInstrument and plays it with envelope, pitch, and pan.
  `int`
  PASamplerInstrumentPool.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env)`
  `int`
  PASamplerInstrumentPool.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  `int`
  PASamplerInstrumentPool.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  `int`
  PASamplerInstrumentPool.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  `int`
  PASamplerInstrumentPool.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  `int`
  PASamplerInstrumentPoolMulti.`playSample(String tag, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  `default int`
  PASamplerPlayable.`playSample(float amplitude, ADSRParams env)`
  Play with amplitude and envelope.
  `default int`
  PASamplerPlayable.`playSample(float amplitude, ADSRParams env, float pitch)`
  Play with amplitude, envelope, and pitch.
  `default int`
  PASamplerPlayable.`playSample(float amplitude, ADSRParams env, float pitch, float pan)`
  Play with amplitude, envelope, pitch, and pan.
  `default int`
  PASamplerPlayable.`playSample(int start, int length, float amplitude, ADSRParams env, float pitch, float pan)`
  Play a subrange of the buffer with full parameters.
  `void`
  PASamplerInstrumentPool.`schedulePlayAtFrame(long frameIndex, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Hook: schedule by audio-frame index (frame = one AudioOutput callback).
  `void`
  PASamplerInstrumentPool.`schedulePlayAtMillis(long triggerTimeMillis, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan)`
  Hook: schedule by (future) wallclock ms — will be wired to TimedLocation later.
  `void`
  PASamplerInstrument.`setDefaultEnv(ADSRParams env)`
  `void`
  PASamplerInstrumentPool.`setDefaultEnv(ADSRParams env)`
  Constructors in net.paulhertz.pixelaudio.voices with parameters of type ADSRParams
  Modifier
  Constructor
  Description
  ``
  `PASamplerInstrument(ddf.minim.MultiChannelBuffer buffer, float sampleRate, int maxVoices, ddf.minim.AudioOutput audioOut, ADSRParams env)`
  Primary constructor for backward compatibility.
  ``
  `PASamplerInstrument(ddf.minim.MultiChannelBuffer buffer, ddf.minim.AudioOutput out, PASampler sampler, ADSRParams defaultEnv, float bufferSampleRate)`
  Full constructor with explicit buffer sample rate, custom sampler, and envelope.
  ``
  `PASamplerInstrumentPool(ddf.minim.MultiChannelBuffer buffer, float sampleRate, int poolSize, int perInstrumentVoices, ddf.minim.AudioOutput out, ADSRParams defaultEnv)`
  Full backward-compatible constructor with a MultiChannelBuffer argument.
  ``
  `PASamplerInstrumentPool(ddf.minim.MultiChannelBuffer buffer, ddf.minim.AudioOutput out, int poolSize, float bufferSampleRate, ADSRParams env)`
  Full constructor.
  ``
  `PASamplerInstrumentPoolMulti(String key, ddf.minim.MultiChannelBuffer buffer, float sampleRate, int poolSize, int perInstrumentVoices, ddf.minim.AudioOutput out, ADSRParams adsr)`
  Convenience constructor for single-pool initialization.