| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Biquad Automation Test</title> | 4 <title>Biquad Automation Test</title> |
| 5 <script src="../resources/js-test.js"></script> | 5 <script src="../resources/js-test.js"></script> |
| 6 <script src="resources/compatibility.js"></script> | 6 <script src="resources/compatibility.js"></script> |
| 7 <script src="resources/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
| 8 <script src="resources/biquad-filters.js"></script> | 8 <script src="resources/biquad-filters.js"></script> |
| 9 <script src="resources/audioparam-testing.js"></script> | 9 <script src="resources/audioparam-testing.js"></script> |
| 10 </head> | 10 </head> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 f.gain.setValueAtTime(parameters.gain[0], 0); | 283 f.gain.setValueAtTime(parameters.gain[0], 0); |
| 284 f.detune.setValueAtTime(parameters.detune[0], 0); | 284 f.detune.setValueAtTime(parameters.detune[0], 0); |
| 285 | 285 |
| 286 // Linear ramp each parameter | 286 // Linear ramp each parameter |
| 287 f.frequency.linearRampToValueAtTime(parameters.freq[1], automationEndTim
e); | 287 f.frequency.linearRampToValueAtTime(parameters.freq[1], automationEndTim
e); |
| 288 f.Q.linearRampToValueAtTime(parameters.Q[1], automationEndTime); | 288 f.Q.linearRampToValueAtTime(parameters.Q[1], automationEndTime); |
| 289 f.gain.linearRampToValueAtTime(parameters.gain[1], automationEndTime); | 289 f.gain.linearRampToValueAtTime(parameters.gain[1], automationEndTime); |
| 290 f.detune.linearRampToValueAtTime(parameters.detune[1], automationEndTime
); | 290 f.detune.linearRampToValueAtTime(parameters.detune[1], automationEndTime
); |
| 291 | 291 |
| 292 context.startRendering() | 292 context.startRendering() |
| 293 .then(createFilterVerifier(createPeakingFilter, 3.1233e-4, parameters,
b.getChannelData(0), | 293 .then(createFilterVerifier(createPeakingFilter, 6.2907e-4, parameters,
b.getChannelData(0), |
| 294 "Output of peaking filter with automation of all parameters")) | 294 "Output of peaking filter with automation of all parameters")) |
| 295 .then(done); | 295 .then(done); |
| 296 }); | 296 }); |
| 297 | 297 |
| 298 // Test that modulation of the frequency parameter of the filter works. A
sinusoid of 440 Hz | 298 // Test that modulation of the frequency parameter of the filter works. A
sinusoid of 440 Hz |
| 299 // is the test signal that is applied to a bandpass biquad filter. The fr
equency parameter of | 299 // is the test signal that is applied to a bandpass biquad filter. The fr
equency parameter of |
| 300 // the filter is modulated by a sinusoid at 103 Hz, and the frequency modu
lation varies from | 300 // the filter is modulated by a sinusoid at 103 Hz, and the frequency modu
lation varies from |
| 301 // 116 to 412 Hz. (This test was taken from the description in | 301 // 116 to 412 Hz. (This test was taken from the description in |
| 302 // https://github.com/WebAudio/web-audio-api/issues/509#issuecomment-94731
355) | 302 // https://github.com/WebAudio/web-audio-api/issues/509#issuecomment-94731
355) |
| 303 audit.defineTask("modulation", function (done) { | 303 audit.defineTask("modulation", function (done) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 // All done! | 364 // All done! |
| 365 audit.defineTask("finish", function (done) { | 365 audit.defineTask("finish", function (done) { |
| 366 finishJSTest(); | 366 finishJSTest(); |
| 367 done(); | 367 done(); |
| 368 }); | 368 }); |
| 369 | 369 |
| 370 audit.runTasks(); | 370 audit.runTasks(); |
| 371 </script> | 371 </script> |
| 372 </body> | 372 </body> |
| 373 </html> | 373 </html> |
| OLD | NEW |