🎥 Make videos programmatically with React
Remove glow from audio oscilloscope
JonnyBurgerf62000ffe8d4
diff --git a/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx b/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsxindex 80322396ad..674c5f640c 100644--- a/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx+++ b/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx@@ -101,7 +101,7 @@ const AudioOscilloscopeContent: React.FC<{dataOffsetInSeconds,durationInSeconds: windowInSeconds,normalize: false,- numberOfSamples: 128,+ numberOfSamples: 64,outputRange: 'minus-one-to-one',startTimeInSeconds: frame / fps - windowInSeconds / 2,}).map((sample) => sample.amplitude)@@ -137,25 +137,14 @@ const AudioOscilloscopeContent: React.FC<{strokeWidth={1}/>{path ? (- <>- <path- d={path}- fill="none"- stroke={lineColor}- strokeLinecap="round"- strokeLinejoin="round"- strokeOpacity={0.22}- strokeWidth={lineWidth * 4}- />- <path- d={path}- fill="none"- stroke={lineColor}- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={lineWidth}- />- </>+ <path+ d={path}+ fill="none"+ stroke={lineColor}+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={lineWidth}+ />) : null}</svg></div>diff --git a/packages/docs/elements/audio/oscilloscope/index.mdx b/packages/docs/elements/audio/oscilloscope/index.mdxindex 6055cb03a6..7c8a7248df 100644--- a/packages/docs/elements/audio/oscilloscope/index.mdx+++ b/packages/docs/elements/audio/oscilloscope/index.mdx@@ -1,6 +1,6 @@---title: Audio Oscilloscope-description: A glowing oscilloscope waveform for visualizing voices, podcasts, and other audio.+description: An oscilloscope waveform for visualizing voices, podcasts, and other audio.image: https://remotion.media/elements/audio-oscilloscope-preview.png---diff --git a/packages/docs/src/components/Elements/element-definitions.ts b/packages/docs/src/components/Elements/element-definitions.tsindex f3d2e7c6f4..105f137afe 100644--- a/packages/docs/src/components/Elements/element-definitions.ts+++ b/packages/docs/src/components/Elements/element-definitions.ts@@ -84,7 +84,7 @@ const elementImplementations = {component: AudioOscilloscope,contributors: [{username: 'samohovets', contribution: 'Author'}],description:- 'A glowing oscilloscope waveform for visualizing voices, podcasts, and other audio.',+ 'An oscilloscope waveform for visualizing voices, podcasts, and other audio.',dependencies: [{name: '@remotion/media', version: null},{name: '@remotion/media-utils', version: null},diff --git a/packages/example/src/oscilloscope.element.tsx b/packages/example/src/oscilloscope.element.tsxindex 7fbb6c72a8..be5e289a47 100644--- a/packages/example/src/oscilloscope.element.tsx+++ b/packages/example/src/oscilloscope.element.tsx@@ -101,7 +101,7 @@ const AudioOscilloscopeContent: React.FC<{dataOffsetInSeconds,durationInSeconds: windowInSeconds,normalize: false,- numberOfSamples: 128,+ numberOfSamples: 64,outputRange: 'minus-one-to-one',startTimeInSeconds: frame / fps - windowInSeconds / 2,}).map((sample) => sample.amplitude)@@ -137,25 +137,14 @@ const AudioOscilloscopeContent: React.FC<{strokeWidth={1}/>{path ? (- <>- <path- d={path}- fill="none"- stroke={lineColor}- strokeLinecap="round"- strokeLinejoin="round"- strokeOpacity={0.22}- strokeWidth={lineWidth * 4}- />- <path- d={path}- fill="none"- stroke={lineColor}- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={lineWidth}- />- </>+ <path+ d={path}+ fill="none"+ stroke={lineColor}+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={lineWidth}+ />) : null}</svg></div>