![]() You can also set the size of the object in the Inspector, as well as turn on or off a border around the object. ![]() An Inspector should appear with the name of our jsui source file (‘mymatrix.js’) in the text field labeled ‘JavaScript File.’ Unlock the tutorial patch and highlight the jsui object. Instead, we set the JavaScript source file using the jsui object’s Inspector. Because it is a graphical object, there is no object box to type in the name of the file. Like the js object, the jsui object gets its program from a file written in JavaScript saved somewhere in the search path. Our jsui communicates with the router object by sending lists (in the format input output state) that tell the router object to pass messages received at an inlet to all the appropriate outlets given the jsui object’s current configuration. The columns represent the input to the router object the rows specify the output. Our jsui object uses JavaScript code to emulate some of the functionality of the Max matrixctrl object. The router object will now pass messages from the first slider above to the first slider below, and so on. The jsui object should update to show a diagonal row. Click on the message box containing the list 0 0 1, 1 1 1, etc. The circles should all go to light red and the router object will no longer pass messages from the slider objects above. ![]() Click on the message box labeled clear attached to the jsui object. Note the correspondence between which circles are clicked and which slider objects below the router echo the values from above. At the right of the patch, manipulate some of the slider objects above the router object. Clicking on the same circle again will change the color back to light red.Ĭlick on some circles so that they are highlighted (in dark red). Clicking on a circle inside the object will change the circle’s color to a darker red. You will see a jsui object containing a grid of light red circles against a green background. To open the tutorial patch, click on the Open Tutorial button in the upper right-hand corner of the documentation window. The jsui sketch reference found in the Javascript in Max guide (and the help patch for the jsui object) contain lists of these commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |