com.e1.mxdublin
Class DublinMaxObject

java.lang.Object
  extended by MaxObject
      extended by com.e1.mxdublin.DublinMaxObject
Direct Known Subclasses:
LLDublinMaxObject

public class DublinMaxObject
extends MaxObject

The Dublin MaxObject implementation in PD/Max. This is the main Max object to be instanciated.


Field Summary
protected  DublinProject project
           
 
Constructor Summary
DublinMaxObject()
          DublinMaxObject constructor, checks if it already exists.
 
Method Summary
 void bang()
          Sends a 24 ppq tick to the internal sequencer.
 void call(Atom[] args)
          Execute a python method.
 void console()
          Called by 'console' Max message, will show complete mxdublin console.
 void edit(Atom[] args)
          Show the editor for this trail.
 void ex(Atom[] args)
          Execute python snippet.
 void file(Atom[] args)
          Runs a python file into current locals().
 String getPatchPath()
          Returns the current directory of the patch that contains the dublin instance.
 void inlet(int i)
          Start/stop registred trails by sending 0 (stop) or 1 (start).
 void load(Atom[] args)
          Cancels all running trails and loads a new mxdublin project.
 void notifyDeleted()
          Called when the dublin MaxObject is deleted.
 void reset()
           
 void set(Atom[] args)
          Set a value to a python variable.
 void start_ref()
          This method is used to mark a quarter note reference.
 void start(Atom[] args)
          Start trail from name.
 void stop()
          Stops all trails running in the system.
 void stop(Atom[] args)
          Stop trail from name.
 void store(Atom[] args)
           
 void tempo(Atom[] args)
          Sets global tempo for the internal clock.
 void toggle(Atom[] args)
          Toggle (stop it if it is started, start it if it is stopped) trail from name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected DublinProject project
Constructor Detail

DublinMaxObject

public DublinMaxObject()
DublinMaxObject constructor, checks if it already exists. Only one instance is supported.

Method Detail

notifyDeleted

public void notifyDeleted()
Called when the dublin MaxObject is deleted.


console

public void console()
Called by 'console' Max message, will show complete mxdublin console.


set

public void set(Atom[] args)
Set a value to a python variable.

Parameters:
args - ( variable name, value )

call

public void call(Atom[] args)
Execute a python method.

Parameters:
args - ( method name, [arguments...] )

ex

public void ex(Atom[] args)
Execute python snippet.

Parameters:
args - the snippet name to execute

file

public void file(Atom[] args)
Runs a python file into current locals(). You can use "cp://[your file]" format to load a file from classpath.

Parameters:
args - ( filename )

load

public void load(Atom[] args)
Cancels all running trails and loads a new mxdublin project.

Parameters:
args - ( filename )

store

public void store(Atom[] args)

reset

public void reset()

tempo

public void tempo(Atom[] args)
Sets global tempo for the internal clock. Set this to -1 if you want to use the external clock (midi clock) by sending [bang] at each PPQ.

Parameters:
args - ( global tempo )

inlet

public void inlet(int i)
Start/stop registred trails by sending 0 (stop) or 1 (start). Useful to use with an toggle.


start_ref

public void start_ref()
This method is used to mark a quarter note reference. This time reference will later be used to quantize trails startup.


start

public void start(Atom[] args)
Start trail from name.

Parameters:
args - ( trail name )

stop

public void stop()
Stops all trails running in the system. A double-click on 'stop' will cancel all events issued by all mxdublin object.


stop

public void stop(Atom[] args)
Stop trail from name.

Parameters:
args - ( trail name )

toggle

public void toggle(Atom[] args)
Toggle (stop it if it is started, start it if it is stopped) trail from name.

Parameters:
args - ( trail name )

edit

public void edit(Atom[] args)
Show the editor for this trail.

Parameters:
args - the trail name

getPatchPath

public String getPatchPath()
Returns the current directory of the patch that contains the dublin instance.

Returns:
the patch path

bang

public void bang()
Sends a 24 ppq tick to the internal sequencer.