Skip to content

Commit

Permalink
chore: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Sep 4, 2024
1 parent f6fd0ff commit bdcfc6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
20 changes: 10 additions & 10 deletions site/.source/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions site/examples/fly/FlyMono.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
createStateVariableFilterNode,
createVcaNode,
PolyblepOscillatorWorkletNode,
PolyblepWaveformType,
StateVariableFilterWorkletNode,
} from "synthlet";

Expand All @@ -47,15 +46,6 @@ export function FlyMono() {
<div className="mt-4">
<h2 className="border-b border-blue-400">Oscillator</h2>
<div className="mt-2 grid grid-cols-4 gap-2 w-[30rem]">
<Selector
name="type"
selectClassName="bg-blue-700 p-1 rounded border-blue-300 col-span-3"
values={WAVEFORM_TYPES}
initialValue={WAVEFORM_TYPES[1]}
onChange={(value) => {
synth.osc.type = value as PolyblepWaveformType;
}}
/>
<FrequencySelector
onChange={(freq) => {
return synth.osc.frequency.setValueAtTime(freq, 0);
Expand Down

0 comments on commit bdcfc6f

Please sign in to comment.