what :
Home > Search > outlet

Objectspage : 1 2 3 4 5 6 7 8 9 10 11 12
sadam.prime External Compute the closest prime numbers to a positive integer.
sadam.prime will compute the closest prime numbers to the absolute value of any integer input. It also reports whether the absolute value of the input is a prime or not. Since the smallest prime number is 2, if the absolute value of the input is smaller than 2, the outlet reporting the closest smaller prime will give false results (it reports the absolute value of the input). The object uses an internal prime table to compute the primes which can be printed to the Max window.
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.
sadam.sax Javaclass (mxj) A Simple API for XML (SAX) interface for Max.
sadam.sax will parse XML documents using SAX. The output will be sent out for each Element as a sequence (from right to left) consisting of the Element Index (the number of the Element in the XML), 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: if any error happens during parsing, it returns -1, otherwise it returns 0 after finishing the parsing process.

sadam.dom and sadam.sax are both W3C compliant XML parsers, however, this means some overhead in terms of resources. If you need a lightweight, fast XML parser and you can live with some limitations regarding W3C compliance, consider using sadam.rapidXML.
sadam.split External Split incoming number sequence.
sadam.split will route numbers to different outlets according to a set of ranges. These ranges are defined by breakpoints which can either be set as arguments to the object or changed on-the-fly. Numbers that wouldn't match any range will be sent out the leftmost (rightmost) outlet if they are lower (higher) than the lowest (highest) breakpoint.
sadam.standardMap~ External A chaotic oscillator based on Chirikov's Standard Map.
sadam.standardMap~ will generate a signal based on the Standard Map, a one-parameter chaotic model widely used in condensed matter physics. As input it takes one parameter, the so-called 'kicking strength' (K). The initial phase (X0) and moment (P0) of the oscillator can be set manually or randomly. The object outputs the current phase (X) and moment (P) of the oscillator (the phase is scaled to fit in the [-1;1] region). The third outlet gives the current velocity of the phase point representing the current state of the oscillator. For further info about the Standard Map see http://www.scholarpedia.org/article/Chirikov_standard_map.
sadam.tcpReceiver External Receive data from the network using the TCP protocol.
sadam.tcpReceiver will listen to a specified port and output incoming data. Currently it will output everything as pure binary data (by sending out the received bytes one-by-one on the leftmost outlet and, optionally, by adding them to the registered binary streams represented by sadam.stream) but a later release will support any arbitrary Max message.
sadam.udpReceiver External Receive data from the network using the UDP protocol.
sadam.udpReceiver will listen to a specified port and output incoming data. Currently it will output everything as pure binary data (by sending out the received bytes one-by-one on the leftmost outlet and, optionally, by adding them to the registered binary streams represented by sadam.stream) but a later release will support any arbitrary Max message.
searchtweet Javaclass (mxj) Returns a specified number of most recent twitter posts that contain a given keyword, #hashtag, or @usertag.
Searchtweet.class is a mxj external that searches Twitter with a given keyword and returns a desired maximum number of most recent posts, with username, date and twitter text body routed to separate outlets. Searchtweet uses twitter4j library (http://twitter4j.org) programmed by Yusuke Yamamoto.
Seed External allows you to set or save the random seed.
An integer at the inlet sets the seed just like all of the other objects in this group. A bang sends the current value of the seed to the outlet. Saving the output and using the saved seed to reseed the random number generator allows you to resume a sequence of random numbers after interruption by another process.
sel0 Abstraction Bangs to the left outlet on 0 as well as on 0.0x
select External Select certain inputs, pass the rest on
Send bang out an outlet that matches the input. Select checks incoming ints, floats, or symbols against internal value(s). If only one value is given, you get an inlet to reset it. There is a reject outlet which gives you the number back if all the tests fail.
slice External divides a list in two.
divides a list in two. Argument determines number of elements of list to send out the left outlet. The rest goes out the right outlet.

1 comment

slicen External Slices a list into N sub-lists, specified by size
Slices a list into N sub-lists, specified by size (e.g. [slicen 1 2 3] would have four outlets, and a list sent it would have its first member sent out the left, its next two out the next, its next three out the next and any remainder out the right outlet). (Hint: this may be helpful in combination with frame~...)
sliceX External Slice a long list into various sized pieces, by args
Slice a long list into various sized pieces, by args; i.e. 3 5 8 12 sends those sized pieces out the outlets.  Change size on the fly, etc.
split External Look for a range of numbers
Look for a range of numbers. Split takes an 'int' and puts it out the left outlet if the value is inclusively between the two argument values, otherwise it puts it out the right outlet.
page : 1 2 3 4 5 6 7 8 9 10 11 12

Libraries
Panaiotis Objects
debug: SELECT prenom, nom FROM auteurs RIGHT JOIN auteur_libraries USING (id_auteur) WHERE auteur_libraries.id_library='122' Panaiotis The Mac version is UB.

These Max objects have been enhanced since the documentation to the left was written. Help files for the objects provide information on enhancements.

The matrix object has been substantially upgraded. It now combines features of unpack, spray, funnel, append, and prepend into one object. This makes a great object to place between controllers and jit objects because it acts like a multi-prepend. There are new configuration commands and enhancements to the old: even, odd, mod,and range, among others). Most commands can be applied to inlets of outlets. There is also a mute function that adds another layer of control. Matrixctrl support has been enhanced. See the help file for full details and examples.

Most other objects now fully support floats. RCer and autocount will count in float values, not just integers.

Notegen16 is a 16 channel version of its predecessor: notegen. It is more generalized and much more efficient.

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