It is possible to provide a periodic wave form (see this MDN documentation)
by providing a periodic wave object.
These instrument types suppport continued
tones.
‘wave’ object properties
A top-level object wave
is a list of objects with the following properties.
Property | type | Description |
---|---|---|
name |
String |
(Required) The name for indexing. |
real |
Array[Number] |
(Required) Sine terms. |
image |
Array[Number] |
(Required) Cosine terms. |
disableNormalization |
Boolean |
(Defalut: false ) Whether to normalize the wave—fix the maximum amplitude at 1 (see the MDN doc). |