You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The Dict object in JS is a companion to the dict object you create in a Max patcher. It provides the ability to access structured data (a dictionary) associated with a name.
172
172
* Example code can be found in the "js" tab of the dict help patcher.
* messages completely outside of js. Executing methods stored in Global objects from Max is not supported. However, methods are certainly among the kinds of things you can store within a Global
573
573
* object. A Global is basically a reference to a Javascript object that you can't access directly. The object is connected to the Max symbol with the name you supplied as an argument (this allows it
574
574
* to be accessed from Max). Every time you access a Global, it hands off the access to the secret hidden Javascript object. This means you can create any number of Global objects in your code, in any
575
-
* number of js instances, and if they all have the same name, they will all share the same data. In this way, a Global resembles a namespace. https://docs.cycling74.com/max7/vignettes/jsglobalobject
575
+
* number of js instances, and if they all have the same name, they will all share the same data. In this way, a Global resembles a namespace. https://docs.cycling74.com/max8/vignettes/jsglobalobject
576
576
*/
577
577
declareclassGlobal{
578
578
/**
@@ -598,7 +598,7 @@ declare class Global {
598
598
/**
599
599
* The LiveAPI object provides a means of communicating with the Live API functions from JavaScript. For background information on this functionality, please see the Live API Overview and Live Object
600
600
* Model documents, as well as the Reference pages for live.path, live.object and live.observer objects, which provide the same basic functionality as the LiveAPI object, but from the Max patcher.
* The word getcolor followed by string color name returns a Color type.
836
+
*/
837
+
getcolor(name: string): Color;
838
+
834
839
/**
835
840
* The word getdefaultpatcherheight followed by a symbol used as the name of a receive object, causes Max to report the current default patcher height in pixels to the named receive object (See
836
841
* also the setdefaultpatcherheight message to Max.)
@@ -1158,7 +1163,7 @@ declare class MaxobjConnection {
1158
1163
/**
1159
1164
* A Maxobj is a Javascript representation of a Max object in a patcher. It is returned by various methods of a Javascript Patcher object, such as newobject().One important thing to keep in mind about
1160
1165
* a Maxobj is that it could eventually refer to an object that no longer exists if the underlying Max object is freed. The valid property can be used to test for this condition.
@@ -1362,7 +1367,7 @@ declare class MaxobjListenerData<Tvalue> {
1362
1367
1363
1368
/**
1364
1369
* The Patcher object is a Javascript representation of a Max patcher. You can find, create, modify, and iterate through objects within a patcher, send messages to a patcher that you would use with
1365
-
* the thispatcher object, etc. https://docs.cycling74.com/max7/vignettes/jspatcherobject
1370
+
* the thispatcher object, etc. https://docs.cycling74.com/max8/vignettes/jspatcherobject
* The PolyBuffer object in JS is a companion to the polybuffer~ object you create in a Max patcher. It provides the ability to access a group of buffer~ objects associated with a name.
@@ -1570,7 +1575,7 @@ declare class PolyBuffer {
1570
1575
1571
1576
/**
1572
1577
* A task is a function that can be scheduled or repeated. You can set the arguments to the function as well as the object that will be this when the function is called.
* The Wind object is a property of a Patcher that represents its window. You cannot create a new Wind or access other types of windows such as that of a Max table object.
* The SQLite object provides access to the SQLite database system (see http://www.sqlite.org for more information). A companion object, SQLResult, is required for most database operations.
* An SQLResult object is a container for results obtained in an SQLite.exec call. Not every exec() call will produce results, but any database query (SELECT in particular) will generate an SQLResult
1777
-
* object even if the result is empty. https://docs.cycling74.com/max7/vignettes/jssqlresultobject
1782
+
* object even if the result is empty. https://docs.cycling74.com/max8/vignettes/jssqlresultobject
* Sketch Every instance of jsui has an instance of Sketch bound to the variable "sketch". This is often the only instance of Sketch you will need to use. However, if you want to do things like render
2333
2338
* sprites, have multiple layers of images, or use drawing commands to create alpha channels for images, then you can create additional instances to render in. By default, when any function in your
2334
-
* jsui object has been called the context is already set for the instance of Sketch bound to the variable "sketch". https://docs.cycling74.com/max7/vignettes/jssketchobject
2339
+
* jsui object has been called the context is already set for the instance of Sketch bound to the variable "sketch". https://docs.cycling74.com/max8/vignettes/jssketchobject
* Image The Image object can be used to draw images in an instance of the Sketch. It is possible to load image files from disk, create images from instances of Sketch, or generate them manually. The
2739
2747
* Image object has several methods to assist in manipulating images once generated. Note that alphablending is on by default in sketch. Certain file formats which contain alpha channels such as PICT
2740
2748
* or TIFF may have their alpha channel set all off. File formats which do not contain an alpha channel such as JPEG, by default have an alpha channel of all on. If you are having trouble seeing an
2741
2749
* image when attempting to draw in an instance of Sketch, you may want to either turn off blending with gldisable("blend"), or set the alpha channel to be all on with clearchannel("alpha",1.).
0 commit comments