Skip to content

Commit 5bdb523

Browse files
authored
Merge pull request #6 from SubZtep/audio-render
Audio render
2 parents 0cfb87f + 489e8db commit 5bdb523

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1354
-750
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
> Oscillator for the rule.
44
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e1c91465b17f43b6abbe2af98fe0ea13)](https://www.codacy.com/manual/SubZtep/synth?utm_source=github.com&utm_medium=referral&utm_content=SubZtep/synth&utm_campaign=Badge_Grade)
6+
57
## Materials
68

7-
### Colour Palette
8-
https://coolors.co/11151c-212d40-364156-7d4e57-d66853
9+
* [Colour Palette](https://coolors.co/11151c-212d40-364156-7d4e57-d66853)

package.json

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "synth",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"private": true,
55
"homepage": "https://subztep.github.io/synth/",
66
"dependencies": {
7-
"@emotion/core": "^10.0.28",
7+
"@emotion/core": "^10.0.35",
88
"@emotion/styled": "^10.0.27",
99
"@fortawesome/fontawesome-svg-core": "^1.2.30",
1010
"@fortawesome/free-brands-svg-icons": "^5.14.0",
@@ -16,21 +16,23 @@
1616
"@reduxjs/toolkit": "^1.4.0",
1717
"react": "^16.13.1",
1818
"react-dom": "^16.13.1",
19-
"react-flow-renderer": "^5.1.1",
19+
"react-flow-renderer": "^5.4.1",
2020
"react-hotkeys": "^2.0.0",
2121
"react-redux": "^7.2.1",
22-
"react-scripts": "3.4.1",
23-
"react-toastify": "^6.0.8"
22+
"react-scripts": "3.4.3",
23+
"react-toastify": "^6.0.8",
24+
"uuid": "^8.3.0"
2425
},
2526
"devDependencies": {
26-
"@testing-library/jest-dom": "^5.11.2",
27+
"@testing-library/jest-dom": "^5.11.3",
2728
"@testing-library/react": "^10.4.8",
28-
"@testing-library/user-event": "^12.1.0",
29-
"@types/jest": "^26.0.9",
30-
"@types/node": "^14.0.27",
31-
"@types/react": "^16.9.44",
29+
"@testing-library/user-event": "^12.1.1",
30+
"@types/jest": "^26.0.10",
31+
"@types/node": "^14.6.0",
32+
"@types/react": "^16.9.46",
3233
"@types/react-dom": "^16.9.8",
3334
"@types/react-redux": "^7.1.9",
35+
"@types/uuid": "^8.3.0",
3436
"cross-env": "^7.0.2",
3537
"husky": "^4.2.5",
3638
"lint-staged": "^10.2.11",

public/samples/Synth.json

+330
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,330 @@
1+
{
2+
"HiHat": {
3+
"destination": {
4+
"id": "destination",
5+
"connectIds": [],
6+
"position": {
7+
"x": 1104,
8+
"y": 336
9+
}
10+
},
11+
"analysers": [],
12+
"gains": [
13+
{
14+
"id": "10",
15+
"connectIds": ["destination"],
16+
"params": [
17+
{
18+
"name": "gain",
19+
"call": "setValueAtTime",
20+
"values": [0.00001, 0]
21+
},
22+
{
23+
"name": "gain",
24+
"call": "exponentialRampToValueAtTime",
25+
"values": [1, 0.02]
26+
},
27+
{
28+
"name": "gain",
29+
"call": "exponentialRampToValueAtTime",
30+
"values": [0.3, 0.03]
31+
},
32+
{
33+
"name": "gain",
34+
"call": "exponentialRampToValueAtTime",
35+
"values": [0.00001, 0.3]
36+
}
37+
],
38+
"position": {
39+
"x": 736,
40+
"y": 272
41+
}
42+
}
43+
],
44+
"biquadFilters": [
45+
{
46+
"id": "2",
47+
"connectIds": ["3"],
48+
"type": "bandpass",
49+
"params": [
50+
{
51+
"name": "frequency",
52+
"call": "setValueAtTime",
53+
"values": [10000, 0]
54+
}
55+
],
56+
"position": {
57+
"x": 160,
58+
"y": 288
59+
}
60+
},
61+
{
62+
"id": "3",
63+
"connectIds": ["10"],
64+
"type": "highpass",
65+
"params": [
66+
{
67+
"name": "frequency",
68+
"call": "setValueAtTime",
69+
"values": [7000, 0]
70+
}
71+
],
72+
"position": {
73+
"x": 448,
74+
"y": 288
75+
}
76+
}
77+
],
78+
"oscillators": [
79+
{
80+
"id": "4",
81+
"connectIds": ["2"],
82+
"type": "square",
83+
"params": [
84+
{
85+
"name": "frequency",
86+
"call": "setValueAtTime",
87+
"values": [80, 0]
88+
},
89+
{
90+
"name": "frequency",
91+
"call": "setValueAtTime",
92+
"values": [0, 0.2]
93+
}
94+
],
95+
"position": {
96+
"x": -96,
97+
"y": -224
98+
}
99+
},
100+
{
101+
"id": "5",
102+
"connectIds": ["2"],
103+
"type": "square",
104+
"params": [
105+
{
106+
"name": "frequency",
107+
"call": "setValueAtTime",
108+
"values": [120, 0]
109+
},
110+
{
111+
"name": "frequency",
112+
"call": "setValueAtTime",
113+
"values": [0, 0.2]
114+
}
115+
],
116+
"position": {
117+
"x": 160,
118+
"y": -224
119+
}
120+
},
121+
{
122+
"id": "6",
123+
"connectIds": ["2"],
124+
"type": "square",
125+
"params": [
126+
{
127+
"name": "frequency",
128+
"call": "setValueAtTime",
129+
"values": [166.4, 0]
130+
},
131+
{
132+
"name": "frequency",
133+
"call": "setValueAtTime",
134+
"values": [0, 0.2]
135+
}
136+
],
137+
"position": {
138+
"x": 448,
139+
"y": -224
140+
}
141+
},
142+
{
143+
"id": "7",
144+
"connectIds": ["2"],
145+
"type": "square",
146+
"params": [
147+
{
148+
"name": "frequency",
149+
"call": "setValueAtTime",
150+
"values": [217.2, 0]
151+
},
152+
{
153+
"name": "frequency",
154+
"call": "setValueAtTime",
155+
"values": [0, 0.2]
156+
}
157+
],
158+
"position": {
159+
"x": 736,
160+
"y": -224
161+
}
162+
},
163+
{
164+
"id": "8",
165+
"connectIds": ["2"],
166+
"type": "square",
167+
"params": [
168+
{
169+
"name": "frequency",
170+
"call": "setValueAtTime",
171+
"values": [271.6, 0]
172+
},
173+
{
174+
"name": "frequency",
175+
"call": "setValueAtTime",
176+
"values": [0, 0.2]
177+
}
178+
],
179+
"position": {
180+
"x": 1024,
181+
"y": -224
182+
}
183+
},
184+
{
185+
"id": "9",
186+
"connectIds": ["2"],
187+
"type": "square",
188+
"params": [
189+
{
190+
"name": "frequency",
191+
"call": "setValueAtTime",
192+
"values": [328.4, 0]
193+
},
194+
{
195+
"name": "frequency",
196+
"call": "setValueAtTime",
197+
"values": [0, 0.2]
198+
}
199+
],
200+
"position": {
201+
"x": 1312,
202+
"y": -224
203+
}
204+
}
205+
]
206+
},
207+
"sequencer": {
208+
"BPM": 140,
209+
"notesPerBeat": 4,
210+
"beatsPerBar": 4,
211+
"bars": {
212+
"350a2688-a2ed-45a1-a77b-e767b17f5f02": {
213+
"soundName": "Kick",
214+
"steps": [
215+
440,
216+
null,
217+
null,
218+
null,
219+
440,
220+
null,
221+
null,
222+
null,
223+
440,
224+
null,
225+
null,
226+
null,
227+
440,
228+
null,
229+
440,
230+
null
231+
]
232+
},
233+
"fd882def-f9e9-49f3-8bc6-6251acb69682": {
234+
"soundName": "HiHat",
235+
"steps": [
236+
null,
237+
null,
238+
440,
239+
440,
240+
null,
241+
null,
242+
440,
243+
440,
244+
null,
245+
null,
246+
440,
247+
440,
248+
null,
249+
null,
250+
null,
251+
440
252+
]
253+
}
254+
}
255+
},
256+
"Kick": {
257+
"destination": {
258+
"id": "destination",
259+
"connectIds": [],
260+
"position": {
261+
"x": 704,
262+
"y": 544
263+
}
264+
},
265+
"analysers": [
266+
{
267+
"id": "3",
268+
"connectIds": ["destination"],
269+
"fftSize": 2048,
270+
"color": "#962813",
271+
"lineWidth": 4,
272+
"position": {
273+
"x": 896,
274+
"y": 368
275+
}
276+
}
277+
],
278+
"gains": [
279+
{
280+
"id": "2",
281+
"connectIds": ["3"],
282+
"params": [
283+
{
284+
"name": "gain",
285+
"call": "setValueAtTime",
286+
"values": [1, 0]
287+
},
288+
{
289+
"name": "gain",
290+
"call": "exponentialRampToValueAtTime",
291+
"values": [0.01, 0.5]
292+
}
293+
],
294+
"position": {
295+
"x": 800,
296+
"y": -32
297+
}
298+
}
299+
],
300+
"biquadFilters": [],
301+
"oscillators": [
302+
{
303+
"id": "1",
304+
"connectIds": ["2"],
305+
"type": "sine",
306+
"params": [
307+
{
308+
"name": "frequency",
309+
"call": "setValueAtTime",
310+
"values": [150, 0]
311+
},
312+
{
313+
"name": "frequency",
314+
"call": "exponentialRampToValueAtTime",
315+
"values": [0.01, 0.5]
316+
},
317+
{
318+
"name": "frequency",
319+
"call": "setValueAtTime",
320+
"values": [0, 0.5]
321+
}
322+
],
323+
"position": {
324+
"x": 384,
325+
"y": -32
326+
}
327+
}
328+
]
329+
}
330+
}

0 commit comments

Comments
 (0)