Skip to content

Commit bd1d71a

Browse files
committed
docs: added wave shapes img
1 parent 46d0521 commit bd1d71a

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/audiodocs/docs/types/oscillator-type.mdx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ sidebar_position: 6
66

77
`OscillatorType` is a string that specifies shape of an oscillator wave
88

9-
## `sine`
10-
11-
## `square`
12-
13-
## `sawtooth`
14-
15-
## `triangle`
16-
17-
## `custom`
18-
19-
This value can't be set explicitly, but it allows user to set any shape. See [`setPeriodicWave`](/sources/oscillator-node#setperiodicwave) for reference.
20-
219
```jsx
2210
type OscillatorType =
2311
| 'sine'
@@ -26,3 +14,11 @@ type OscillatorType =
2614
| 'triangle'
2715
| 'custom';
2816
```
17+
18+
Below you can see possible names with shapes corresponding to them.
19+
![](/img/oscillator-waves.png)
20+
21+
## `custom`
22+
23+
This value can't be set explicitly, but it allows user to set any shape. See [`setPeriodicWave`](/sources/oscillator-node#setperiodicwave) for reference.
24+
Loading

0 commit comments

Comments
 (0)