p5.jsをオーディオ入力、再生、分析、合成を含む Web Audio 機能で拡張します。
メインp5.jsのリファレンスをお探しですか? リファレンスをご覧ください!旧バージョンの p5.sound をお探しですか? p5.sound リファレンス(OLD)をご覧ください!
呼び出された瞬間の単一の振幅値を返します。
デフォルトでp5soundインスタンス(メイン出力)に接続します。
サウンドの現在の振幅値を取得します。
Set amplitude (volume) of a mic input between 0 and 1.0.
Start the audio input.
Stop the audio input.
Set the cutoff frequency of the filter.
The gain of the filter in dB units.
The filter's resonance factor.
Set the type of the filter.
Adjust the amplitude of the delay effect.
Set the delay time in seconds.
The amount of feedback in the delay line.
Process an input signal with a delay effect.
Sets the attack time of the envelope.
Trigger the envelope and release it after the sustain time.
Sets the release time of the envelope.
Sets the attack, decay, sustain, and release times of the envelope.
Trigger the Attack, and Decay portion of the Envelope.
Trigger the Release of the envelope.
Returns the frequency spectrum of the input signal.
Returns an array of sample values from the input audio.
Adjust the amplitude of the soundfile.
Adjust the amplitude of the noise source.
Starts the noise source.
Stops the noise source.
Adjust the amplitude of the Oscillator.
Adjusts the frequency of the oscillator.
Adjusts the phase of the oscillator.
Sets the type of the oscillator.
Starts the oscillator.
Stops the oscillator.
Pan a sound source left or right.
Set the maximum distance of the panner.
Set the X position of the sound source.
Set the Y position of the sound source.
Set the Z position of the sound source.
Connects an input source to the 3D panner.
Set the rolloff rate of the panner.
Set the x, y, and z position of the 3D panner.
The rolloff rate of the panner.
Shift the pitch of the source audio.
Set the decay time of the reverb.
Gets the number of channels in the sound file.
Returns the duration of a sound file in seconds.
Return the number of samples in a sound file.
Return the playback state of the soundfile.
Move the playhead of a soundfile that is currently playing to a new position.
Loop the soundfile.
Define a function to call when the soundfile is done playing.
Pause the soundfile.
Start the soundfile.
Set the playback rate of the soundfile.
Set a loop region, and optionally a playback rate, and amplitude for the soundfile.
Change the path for the soundfile.
Stop the soundfile.
旧バージョンのp5.js日本語サイトをお探しですか?こちらです!