Thay đổi tốc độ (tempo) nhanh/chậm nhưng vẫn giữ nguyên cao độ (hoặc ngược lại). Định dạng hỗ trợ:
// Connect the graph: Source -> Soundtouch -> Destination (Speakers) sourceNode.connect(soundtouchNode); soundtouchNode.connect(ctx.destination);
// resume audio context on first user interaction (browser policy) function resumeOnFirstTouch() if (audioCtx && audioCtx.state === 'suspended') audioCtx.resume().then(() => playStatusSpan.innerText = '🎧 ready'; ).catch(e=>console.warn);
button:disabled background-color: #ccc; cursor: not-allowed;
Dưới đây là một câu chuyện ngắn dựa trên ý tưởng về việc phát triển một ứng dụng thay đổi cao độ (pitch shifter) bằng HTML5.
registerProcessor('pitch-shifter', PitchShifterProcessor);