what :
Home > Search > mxj

Objectspage : 1 2 3
mxj_autobot Javaclass (mxj) Generate keyboard and mouse events from Max
Generate native system input events
MySQLJDBC Javaclass (mxj)
works in Max 4.6 and above (including Max 5 & 6)


The MySQLJDBC MXJ object provides max with a simple interface to the MySQL Connector/J native Java driver that converts JDBC (Java Database Connectivity) calls into
-------------
INSTALLATION:
-------------
- If you haven't done so, Install MySQL and make sure it is running
(covering installing, using, and running MySQL is beyond the scope of this doc. Try a Google search or similar for more details on this. Some references are provided below)

- Download the MySQL Java Connector class from here:
http://www.mysql.com/products/connector/j/

For developers details on this jar and its use can be found here (also see the resources below):
http://dev.mysql.com/usingmysql/java/

- place the mysql-connector-java-X.X.X-bin.jar file in your /Applications/MaxMSP 4.6/Cycling '74/java/lib/ folder (or whatever folder you may have defined as a classpath in your max.java.config.txt file found under /Applications/MaxMSP 4.6/Cycling '74/java/)

NOTE: do not place it in a subfolder or else it will not work. In otherwords don't copy the entire distribution to the classpath, just the jar file.

- place the MySQLJDBC.class file in your /Applications/MaxMSP 4.6/Cycling '74/java/classes/ folder

- Start max.

In the max window you should see something very similar to:
/Applications/MaxMSP 4.6/Cycling '74/java/lib/mysql-connector-java.jar

The included help file provides some simple examples.

NOTE: The help file assumes you have already created a database called "maxmsp", with a user name "maxmspuser", and password "mathews".

----------------
ONLINE RESOURCES
----------------

..:For Everyone:..
MySQL Docs
http://dev.mysql.com/doc/

phpMyAdmin (for administration)
http://www.phpmyadmin.net


..:For MXJ Developers:..
Using MySQL With Java:
http://dev.mysql.com/usingmysql/java/

java.sql API
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/package-summary.html

JDBC Basics
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

