Template:PT3 MAX MAC: Difference between revisions
From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PT3_MAX_MAC"> <div class="phd-slide-deck-header"><h3>Language - Max/MSP</h3></div> <div class="phd-slides"> <div class="phd-slide"> <h2>...") |
No edit summary |
||
Line 7: | Line 7: | ||
<div class="phd-panels"> | <div class="phd-panels"> | ||
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle"> | <div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle"> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/200x-/50/max.jpg"></div> | ||
</div> | </div> | ||
<div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | <div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | ||
Line 31: | Line 31: | ||
<p>Next, download and unpack the Phidgets Max/MSP library:</p> | <p>Next, download and unpack the Phidgets Max/MSP library:</p> | ||
<p>● <span>[https:// | <p>● <span>[https://cdn.phidgets.com/downloads/phidget22/libraries/macos/Phidget22MaxMSP.zip Phidget Max/MSP library]</span></p> | ||
</div> | </div> | ||
Line 39: | Line 39: | ||
<p>After unpacking the download, navigate to the <b>externals</b> folder and copy it to your clipboard:</p> | <p>After unpacking the download, navigate to the <b>externals</b> folder and copy it to your clipboard:</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/Max_mac_externals.png"></div> | ||
</div> | </div> | ||
Line 49: | Line 49: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x150/50/Max_mac_filepreferences.png"></div> | ||
<p>You will see something similar to this:</p> | <p>You will see something similar to this:</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x120/50/Max_mac_filepreferences_locations.png"></div> | ||
</div> | </div> | ||
Line 64: | Line 64: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/Max_mac_folder.png"></div> | ||
</div> | </div> | ||
Line 75: | Line 75: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x325/50/Max_mac_examples.png"></div> | ||
</div> | </div> | ||
Line 83: | Line 83: | ||
<p>From here, select an example that will work with your Phidget and open it in Max/MSP. You can run the example by simply pressing the <b>start</b> button:</p> | <p>From here, select an example that will work with your Phidget and open it in Max/MSP. You can run the example by simply pressing the <b>start</b> button:</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x270/50/Max_run.png"></div> | ||
<p> | <p> | ||
Line 113: | Line 113: | ||
<div class="phd-panels"> | <div class="phd-panels"> | ||
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-top"> | <div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-top"> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x300/50/MSP_Example.png"></div> | ||
</div> | </div> | ||
<div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | <div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | ||
Line 134: | Line 134: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_GetSerial.png"></div> | ||
<p> | <p> | ||
Line 142: | Line 142: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_GetVoltage.png"></div> | ||
</div> | </div> | ||
Line 193: | Line 193: | ||
<p>In the case of a Voltage Input, we name it <b>PhidgetVoltageInput</b>:</p> | <p>In the case of a Voltage Input, we name it <b>PhidgetVoltageInput</b>:</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_VoltageInput_generic.png"></div> | ||
<p> | <p> | ||
Line 201: | Line 201: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_GetVoltage.png"></div> | ||
</div> | </div> | ||
Line 235: | Line 235: | ||
<p>For instance, to open a VoltageInput with serial number 349428, you would use:</p> | <p>For instance, to open a VoltageInput with serial number 349428, you would use:</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_VoltageInput_specific.png"></div> | ||
<p>Some other examples:</p> | <p>Some other examples:</p> | ||
Line 264: | Line 264: | ||
<p>Next, in your patch you need a <b>PhidgetNet</b> object. To automatically find local networks, send it a message saying <b>enableServerDiscovery</b>.</p> | <p>Next, in your patch you need a <b>PhidgetNet</b> object. To automatically find local networks, send it a message saying <b>enableServerDiscovery</b>.</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_Enable_Server_Discovery.png"></div> | ||
<p> | <p> | ||
Line 270: | Line 270: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/MaxMSP_Remote.png"></div> | ||
</div> | </div> | ||
Line 302: | Line 302: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x100/50/MaxMSP_get_and_set.png"></div> | ||
<p>To sample at a fixed rate, use the start and stop messages to start and stop the data flow, respectively.</p> | <p>To sample at a fixed rate, use the start and stop messages to start and stop the data flow, respectively.</p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x65/50/MaxMSP_Start_Stop.png"></div> | ||
</div> | </div> | ||
Line 320: | Line 320: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x100/50/MaxMSP_Routing.png"></div> | ||
<p> | <p> | ||
Line 327: | Line 327: | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https:// | <div class="phd-lazy-image" data-src="https://cdn.phidgets.com/decks/PT3_MAX_MAC/-x80/50/MaxMSP_Error_Event.png"></div> | ||
</div> | </div> | ||