Skip to content

Commit d259790

Browse files
committed
Send on midi channel 10.
1 parent e6f8292 commit d259790

File tree

2 files changed

+102
-11
lines changed

2 files changed

+102
-11
lines changed

Midi Note Length.maxpat

Lines changed: 101 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
,
1212
"classnamespace" : "box",
13-
"rect" : [ 440.0, 203.0, 265.0, 393.0 ],
13+
"rect" : [ 794.0, 133.0, 339.0, 420.0 ],
1414
"bglocked" : 0,
1515
"openinpresentation" : 0,
1616
"default_fontsize" : 12.0,
@@ -39,6 +39,54 @@
3939
"subpatcher_template" : "",
4040
"assistshowspatchername" : 0,
4141
"boxes" : [ {
42+
"box" : {
43+
"id" : "obj-4",
44+
"maxclass" : "message",
45+
"numinlets" : 2,
46+
"numoutlets" : 1,
47+
"outlettype" : [ "" ],
48+
"patching_rect" : [ 250.0, 138.0, 29.5, 22.0 ],
49+
"text" : "0"
50+
}
51+
52+
}
53+
, {
54+
"box" : {
55+
"id" : "obj-6",
56+
"maxclass" : "message",
57+
"numinlets" : 2,
58+
"numoutlets" : 1,
59+
"outlettype" : [ "" ],
60+
"patching_rect" : [ 206.0, 138.0, 29.5, 22.0 ],
61+
"text" : "1"
62+
}
63+
64+
}
65+
, {
66+
"box" : {
67+
"id" : "obj-3",
68+
"maxclass" : "newobj",
69+
"numinlets" : 2,
70+
"numoutlets" : 1,
71+
"outlettype" : [ "" ],
72+
"patching_rect" : [ 206.0, 197.0, 42.0, 22.0 ],
73+
"text" : "gate 1"
74+
}
75+
76+
}
77+
, {
78+
"box" : {
79+
"id" : "obj-2",
80+
"maxclass" : "newobj",
81+
"numinlets" : 2,
82+
"numoutlets" : 2,
83+
"outlettype" : [ "bang", "" ],
84+
"patching_rect" : [ 206.0, 94.0, 41.0, 22.0 ],
85+
"text" : "sel 10"
86+
}
87+
88+
}
89+
, {
4290
"box" : {
4391
"format" : 6,
4492
"id" : "obj-34",
@@ -47,7 +95,7 @@
4795
"numoutlets" : 2,
4896
"outlettype" : [ "", "bang" ],
4997
"parameter_enable" : 0,
50-
"patching_rect" : [ 77.0, 297.0, 50.0, 22.0 ]
98+
"patching_rect" : [ 118.0, 341.0, 50.0, 22.0 ]
5199
}
52100

53101
}
@@ -58,7 +106,7 @@
58106
"numinlets" : 2,
59107
"numoutlets" : 2,
60108
"outlettype" : [ "float", "" ],
61-
"patching_rect" : [ 77.0, 251.0, 35.0, 22.0 ],
109+
"patching_rect" : [ 118.0, 295.0, 35.0, 22.0 ],
62110
"text" : "timer"
63111
}
64112

@@ -70,7 +118,7 @@
70118
"numinlets" : 2,
71119
"numoutlets" : 1,
72120
"outlettype" : [ "" ],
73-
"patching_rect" : [ 77.0, 205.0, 42.0, 22.0 ],
121+
"patching_rect" : [ 118.0, 249.0, 42.0, 22.0 ],
74122
"text" : "gate 1"
75123
}
76124

@@ -82,7 +130,7 @@
82130
"numinlets" : 2,
83131
"numoutlets" : 1,
84132
"outlettype" : [ "" ],
85-
"patching_rect" : [ 181.0, 158.0, 29.5, 22.0 ],
133+
"patching_rect" : [ 162.0, 138.0, 29.5, 22.0 ],
86134
"text" : "0"
87135
}
88136

