{"id":606,"date":"2019-11-03T20:13:51","date_gmt":"2019-11-03T09:13:51","guid":{"rendered":"https:\/\/x37v.com\/x37v\/?p=606"},"modified":"2019-11-03T22:22:27","modified_gmt":"2019-11-03T11:22:27","slug":"controlling-max-with-messages","status":"publish","type":"post","link":"https:\/\/x37v.com\/x37v\/max\/controlling-max-with-messages\/","title":{"rendered":"Controlling Max with Messages"},"content":{"rendered":"<p>This topic has come up several times on the <a href=\"https:\/\/cycling74.com\/forums\" rel=\"noopener\" target=\"_blank\">Max forums<\/a>, but I never remember what to search\/where to look to find the various <code class=\"max message\">; max<\/code> messages you can use to issue commands to Max.  Typically, <a href=\"https:\/\/cycling74.com\/author\/53287001b6e5c4135e65f1ff\" rel=\"noopener\" target=\"_blank\">Gregory Taylor<\/a> recommends that searching for &#8220;messages to max&#8221; (in Max&#8217;s search box) will point you in the right direction to find the &#8216;Controlling Max with Messages&#8217; vignette.  There are several other useful resources about messages to Max, so I am echoing them here for future reference.<\/p>\n<p>The <a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/technical_notes_topic\" rel=\"noopener\" target=\"_blank\">Technical Notes<\/a> section of the Max 8 Documentation not only contains links to a list of <code class=\"max message\">; max<\/code> messages, but also contains a handy collection of things such as messages to control MSP and Jitter (links below), and lead me to re-find a few other things that I tend to forget about (like being able to send messages to a <code>receive<\/code> object by name).<\/p>\n<ul class=\"max patcher\" style=\"list-style-type: none;\">\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/messages_to_max\" rel=\"noopener\" target=\"_blank\">A series of Max specific messages<\/a> beginning with <code class=\"max message\">; max<\/code>, eg <code class=\"max message\">; max externs<\/code> <code class=\"max message\">; max launchbrowser https:\/\/docs.cycling74.com\/max8<\/code><\/li>\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/messages_to_dsp\" rel=\"noopener\" target=\"_blank\">A series of MSP specific messages<\/a> beginning with <code class=\"max message\">; dsp<\/code>, eg <code class=\"max message\">; dsp start<\/code> <code class=\"max message\">; dsp open<\/code><\/li>\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/messages_to_jitter\" rel=\"noopener\" target=\"_blank\">A series of Jitter specific messages<\/a> beginning with <code class=\"max message\">; jitter<\/code>, eg <code class=\"max message\">; jitter html_ref jit.histogram<\/code> <code class=\"max message\">; jitter javaload 1<\/code><\/li>\n<\/ul>\n<p>There are times when it can be useful to send messages to <code class=\"max object\">receive<\/code> objects with a standalone message too.  Messages to <code class=\"max object\">receive<\/code> objects can be sent by replacing &#8216;max&#8217; with the name argument of the receive object, ie. <code class=\"max message\">; foo bar<\/code>\u00a0sends the message <code>bar<\/code> to <code class=\"max object\">receive foo<\/code>. Placeholders also work here, eg. sending <code class=\"max message\">bar<\/code> into <code class=\"max message\">; foo $1<\/code> will have the same result.<\/p>\n<p>A side note: the <a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/technical_notes_topic\" rel=\"noopener\" target=\"_blank\">Technical Notes<\/a> page also includes several links to &#8216;functional listings&#8217; of objects grouped by their &#8216;subject&#8217;:<\/p>\n<ul class=\"max patcher\" style=\"list-style-type: none;\">\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/max_functional\" rel=\"noopener\" target=\"_blank\">A Functional Listing of all Max Objects grouped by subject<\/a> (eg. control, lists, math, MIDI)<\/li>\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/msp_functional\" rel=\"noopener\" target=\"_blank\">A Functional Listing of all MSP Objects grouped by subject<\/a> (eg. filters, functions, sampling, synthesis)<\/li>\n<li><a href=\"https:\/\/docs.cycling74.com\/max8\/vignettes\/jitter_functional\" rel=\"noopener\" target=\"_blank\">A Functional Listing of all Jitter Objects grouped by subject<\/a> (eg. audio, compositing, OpenGL, spatial)<\/li>\n<\/ul>\n<p>This is a useful way to find related objects other than via their help patches.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This topic has come up several times on the Max forums, but I never remember what to search\/where to look to find the various ; max messages you can use to issue commands to Max. Typically, Gregory Taylor recommends that searching for &#8220;messages to max&#8221; (in Max&#8217;s search box) will point you in the right [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-max"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4SgL0-9M","_links":{"self":[{"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/comments?post=606"}],"version-history":[{"count":18,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/posts\/606\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/posts\/606\/revisions\/624"}],"wp:attachment":[{"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/media?parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/categories?post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/x37v.com\/x37v\/wp-json\/wp\/v2\/tags?post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}