You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Pizzicato aims to simplify the way you create and manipulate sounds via the Web
23
23
-[removeEffect()](#sounds-remove-effect)
24
24
-[volume](#sounds-volume)
25
25
-[attack](#sounds-attack)
26
-
-[sustain](#sounds-sustain)
26
+
-[release](#sounds-release)
27
27
-[frequency](#sounds-frequency)
28
28
-[Connecting sounds to AudioNodes](#sounds-connect)
29
29
-[Effects](#effects)
@@ -133,7 +133,7 @@ To create a sound from an oscillator with a certain waveform, use the ```source:
133
133
*```type```_(Optional; ```sine```, ```square```, ```triangle``` or ```sawtooth```, defaults to ```sine```)_: Specifies the type of waveform.
134
134
*```frequency```_(Optional; defaults to 440)_: Indicates the frequency of the wave (i.e., a 440 value will yield an A note).
135
135
*```volume```_(Optional; min: 0, max: 1, defaults to 1)_: Loudness of the sound.
136
-
*```sustain```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-out time when the sound is stopped.
136
+
*```release```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-out time when the sound is stopped.
137
137
*```attack```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-in time when the sound is played.
138
138
*```detached```_(Optional; defaults to false)_: If true, the sound will not be connected to the context's destination, and thus, will not be audible.
139
139
@@ -156,7 +156,7 @@ In order to load a sound from a file, include the ```source: file``` in your des
156
156
*```path```_(Mandatory; string or array of strings)_: Specifies the path of the sound file. It is also possible to have an array of paths to fallback on. Pizzicato will attempt to load the paths in order, passing on to the next one in case of failure.
157
157
*```loop```_(Optional; boolean, defaults to false)_: If set, the file will start playing again after the end.
158
158
*```volume```_(Optional; min: 0, max: 1, defaults to 1)_: Loudness of the sound.
159
-
*```sustain```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
159
+
*```release```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
160
160
*```attack```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-in time when the sound is played.
161
161
*```detached```_(Optional; defaults to false)_: If true, the sound will not be connected to the context's destination, and thus, will not be audible.
162
162
@@ -188,7 +188,7 @@ Check the [supported audio files](#audio-formats) that can be played with Pizzic
188
188
### Sounds from the user input ([example](https://alemangui.github.io/pizzicato/#sound-from-input))
189
189
It is also possible to use the sound input from the computer. This is usually the microphone, but it could also be a line-in input. To use this, add ```source: input``` in your description. The following optional parameters are possible inside ```options``` object:
190
190
*```volume```_(Optional; min: 0, max: 1, defaults to 1)_: Loudness of the sound.
191
-
*```sustain```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
191
+
*```release```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
192
192
*```attack```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-in time when the sound is played.
193
193
*```detached```_(Optional; defaults to false)_: If true, the sound will not be connected to the context's destination, and thus, will not be audible.
194
194
@@ -205,7 +205,7 @@ For more creative freedom, Pizzicato also allows direct audio processing. Sounds
205
205
*```audioFunction```_(Mandatory; function(<audioprocessingevent>))_: Function that will be called with the audio processing event.
206
206
*```bufferSize```_(Optional; number - must be a power of 2.)_: This value controls how many sample frames will be processed at each audio process event. Lower values will result in lower latency, higher values help prevent glitches.
207
207
*```volume```_(Optional; min: 0, max: 1, defaults to 1)_: Loudness of the sound.
208
-
*```sustain```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
208
+
*```release```_(Optional; defaults to 0)_: Value in seconds that indicates the fade-out time once the sound is stopped.
209
209
*```attack```_(Optional; defaults to 0.4)_: Value in seconds that indicates the fade-in time when the sound is played.
210
210
*```detached```_(Optional; defaults to false)_: If true, the sound will not be connected to the context's destination, and thus, will not be audible.
Use the sound's ```attack``` property to modify its attack (or fade-in) value. This value eases the beginning of the sound, often avoiding unwanted clicks.
317
317
@@ -323,17 +323,17 @@ var sound = new Pizzicato.Sound();
Use the sound's ```sustain``` property to modify its sustain (or fade-out) value. This value eases the end of the sound, often avoiding unwanted clicks.
329
+
Use the sound's ```release``` property to modify its release (or fade-out) value. This value eases the end of the sound, often avoiding unwanted clicks.
330
330
331
-
*```sustain```_(min: 0, max: 10, defaults to 0.04)_: The sound's sustain.
331
+
*```release```_(min: 0, max: 10, defaults to 0.04)_: The sound's release.
0 commit comments