Web Audio Assembler Examples

3. Use schedule to change notes


		var Synth = Assembler.assemble({
			name: 'simple-synth',
			amp: { node: 'Gain', type: 'sawtooth', gain: 0.2, connect: '$context' },
			filter: { node: 'BiquadFilter', type: 'lowpass', frequency: 400, connect: 'amp' },
			osc: { node: 'Oscillator', frequency: 880, connect: 'filter' }
		})
		Assembler.schedule(Synth(ac), ac.currentTime,
			[	{ target: 'osc.frequency', value: freq },
				{ target: 'osc', trigger: 'start' }])