Skip to content

Commit 9fb6af8

Browse files
committed
updated kick synthesizer
1 parent 3144fff commit 9fb6af8

5 files changed

Lines changed: 2900 additions & 357 deletions

File tree

mercury_ide/code/mercury.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Dict = require('./dictionary.js');
2121

2222
var dict = new Dict();
2323

24-
let DEBUG = true;
24+
let DEBUG = false;
2525
let AUTO_COPY = true;
2626

2727
const handlers = {
@@ -641,10 +641,10 @@ function mainParse(lines){
641641
}
642642
});
643643
post('@ast', def);
644-
}
644+
}*/
645645
}
646-
*/
647-
// max.outlet('done');
646+
647+
max.outlet('done');
648648

649649
time = Date.now() - time;
650650
max.post('parsed code succesful within: ' + time + ' ms');

mercury_ide/data/initials.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@
66
"env" : [ 2, 400, 0, 0 ],
77
"pan" : 0,
88
"note" : [ 0, 0 ],
9+
"range" : [ 0, 4 ],
910
"res" : 0.9,
1011
"fm_index" : 1,
1112
"fm_depth" : 0.5,
1213
"fm_env" : [ 5, 200, 0, 0 ],
1314
"stretch" : 0,
1415
"slide" : 0,
15-
"wave2" : [ "off" ],
16-
"noise" : [ "off" ],
16+
"wave2" : "off",
17+
"noise" : 0,
1718
"deep" : 0,
1819
"name" : "no_name",
1920
"group" : "no_group",
2021
"useDetune" : 0,
2122
"sendOSC" : 0,
22-
"clock" : 0
23+
"clock" : 0,
24+
"wave" : "sine",
25+
"snap" : 0.2
2326
}
2427
,
2528
"polySynth" : {

mercury_ide/dev/kick-dev.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
set tempo 100
3+
4+
ring lns pisano(7)
5+
ring nps norm(lns)
6+
ring nps subtract(1 nps)
7+
ring lns multiply(lns 500)
8+
9+
ring att pisano(7)
10+
ring att multiply(att 5)
11+
12+
new synth kick time(1/4) shape(200)
13+
14+
// new synth kick time(1/4) shape(50 300) wave(sine) note(-5 0) range(0 5) fx(kink 1.2) snap(1)
15+
16+
// new synth kick time(1/16) shape(10 lns) wave(sine) snap(0.7) fx(chip nps) gain(1) name(kck) note(0 0) range()
17+
18+
// set kck fx(reverb 0.2 19)
19+
// set kck fx(delay 5/16 4/16 0.4)
20+
21+
// new sample hat_min time(1/4) gain(0.3)
22+
// new sample kick_min time(1/4)
23+
silence

mercury_ide/patchers/_mercury_main.maxpat

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,30 @@
3838
"style" : "",
3939
"subpatcher_template" : "",
4040
"boxes" : [ {
41+
"box" : {
42+
"id" : "obj-380",
43+
"maxclass" : "newobj",
44+
"numinlets" : 1,
45+
"numoutlets" : 1,
46+
"outlettype" : [ "clear" ],
47+
"patching_rect" : [ 2162.333333333333485, 195.0, 41.0, 22.0 ],
48+
"text" : "t clear"
49+
}
50+
51+
}
52+
, {
53+
"box" : {
54+
"id" : "obj-319",
55+
"maxclass" : "newobj",
56+
"numinlets" : 1,
57+
"numoutlets" : 3,
58+
"outlettype" : [ "", "", "int" ],
59+
"patching_rect" : [ 2162.333333333333485, 226.0, 50.0, 22.0 ],
60+
"text" : "console"
61+
}
62+
63+
}
64+
, {
4165
"box" : {
4266
"id" : "obj-415",
4367
"maxclass" : "newobj",
@@ -43529,7 +43553,7 @@
4352943553
"numinlets" : 1,
4353043554
"numoutlets" : 1,
4353143555
"outlettype" : [ "" ],
43532-
"patching_rect" : [ 2117.333333333333485, 135.0, 36.0, 22.0 ],
43556+
"patching_rect" : [ 2123.33333333333394, 135.0, 36.0, 22.0 ],
4353343557
"text" : "defer"
4353443558
}
4353543559

@@ -43541,7 +43565,7 @@
4354143565
"numinlets" : 1,
4354243566
"numoutlets" : 1,
4354343567
"outlettype" : [ "" ],
43544-
"patching_rect" : [ 2074.0, 135.0, 36.0, 22.0 ],
43568+
"patching_rect" : [ 2084.333333333333485, 135.0, 36.0, 22.0 ],
4354543569
"text" : "defer"
4354643570
}
4354743571

@@ -43552,7 +43576,7 @@
4355243576
"maxclass" : "newobj",
4355343577
"numinlets" : 1,
4355443578
"numoutlets" : 0,
43555-
"patching_rect" : [ 2162.333333333333485, 135.0, 86.0, 22.0 ],
43579+
"patching_rect" : [ 2186.0, 135.0, 86.0, 22.0 ],
4355643580
"text" : "s priorityLoad"
4355743581
}
4355843582

@@ -43610,7 +43634,7 @@
4361043634
"maxclass" : "newobj",
4361143635
"numinlets" : 1,
4361243636
"numoutlets" : 0,
43613-
"patching_rect" : [ 2074.0, 195.0, 69.0, 22.0 ],
43637+
"patching_rect" : [ 2084.333333333333485, 195.0, 69.0, 22.0 ],
4361443638
"text" : "s afterLoad"
4361543639
}
4361643640

