{
	"addImpulse": {
		"body": [
			"addImpulse(${1:path}, ${2:callback}, ${3:errorCallback})"
		],
		"description": "Load and assign a new Impulse Response to the p5.Convolver. The impulse is added to the .impulses array. Previous impulses can be accessed with the .toggleImpulse(id) method.",
		"prefix": "addImpulse"
	},
	"convolverNode": {
		"body": [
			"convolverNode"
		],
		"description": "Internally, the p5.Convolver uses the a  Web Audio Convolver Node.",
		"prefix": "convolverNode"
	},
	"createConvolver": {
		"body": [
			"createConvolver(${1:path}, ${2:[callback]}, ${3:[errorCallback]})"
		],
		"description": "Create a p5.Convolver. Accepts a path to a soundfile  that will be used to generate an impulse response.",
		"prefix": "createConvolver"
	},
	"impulses": {
		"body": [
			"impulses"
		],
		"description": "If you load multiple impulse files using the .addImpulse method, they will be stored as Objects in this Array. Toggle between them with the toggleImpulse(id) method.",
		"prefix": "impulses"
	},
	"process": {
		"body": [
			"process(${1:src})"
		],
		"description": "Connect a source to the reverb, and assign reverb parameters.",
		"prefix": "process"
	},
	"resetImpulse": {
		"body": [
			"resetImpulse(${1:path}, ${2:callback}, ${3:errorCallback})"
		],
		"description": "Similar to .addImpulse, except that the .impulses Array is reset to save memory. A new .impulses array is created with this impulse as the only item.",
		"prefix": "resetImpulse"
	},
	"toggleImpulse": {
		"body": [
			"toggleImpulse(${1:id})"
		],
		"description": "If you have used .addImpulse() to add multiple impulses to a p5.Convolver, then you can use this method to toggle between the items in the .impulses Array. Accepts a parameter to identify which impulse you wish to use, identified either by its original filename (String) or by its position in the .impulses  Array (Number). You can access the objects in the .impulses Array directly. Each Object has two attributes: an .audioBuffer (type: Web Audio \u003ca href=\" http://webaudio.github.io/web-audio-api/#the-audiobuffer-interface\"\u003e AudioBuffer) and a .name, a String that corresponds with the original filename.",
		"prefix": "toggleImpulse"
	}
}