-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioParamDescriptor.cljs
89 lines (68 loc) · 2.13 KB
/
AudioParamDescriptor.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
(ns web.audio.AudioParamDescriptor
"The AudioParamDescriptor dictionary of the Web Audio API specifies
for an `web.audio.AudioParam` objects."
(:refer-clojure :exclude [name]))
(defn name
"Property.
The DOMString which represents the name of the AudioParam. Under
name the AudioParam will be available in the parameters property
the node, and under this name the AudioWorkletProcessor.process
will acquire the calculated values of this AudioParam."
[this]
(-> this (.-name)))
(defn set-name!
"Property.
The DOMString which represents the name of the AudioParam. Under
name the AudioParam will be available in the parameters property
the node, and under this name the AudioWorkletProcessor.process
will acquire the calculated values of this AudioParam."
[this val]
(aset this "name" val))
(defn automation-rate
"Property.
Either \"a-rate\", or \"k-rate\" string which represents an automation
of this AudioParam. Defaults to \"a-rate\"."
[this]
(-> this (.-automationRate)))
(defn set-automation-rate!
"Property.
Either \"a-rate\", or \"k-rate\" string which represents an automation
of this AudioParam. Defaults to \"a-rate\"."
[this val]
(aset this "automationRate" val))
(defn min-value
"Property.
A float which represents minimum value of the AudioParam. Defaults
-3.4028235e38."
[this]
(-> this (.-minValue)))
(defn set-min-value!
"Property.
A float which represents minimum value of the AudioParam. Defaults
-3.4028235e38."
[this val]
(aset this "minValue" val))
(defn max-value
"Property.
A float which represents maximum value of the AudioParam. Defaults
3.4028235e38."
[this]
(-> this (.-maxValue)))
(defn set-max-value!
"Property.
A float which represents maximum value of the AudioParam. Defaults
3.4028235e38."
[this val]
(aset this "maxValue" val))
(defn default-value
"Property.
A float which represents initial value of the AudioParam. Defaults
0."
[this]
(-> this (.-defaultValue)))
(defn set-default-value!
"Property.
A float which represents initial value of the AudioParam. Defaults
0."
[this val]
(aset this "defaultValue" val))