{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu

เฟด (Fade) คือการเปลี่ยนแปลงระดับเสียงอย่างค่อยเป็นค่อยไป ตั้งแต่เงียบไปจนถึงดัง (fade in) หรือจากดังไปจนเงียบ (fade out) ใช้เป็นเทคนิคการเปลี่ยนผ่านที่ราบรื่นในตอนต้นและตอนท้ายของเพลงหรือคลิปเสียง

รายละเอียดทางเทคนิค

เฟดใช้ envelope curve ที่คูณกับค่าแอมพลิจูดของตัวอย่าง ประเภท curve หลัก: Linear (เปลี่ยนเท่ากัน), Logarithmic (ฟังเป็นธรรมชาติกว่าเพราะสอดคล้องกับการรับรู้ของหูมนุษย์), Exponential (เปลี่ยนเร็วในตอนต้น/ท้าย) และ S-curve (ราบรื่นที่สุด) Crossfade ผสม fade out ของส่วนหนึ่งกับ fade in ของอีกส่วนเพื่อการเปลี่ยนผ่านที่ต่อเนื่อง

ตัวอย่าง

```javascript
// Fade: Web Audio API example
const audioCtx = new AudioContext();
const response = await fetch('audio.mp3');
const buffer = await audioCtx.decodeAudioData(await response.arrayBuffer());
const source = audioCtx.createBufferSource();
source.buffer = buffer;
source.connect(audioCtx.destination);
source.start();
```

เครื่องมือที่เกี่ยวข้อง

คำศัพท์ที่เกี่ยวข้อง