@@ -43622,7 +43646,7 @@
4362243646
"numinlets" : 1,
4362343647
"numoutlets" : 4,
4362443648
"outlettype" : [ "bang", "bang", "bang", "bang" ],
43625-
"patching_rect" : [ 2045.333333333333485, 105.0, 106.0, 22.0 ],
43649+
"patching_rect" : [ 2045.333333333333485, 105.0, 136.000000000000455, 22.0 ],
4362643650
"text" : "t b b b b"
4362743651
}
4362843652

@@ -43669,7 +43693,7 @@
4366943693
"maxclass" : "newobj",
4367043694
"numinlets" : 1,
4367143695
"numoutlets" : 0,
43672-
"patching_rect" : [ 2117.333333333333485, 166.0, 71.0, 22.0 ],
43696+
"patching_rect" : [ 2123.33333333333394, 166.0, 71.0, 22.0 ],
4367343697
"text" : "s mainLoad"
4367443698
}
4367543699

@@ -45095,8 +45119,6 @@
4509545119
"saved_object_attributes" : {
4509645120
"autostart" : 1,
4509745121
"defer" : 0,
45098-
"node_bin_path" : "",
45099-
"npm_bin_path" : "",
4510045122
"watch" : 1
4510145123
}
4510245124
,
@@ -48951,7 +48973,6 @@
4895148973
"numoutlets" : 1,
4895248974
"outlettype" : [ "" ],
4895348975
"patching_rect" : [ 485.5, 90.0, 67.0, 22.0 ],
48954-
"presentation_linecount" : 2,
4895548976
"text" : "osc_out $1"
4895648977
}
4895748978

@@ -52036,6 +52057,8 @@
5203652057
"saved_object_attributes" : {
5203752058
"autostart" : 0,
5203852059
"defer" : 1,
52060+
"node_bin_path" : "",
52061+
"npm_bin_path" : "",
5203952062
"watch" : 1
5204052063
}
5204152064
,
@@ -66673,13 +66696,13 @@
6667366696
"presentation_rect" : [ 210.0, 259.5, 135.0, 47.0 ],
6667466697
"saved_attribute_attributes" : {
6667566698
"valueof" : {
66699+
"parameter_shortname" : "volume",
6667666700
"parameter_type" : 0,
6667766701
"parameter_unitstyle" : 4,
6667866702
"parameter_mmin" : -70.0,
6667966703
"parameter_longname" : "volume",
6668066704
"parameter_mmax" : 6.0,
66681-
"parameter_initial" : [ 0.0 ],
66682-
"parameter_shortname" : "volume"
66705+
"parameter_initial" : [ 0.0 ]
6668366706
}
6668466707

6668566708
}
@@ -67558,10 +67581,19 @@
6755867581
"source" : [ "obj-211", 0 ]
6755967582
}
6756067583

67584+
}
67585+
, {
67586+
"patchline" : {
67587+
"destination" : [ "obj-380", 0 ],
67588+
"order" : 1,
67589+
"source" : [ "obj-211", 3 ]
67590+
}
67591+
6756167592
}
6756267593
, {
6756367594
"patchline" : {
6756467595
"destination" : [ "obj-5", 0 ],
67596+
"order" : 0,
6756567597
"source" : [ "obj-211", 3 ]
6756667598
}
6756767599

@@ -68917,6 +68949,13 @@
6891768949
"source" : [ "obj-379", 0 ]
6891868950
}
6891968951

68952+
}
68953+
, {
68954+
"patchline" : {
68955+
"destination" : [ "obj-319", 0 ],
68956+
"source" : [ "obj-380", 0 ]
68957+
}
68958+
6892068959
}
6892168960
, {
6892268961
"patchline" : {

0 commit comments

Comments
 (0)