-
Notifications
You must be signed in to change notification settings - Fork 13
/
effects.js
84 lines (82 loc) · 2.31 KB
/
effects.js
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
let effects = [
{
label: "Echo",
type: "mic",
params: [
{ label: "Delay Time", key: "delayTime", min: 0, max: 1, val: 0.4 },
{ label: "Feedback", key: "feedback", min: 0, max: 1, val: 0.1 },
],
function: "FeedbackDelay",
icon: require("./images/echo.gif"),
},
{
label: "Bad Connection",
params: [{ label: "Choppiness", key: "frequency", min: 100, max: 500, val: 250 }],
icon: require("./images/shift.gif"),
},
// {
// label: "Pitch Shift",
// type: "mic",
// params: [{ label: "Interval", key: "interval", min: -22, max: 22, val: 0 }],
// function: "PitchShift",
// icon: require("./images/shift.gif"),
// },
// {
// label: "Chorus",
// type: "mic",
// params: [
// { label: "Frequency", key: "frequency", min: 0, max: 20, val: 4 },
// { label: "Delay Time", key: "delayTime", min: 0, max: 20, val: 1 },
// { label: "Depth", key: "depth", min: 0, max: 1, val: 0.1 },
// ],
// function: "Chorus",
// icon: require("./images/echo.gif"),
// },
// {
// label: "Distortion",
// type: "mic",
// params: [
// { label: "Distortion", key: "distortion", min: 0, max: 1, val: 0.2 },
// ],
// function: "Distortion",
// icon: require("./images/echo.gif"),
// },
{
label: "Upset Baby",
file: "assets/185575__ciccarelli__crying-baby.wav.mp3",
icon: require("./images/baby.gif"),
},
{
label: "Man Weeping",
file: "assets/200428__qubodup__man-crying-and-whimmering.flac.mp3",
icon: require("./images/tear.gif"),
},
{
label: "Wind",
file: "assets/244807__meepalicious__strong-wind-and-moving-cars.wav.mp3",
icon: require("./images/wind.gif"),
},
{
label: "Dogs",
file: "assets/474484__rpdud27__aaa-3-0-1.wav.mp3",
icon: require("./images/dog.gif"),
},
{
label: "Construction",
file: "assets/400991__inspectorj__construction-jackhammer-excavator-a.wav.mp3",
icon: require("./images/hammer.gif"),
},
{
label: "Urination",
file: "assets/473997__nomerodin1__pee-in-the-toilet.wav.mp3",
icon: require("./images/toilet.gif"),
},
];
for (let e of effects) {
if (e.file) {
e.params = [{ label: "Volume", key: "volume", min: -50, max: 12, val: -10 }];
e.type = "file";
e.function = "Player";
}
}
export default effects;