Page 1 of 1

Making a midi note from my monome

Posted: Tue Dec 08, 2009 10:50 pm
by kooldoktor
I have now spend the better part of my evening/night trying to figure out why I can't get this thing to work.
It's a bit hard to explain the problem so I have made a little M4L patch which should show the problem.
I'm not really sure that this is monome related, but any help would be much appreciated!

Code: Select all

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "prefix: box",
				"presentation_rect" : [ 6.0, 55.0, 490.0, 20.0 ],
				"id" : "obj-3",
				"fontname" : "Arial",
				"patching_rect" : [ 6.0, 27.0, 150.0, 20.0 ],
				"presentation" : 1,
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 0
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Make an empty midiclip in the the top most midiclipslot in track 2 (default 2 MIDI)\nMonome presses should trigger the message in the messagebox which will make a note in the midiclip, but it doesn't. You can trigger it manually which will make it work... but the monome presses (which should be the exact same thing),  will not work.",
				"linecount" : 14,
				"presentation_linecount" : 3,
				"presentation_rect" : [ 6.0, 1.0, 718.0, 48.0 ],
				"id" : "obj-1",
				"fontname" : "Arial",
				"patching_rect" : [ 7.0, 3.0, 153.0, 200.0 ],
				"presentation" : 1,
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 0
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "button",
				"outlettype" : [ "bang" ],
				"id" : "obj-17",
				"patching_rect" : [ 461.0, 265.0, 20.0, 20.0 ],
				"numinlets" : 1,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "triggers this message",
				"presentation_rect" : [ 422.0, 79.0, 150.0, 20.0 ],
				"id" : "obj-16",
				"fontname" : "Arial",
				"patching_rect" : [ 422.0, 9.0, 150.0, 20.0 ],
				"presentation" : 1,
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 0
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Input from monome",
				"presentation_rect" : [ 49.0, 79.0, 150.0, 20.0 ],
				"id" : "obj-15",
				"fontname" : "Arial",
				"patching_rect" : [ 74.0, 30.0, 150.0, 20.0 ],
				"presentation" : 1,
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 0
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "button",
				"outlettype" : [ "bang" ],
				"presentation_rect" : [ 5.0, 80.0, 40.0, 40.0 ],
				"id" : "obj-14",
				"patching_rect" : [ 146.0, 165.0, 20.0, 20.0 ],
				"presentation" : 1,
				"numinlets" : 1,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : ";\rtoLive call replace_selected_notes;\rtoLive call notes 1;\rtoLive call note 60 0.5 0.125 100 0;\rtoLive call done;\rtoLive call deselect_all_notes",
				"linecount" : 6,
				"presentation_linecount" : 6,
				"outlettype" : [ "" ],
				"presentation_rect" : [ 213.0, 77.0, 201.0, 87.0 ],
				"id" : "obj-13",
				"fontname" : "Arial",
				"patching_rect" : [ 148.0, 207.0, 201.0, 87.0 ],
				"presentation" : 1,
				"numinlets" : 2,
				"fontsize" : 12.0,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "r toLive",
				"outlettype" : [ "" ],
				"id" : "obj-33",
				"fontname" : "Arial",
				"patching_rect" : [ 389.0, 350.0, 50.0, 20.0 ],
				"numinlets" : 0,
				"fontsize" : 12.0,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "t b l",
				"outlettype" : [ "bang", "" ],
				"id" : "obj-9",
				"fontname" : "Arial",
				"patching_rect" : [ 444.0, 349.0, 63.5, 20.0 ],
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 2
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "live.object",
				"outlettype" : [ "" ],
				"id" : "obj-8",
				"fontname" : "Arial",
				"patching_rect" : [ 445.0, 395.0, 64.0, 20.0 ],
				"numinlets" : 2,
				"fontsize" : 12.0,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "live.path live_set tracks 1 clip_slots 0 clip",
				"outlettype" : [ "", "", "" ],
				"id" : "obj-2",
				"fontname" : "Arial",
				"patching_rect" : [ 427.0, 303.0, 229.0, 20.0 ],
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 3
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "p monome",
				"outlettype" : [ "" ],
				"id" : "obj-26",
				"fontname" : "Arial",
				"patching_rect" : [ 142.0, 128.0, 67.0, 20.0 ],
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 1,
				"patcher" : 				{
					"fileversion" : 1,
					"rect" : [ 755.0, 44.0, 656.0, 648.0 ],
					"bglocked" : 0,
					"defrect" : [ 755.0, 44.0, 656.0, 648.0 ],
					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
					"openinpresentation" : 0,
					"default_fontsize" : 12.0,
					"default_fontface" : 0,
					"default_fontname" : "Arial",
					"gridonopen" : 0,
					"gridsize" : [ 15.0, 15.0 ],
					"gridsnaponopen" : 0,
					"toolbarvisible" : 1,
					"boxanimatetime" : 200,
					"imprint" : 0,
					"enablehscroll" : 1,
					"enablevscroll" : 1,
					"devicewidth" : 0.0,
					"boxes" : [ 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "zl rev",
								"outlettype" : [ "", "" ],
								"id" : "obj-5",
								"fontname" : "Arial",
								"patching_rect" : [ 50.0, 180.0, 39.0, 20.0 ],
								"numinlets" : 2,
								"fontsize" : 12.0,
								"numoutlets" : 2
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "route 1",
								"outlettype" : [ "", "" ],
								"id" : "obj-4",
								"fontname" : "Arial",
								"patching_rect" : [ 50.0, 153.0, 48.0, 20.0 ],
								"numinlets" : 1,
								"fontsize" : 12.0,
								"numoutlets" : 2
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "zl rev",
								"outlettype" : [ "", "" ],
								"id" : "obj-3",
								"fontname" : "Arial",
								"patching_rect" : [ 50.0, 128.0, 39.0, 20.0 ],
								"numinlets" : 2,
								"fontsize" : 12.0,
								"numoutlets" : 2
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "pack i i 1",
								"outlettype" : [ "" ],
								"id" : "obj-35",
								"fontname" : "Arial",
								"patching_rect" : [ 56.0, 251.0, 58.0, 20.0 ],
								"numinlets" : 3,
								"fontsize" : 12.0,
								"numoutlets" : 1
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "unpack i i",
								"outlettype" : [ "int", "int" ],
								"id" : "obj-33",
								"fontname" : "Arial",
								"patching_rect" : [ 50.0, 217.0, 61.0, 20.0 ],
								"numinlets" : 1,
								"fontsize" : 12.0,
								"numoutlets" : 2
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "route /box/press",
								"outlettype" : [ "", "" ],
								"id" : "obj-25",
								"fontname" : "Arial",
								"patching_rect" : [ 50.0, 100.0, 97.0, 20.0 ],
								"numinlets" : 1,
								"fontsize" : 12.0,
								"numoutlets" : 2
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"outlettype" : [ "" ],
								"id" : "obj-39",
								"patching_rect" : [ 50.0, 40.0, 25.0, 25.0 ],
								"numinlets" : 0,
								"numoutlets" : 1,
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"id" : "obj-40",
								"patching_rect" : [ 54.0, 292.0, 25.0, 25.0 ],
								"numinlets" : 1,
								"numoutlets" : 0,
								"comment" : ""
							}

						}
 ],
					"lines" : [ 						{
							"patchline" : 							{
								"source" : [ "obj-39", 0 ],
								"destination" : [ "obj-25", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-25", 0 ],
								"destination" : [ "obj-3", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-3", 0 ],
								"destination" : [ "obj-4", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-4", 0 ],
								"destination" : [ "obj-5", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-5", 0 ],
								"destination" : [ "obj-33", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-33", 1 ],
								"destination" : [ "obj-35", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-33", 0 ],
								"destination" : [ "obj-35", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-35", 0 ],
								"destination" : [ "obj-40", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
 ]
				}
,
				"saved_object_attributes" : 				{
					"default_fontsize" : 12.0,
					"fontname" : "Arial",
					"globalpatchername" : "",
					"default_fontface" : 0,
					"fontface" : 0,
					"fontsize" : 12.0,
					"default_fontname" : "Arial"
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "udpreceive 8000",
				"outlettype" : [ "" ],
				"id" : "obj-19",
				"fontname" : "Arial",
				"patching_rect" : [ 142.0, 98.0, 99.0, 20.0 ],
				"numinlets" : 1,
				"fontsize" : 12.0,
				"numoutlets" : 1
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-17", 0 ],
				"destination" : [ "obj-2", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-14", 0 ],
				"destination" : [ "obj-13", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-26", 0 ],
				"destination" : [ "obj-14", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-19", 0 ],
				"destination" : [ "obj-26", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-2", 1 ],
				"destination" : [ "obj-9", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-33", 0 ],
				"destination" : [ "obj-8", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-9", 0 ],
				"destination" : [ "obj-8", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-9", 1 ],
				"destination" : [ "obj-8", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
 ]
}


Re: Making a midi note from my monome

Posted: Tue Dec 08, 2009 10:57 pm
by kooldoktor
sorry about the long code.. I don't know how to make the compact ones..

Re: Making a midi note from my monome

Posted: Thu Dec 10, 2009 4:47 am
by Machinate
"copy compressed"