@@ -94,7 +142,7 @@
94142
"numinlets" : 2,
95143
"numoutlets" : 1,
96144
"outlettype" : [ "" ],
97-
"patching_rect" : [ 137.0, 158.0, 29.5, 22.0 ],
145+
"patching_rect" : [ 118.0, 138.0, 29.5, 22.0 ],
98146
"text" : "1"
99147
}
100148

@@ -106,7 +154,7 @@
106154
"numinlets" : 2,
107155
"numoutlets" : 2,
108156
"outlettype" : [ "bang", "" ],
109-
"patching_rect" : [ 77.0, 114.0, 41.0, 22.0 ],
157+
"patching_rect" : [ 58.0, 94.0, 41.0, 22.0 ],
110158
"text" : "sel 36"
111159
}
112160

@@ -118,7 +166,7 @@
118166
"numinlets" : 2,
119167
"numoutlets" : 2,
120168
"outlettype" : [ "bang", "" ],
121-
"patching_rect" : [ 137.0, 114.0, 47.0, 22.0 ],
169+
"patching_rect" : [ 118.0, 94.0, 47.0, 22.0 ],
122170
"text" : "sel 120"
123171
}
124172

@@ -130,7 +178,7 @@
130178
"numinlets" : 1,
131179
"numoutlets" : 3,
132180
"outlettype" : [ "int", "int", "int" ],
133-
"patching_rect" : [ 77.0, 46.0, 41.0, 22.0 ],
181+
"patching_rect" : [ 58.0, 26.0, 41.0, 22.0 ],
134182
"text" : "notein"
135183
}
136184

@@ -142,6 +190,13 @@
142190
"source" : [ "obj-1", 0 ]
143191
}
144192

193+
}
194+
, {
195+
"patchline" : {
196+
"destination" : [ "obj-2", 0 ],
197+
"source" : [ "obj-1", 2 ]
198+
}
199+
145200
}
146201
, {
147202
"patchline" : {
@@ -152,17 +207,39 @@
152207
}
153208
, {
154209
"patchline" : {
155-
"destination" : [ "obj-31", 1 ],
210+
"destination" : [ "obj-3", 1 ],
211+
"midpoints" : [ 67.5, 176.0, 238.5, 176.0 ],
156212
"source" : [ "obj-12", 0 ]
157213
}
158214

215+
}
216+
, {
217+
"patchline" : {
218+
"destination" : [ "obj-4", 0 ],
219+
"source" : [ "obj-2", 1 ]
220+
}
221+
222+
}
223+
, {
224+
"patchline" : {
225+
"destination" : [ "obj-6", 0 ],
226+
"source" : [ "obj-2", 0 ]
227+
}
228+
159229
}
160230
, {
161231
"patchline" : {
162232
"destination" : [ "obj-31", 0 ],
163233
"source" : [ "obj-28", 0 ]
164234
}
165235

236+
}
237+
, {
238+
"patchline" : {
239+
"destination" : [ "obj-31", 1 ],
240+
"source" : [ "obj-3", 0 ]
241+
}
242+
166243
}
167244
, {
168245
"patchline" : {
@@ -193,6 +270,13 @@
193270
"source" : [ "obj-32", 0 ]
194271
}
195272

273+
}
274+
, {
275+
"patchline" : {
276+
"destination" : [ "obj-3", 0 ],
277+
"source" : [ "obj-4", 0 ]
278+
}
279+
196280
}
197281
, {
198282
"patchline" : {
@@ -207,6 +291,13 @@
207291
"source" : [ "obj-5", 1 ]
208292
}
209293

294+
}
295+
, {
296+
"patchline" : {
297+
"destination" : [ "obj-3", 0 ],
298+
"source" : [ "obj-6", 0 ]
299+
}
300+
210301
}
211302
],
212303
"dependency_cache" : [ ],

seq2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
device = I2CDevice(i2c, 0x20)
3737

3838
# midi setup
39-
midi = adafruit_midi.MIDI(midi_out=usb_midi.ports[1], out_channel=0)
39+
midi = adafruit_midi.MIDI(midi_out=usb_midi.ports[1], out_channel=9)
4040

4141

4242
# enums

0 commit comments

Comments
 (0)