Chapter 181: Controlling Pitch
Core Idea
Use the toneFrequency prop to control the pitch of audio during server-side rendering. It is supported by <Audio>, <Video>, <Html5Audio>, <Html5Video>, and <OffthreadVideo>.
Key Concepts
- Controlling Pitch: Use the toneFrequency prop to control the pitch of audio during server-side rendering.
Code Examples
export const MyComposition = () => {
return (
<AbsoluteFill>
<div>Hello World!</div>
<Html5Audio src={staticFile('audio.mp3')} toneFrequency={0.8} />
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for Controlling Pitch from the official docs.
Key Takeaways
- Understand controlling pitch when working with Controlling Pitch.
Connects To
- Animatedimage: related page in the Assets & Media section.
- Delaying: related page in the Assets & Media section.
- Exporting: related page in the Assets & Media section.