🎥 Make videos programmatically with React
Update create-smooth-svg-path.mdx
Jonny Burgerecb2200eba12
diff --git a/packages/docs/docs/media-utils/create-smooth-svg-path.mdx b/packages/docs/docs/media-utils/create-smooth-svg-path.mdxindex a5a78f6c5b..6dd98545af 100644--- a/packages/docs/docs/media-utils/create-smooth-svg-path.mdx+++ b/packages/docs/docs/media-utils/create-smooth-svg-path.mdx@@ -8,6 +8,8 @@ _Part of the `@remotion/media-utils`_ package of helper functions.This function takes points, usually generated from [`visualizeAudioWaveform()`](/docs/visualize-audio-waveform) or [`visualizeAudio()`](/docs/visualize-audio), and adds SVG `C` (curve) statements inbetween them to create a smooth path.+## Example+```tsx twoslashimport {createSmoothSvgPath} from '@remotion/media-utils';import React from 'react';@@ -22,7 +24,9 @@ const points = [const path = createSmoothSvgPath({points});```+See a practical example [here](http://localhost:3001/docs/media-utils/visualize-audio-waveform#examples).+## See also-- [Audio visualization](/docs/audio-visualization)- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/media-utils/src/create-smooth-svg-path.ts)+- [Audio visualization](/docs/audio-visualization)