This repository was archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpatch.js
More file actions
111 lines (110 loc) · 1.93 KB
/
patch.js
File metadata and controls
111 lines (110 loc) · 1.93 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
const patch = {
name: 'default',
type: 'default',
account_id: null,
author: null,
oscillators: [
{
id: 1,
type: 'sawtooth',
detune: 0,
octave: 3,
gain: 100
},
{
id: 2,
type: 'sawtooth',
detune: 0,
octave: 3,
gain: 100
},
{
id: 3,
type: 'sawtooth',
detune: 0,
octave: 3,
gain: 100
}
],
filter: {
type: 'lowpass',
frequency: 10000,
Q: 1,
gain: 1,
attack: 1000,
decay: 3000,
sustain: 1000,
release: 300
},
effectBus: [{
type: 'delay',
feedback: 0.05, //0 to 1+
delayTime: 10, //1 to 10000 milliseconds
wetLevel: 0.25, //0 to 1+
dryLevel: 1, //0 to 1+
cutoff: 2000, //cutoff frequency of the built in lowpass-filter. 20 to 22050
bypass: 0,
order: 6
},
{
type: 'chorus',
rate: 1.5,
feedback: 0.2,
delay: 0.0045,
bypass: 1,
order: 1
},
{
type: 'moog',
cutoff: 0.9, //0 to 1
resonance: 1, //0 to 4
bufferSize: 256,
order: 2
},
{
type: 'phaser',
rate: 1.2, //0.01 to 8 is a decent range, but higher values are possible
depth: 0.3, //0 to 1
feedback: 0.2, //0 to 1+
stereoPhase: 30, //0 to 180
baseModulationFrequency: 700, //500 to 1500
bypass: 0,
order: 3
},
{
type: 'ping_pong',
wetLevel: 0, //0 to 1
feedback: 0.3, //0 to 1
delayTimeLeft: 200, //1 to 10000 (milliseconds)
delayTimeRight: 200, //1 to 10000 (milliseconds)
order: 4
},
{
type: 'overdrive',
outputGain: 0.5, //0 to 1+
drive: 0.7, //0 to 1
curveAmount: 1, //0 to 1
algorithmIndex: 0, //0 to 5, selects one of our drive algorithms
bypass: 1,
order: 5
}
],
compressor: {
threshold: 0, //-100 to 0
makeupGain: 0, //0 and up (in decibels)
attack: 20, //0 to 1000
release: 200, //0 to 3000
ratio: 3, //1 to 20
knee: 6, //0 to 40
automakeup: true, //true/false
bypass: 0
},
adsr: {
attack: 30,
decay: 100,
sustain: .3,
release: 3000
},
masterGain: 1
};
module.exports = patch;