Uses of Class
net.paulhertz.pixelaudio.voices.ADSRParams
Packages that use ADSRParams
Package
Description
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 ADSRParamsModifier and TypeFieldDescriptionprivate ADSRParamsPASamplerInstrument.defaultEnvprivate ADSRParamsPASamplerInstrumentPool.defaultEnvMethods in net.paulhertz.pixelaudio.voices that return ADSRParamsModifier and TypeMethodDescriptionstatic ADSRParamsADSRUtils.fitEnvelopeToDuration(ADSRParams adsr, int duration) Returns a new ADSRParams scaled to fit the specified duration (ms).PASamplerInstrument.getDefaultEnv()PASamplerInstrumentPool.getDefaultEnv()Methods in net.paulhertz.pixelaudio.voices with parameters of type ADSRParamsModifier and TypeMethodDescriptionvoidPASamplerVoice.activate(int start, int length, float gain, ADSRParams envParams, float pitch, float pan, boolean looping) voidPASamplerInstrumentPoolMulti.addPool(String key, ddf.minim.MultiChannelBuffer buffer, float bufferSampleRate, int poolSize, int perInstrumentVoices, ddf.minim.AudioOutput out, ADSRParams env) static intPlaybackInfo.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 ADSRParamsADSRUtils.fitEnvelopeToDuration(ADSRParams adsr, int duration) Returns a new ADSRParams scaled to fit the specified duration (ms).default intPAPlayable.play(float amplitude, ADSRParams env, float pitch, float pan) Optional interface for playables that support envelopes.intPASampler.play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) Play command with all the useful arguments in standard order.intPASamplerInstrument.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.intPASamplerInstrumentPool.play(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) The primary play command, with all common arguments in standard order.intPASamplerInstrumentPoolMulti.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.intPASamplerPlayable.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.intPASharedBufferSampler.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().intPASamplerInstrument.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env) Plays a sample using a supplied envelope with default pitch and default pan.intPASamplerInstrument.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch) Plays a sample using a supplied envelope, pitch, and current global pan.intPASamplerInstrument.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) Trigger playback using all six standard per-voice parameters.intPASamplerInstrument.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.intPASamplerInstrument.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.intPASamplerInstrumentPool.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env) intPASamplerInstrumentPool.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch) intPASamplerInstrumentPool.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) intPASamplerInstrumentPool.playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch) intPASamplerInstrumentPool.playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) intPASamplerInstrumentPoolMulti.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env) intPASamplerInstrumentPoolMulti.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch) intPASamplerInstrumentPoolMulti.playSample(int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) intPASamplerInstrumentPoolMulti.playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch) intPASamplerInstrumentPoolMulti.playSample(ddf.minim.MultiChannelBuffer buffer, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) intPASamplerInstrumentPoolMulti.playSample(String tag, int samplePos, int sampleLen, float amplitude, ADSRParams env, float pitch, float pan) default intPASamplerPlayable.playSample(float amplitude, ADSRParams env) Play with amplitude and envelope.default intPASamplerPlayable.playSample(float amplitude, ADSRParams env, float pitch) Play with amplitude, envelope, and pitch.default intPASamplerPlayable.playSample(float amplitude, ADSRParams env, float pitch, float pan) Play with amplitude, envelope, pitch, and pan.default intPASamplerPlayable.playSample(int start, int length, float amplitude, ADSRParams env, float pitch, float pan) Play a subrange of the buffer with full parameters.voidPASamplerInstrumentPool.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).voidPASamplerInstrumentPool.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.voidPASamplerInstrument.setDefaultEnv(ADSRParams env) voidPASamplerInstrumentPool.setDefaultEnv(ADSRParams env) Constructors in net.paulhertz.pixelaudio.voices with parameters of type ADSRParamsModifierConstructorDescriptionPASamplerInstrument(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.