jGuru: JDBC 2.0 Fundamentals
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html#JDBC202_5
net.loadbang.sql.mxj.MySQL Javaclass (mxj) MXJ accessor for MySQL
Demonstration MXJ object for accessing an external MySQL database; accepts SQL directly
net.loadbang.sql.mxj.NoddySQL Javaclass (mxj) MXJ accessor for HSQLDB
Demonstration MXJ object for accessing HSQLDB, where the database is embedded; accepts SQL directly
net.mail.recv Javaclass (mxj) reading messages from an email server
This class requires the free JavaMail and the JavaBean Activation Framework libraries. Installation instructions can be found in mxj tutorial number 9.
net.mail.send Javaclass (mxj) Sending messages to an email server
This class requires the free JavaMail and the JavaBean Activation Framework libraries. Installation instructions can be found in mxj tutorial number 9.
nnLists Javaclass (mxj) Artificial neural network
This is a Java implementation of a feed-forward back-propagation artificial neural network for Max/MSP/mxj. There is a JAR, NN.jar and an example mxj class nnLists which takes Max lists as input and output. This is probably sufficient for most purposes but specific classes could be written to deal with other data (e.g., Jitter matrices).
p.jit.gl.shader Abstraction a wrapper for the jitter shader object that automatically reveals a shader’s parameters for editing
p.jit.gl.shader enables you to:
reveal and edit the shader’s parameters and their values;
open the jxs shader file using mxj quickie;
automatically reload and recompile the shader if it’s jxs file is altered on disk;
ParticleFilter Javaclass (mxj) particle filter object tracking
"ParticleFilter.java (mxj external) implements a (slightly simplified) version of the popular particle filtering tracking algorithm. Basically, particles of a given target sample the image. Those with high probability mass (i.e. over a target's pixel) are more likely to be sampled in the next frame. In this way, a target's particles tend to stick with it."
PDOSCClient Javaclass (mxj) Object for mxj and pdj to provide a bi-directional OSC client.
Allows to send and receive from the same socket. Supports the OSC 1.0 type tags, bundles, and both UDP and TCP transport. Supercedes older UDPOSCPort object.
Quickie Javaclass (mxj) MXJ editor - relatively simple font end for doing mxj development from entirely within max.
USEAGE: [mxj quickie classname]
rm.floatlistconverter External Fixes bugged output from an mxj when using outletHigh(int outletIdx, java.lang.String message, float[] values) or outletHigh(int outletIdx, java.lang.String message, int[] values).
Fixes bugged output from an mxj when using outletHigh(int outletIdx, java.lang.String message, float[] values) or outletHigh(int outletIdx, java.lang.String message, int[] values). See my post about the bug on Cycling 74's forums for more info: http://cycling74.com/forums/topic.php?id=34998
sadam.base64 External Base64 encoder & unencoder object.
sadam.base64 will encode and unencode any message you send it (actually it takes into consideration only the first element of the message if the message has multiple elements). Since the base64 encoding contains only alphanumerical characters and a few symbols (which are: +, / and =), the encoded string can safely be used outside the native Max world (for example, with MXJ or in text files). Combined with sadam.lzo it can be used to safely transmit huge amount of data over network using for example the MXJ-based jit.net.send object, or for storing (originally) binary data in an external text file.
sadam.lzo External Loseless data compression and decompression using the LZO library.
sadam.lzo will compress and decompress loselessly any arbitrary message you send it. The behaviour (compressor/decompressor) is set by the first argument. The compressed result is a single message that may contain any ASCII value (except 0), so caution should be taken, specially if the result is used outside the native Max world (for example if you pass it to MXJ or you plan to store it in a file on the file system). For these cases you might find useful to encode the result with sadam.base64.
sadam.rapidXML External A RapidXML wrapper for Max.
sadam.rapidXML will create, read, store or even modify DOM trees. The DOM is one of the possible representations of the contents of an XML document (see http://www.w3.org/TR/DOM-Level-2-Core/.) The object internally uses the RapidXML 1.13 library (see http://rapidxml.sourceforge.net/,) which is one of the fastest, yet still almost completely W3C compliant, freely available XML parsers.

When an XML is parsed, the object will assign a unique ID to each Element of the document, called the Element Index. This index won't get stored and changes each time when the order of Elements in the XML is modified (either by inserting or removing Elements). However, using the Element Index is the preferred (and in most cases, the only) way to address a given element in the XML. The Element Index is sent out the rightmost outlet each time an element is accessed. The Element Index of the Document Element is always 0, the rest of the Elements get their index in their 'order of appearence'. This means that even if an Element is being inserted or removed, the Index of the Elements that come earlier in the Document won't change.

When querying Attributes, Text, or CDATA nodes, the requested data will be sent out the appropriate outlets in right-to-left order (in case of Attributes, if more than one Attribute is requested, they will be sent to the output as a sequence like AttributeName1-AttributeValue1-AttributeName2-AttributeValue2-...-AttributeNameN-AttributeValueN, alternating on the appropriate outlets) followed by an error code. When querying Elements, the result will be sent out as a sequence (from right to left) consisting of the Element Index, the Tree Depth of the Element (the Document Element is at level 0, its children are at level 1 etc.), the Element's Tag Name, the Attributes, and finally the Text Content (which is a concatenation of all Text and CDATA nodes).

The leftmost outlet serves as an error outlet. After each command sent to the object, an error code is being sent back through this outlet at the end of the execution of the given command. A negative value means that the command could not be executed successfully, while 0 means success. In some cases (typically when one or more Elements are queried) the error outlet reports the number of Elements successfully returned.

As already mentioned, RapidXML 1.13 (and therefore sadam.rapidXML) is not fully W3C compliant. The main reason is that the parser ignores DOCTYPE declarations. There are also some difficulties with namespace management as well, the parser wouldn't refuse XMLs containing more than one root element and it will allow duplicate attributes for the same element. Also, to make parsing faster, all kind of XML validation is turned off by the wrapper Max object. If you need a 100% W3C compliant XML parser, consider sadam.dom, which is almost identical in functionality to sadam.rapidXML and requires MXJ to run.
page : 1 2 3

Libraries
f0.mxj
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='146'Fredrik Olofsson some java classes for max
loadbang.net SQL
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='99'Nick Rothwell A Java library for communicating with SQL databases from MXJ. We currently support MySQL and HSQLDB. The HSQLDB system includes an embedded database instance, so it runs automatically from text files in Max\'s search path; no external database server configuration is necessary.
net.loadbang.groovy
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='130'Nick Rothwell net.loadbang.groovy is a package which supports the Groovy scripting/programming language within MXJ for Max/MSP.

Groovy is an agile, dynamic language for the Java Virtual Machine (JVM) which builds upon Java by providing features such as closures and support for domain-specific programming (such as XML processing and database access). It integrates seamlessly with Java and is very similar in syntax.
net.loadbang.jython
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='131'Nick Rothwell Embedded Python interpreter for MaxMSP, using Jython and MXJ. This is a companion release to the Groovy interpreter.
net.loadbang.web
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='128'Nick Rothwell Jetty-based embedded web server for MaxMSP. The server is packaged into an MXJ object, and can serve files from any directory in MaxMSP\'s search path. The server implements two-way communication with Max: the object reports web requests into the Max world, and Max can create attribute bindings for JSPs.

4855 objects and 135 libraries within the database Last entries : December 23rd, 2023 Last comments : 0 0 visitor and 97469217 members connected RSS
Site under GNU Free Documentation License