com.softsynth.jmsl.max
Class JMSLMaxNotate

java.lang.Object
  extended by com.cycling74.max.MaxObject
      extended by com.softsynth.jmsl.max.JMSLMaxNotate
All Implemented Interfaces:
STDOutFunction

public class JMSLMaxNotate
extends com.cycling74.max.MaxObject
implements STDOutFunction

JMSL/Max Transcriber demo. Notate melodies generated in Max Capture incoming pitch and vel events from Max, transcribe as common music notation JMSLMaxNotate responds to these messages: startCapture, begins logging notes when bang'ed stopCapture, stops logging printCapture, prints captured MusicShape to console transcribe, creates a new Score and transcribes captured data bang, logs a note event using with current pitch and current vel. Attributes: pitch is 0..127 vel comes in as 0..127 but is scaled to 0..1 for compatibility with JMSL/JSyn JMSL is available from www.algomusic.com MOD 20050909, moved scoreFrame.addScore(score) the the end of transcribe(). It caused Java to hang under OS X tiger when called before ScoreFrame was visible. MOD 20060207, made pitch and vel public after Max complained it could not see these attributes.

Author:
Nick Didkovsky, email: didkovn@mail.rockefeller.edu, (c) 2004 Nick Didkovsky, all rights reserved.

Field Summary
 double pitch
          pitch is 0..127
 double vel
          vel is 0..127
 
Fields inherited from class com.cycling74.max.MaxObject
EMPTY_STRING_ARRAY, NO_INLETS, NO_OUTLETS
 
Constructor Summary
JMSLMaxNotate()
           
 
Method Summary
 void bang()
          add an element to musicshape using current max time, current pitch, current vel (scaled 0..1)
 void newScore()
           
 void print(java.lang.String s)
           
 void printCapture()
           
 void println()
           
 void println(java.lang.String s)
           
 void startCapture()
           
 void stopCapture()
           
 void transcribe()
           
 
Methods inherited from class com.cycling74.max.MaxObject
error, gc, getAtomArrayAttr, getAttr, getAttributeInfo, getBoolAttr, getBooleanArrayAttr, getByteArrayAttr, getByteAttr, getCharArrayAttr, getCharAttr, getContext, getDoubleArrayAttr, getDoubleAttr, getErrorStream, getFloatArrayAttr, getFloatAttr, getInfoIdx, getInletAssist, getInletType, getIntArrayAttr, getIntAttr, getLongArrayAttr, getLongAttr, getMaxBox, getName, getNumInlets, getNumOutlets, getOutletAssist, getOutletType, getParentPatcher, getPostStream, getShortArrayAttr, getShortAttr, getStringArrayAttr, getStringAttr, ouch, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outlet, outletBang, outletBangHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, outletHigh, post, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setName, showException, showException, toString, viewsource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pitch

public double pitch
pitch is 0..127


vel

public double vel
vel is 0..127

Constructor Detail

JMSLMaxNotate

public JMSLMaxNotate()
Method Detail

bang

public void bang()
add an element to musicshape using current max time, current pitch, current vel (scaled 0..1)

Overrides:
bang in class com.cycling74.max.MaxObject

newScore

public void newScore()

startCapture

public void startCapture()

stopCapture

public void stopCapture()

printCapture

public void printCapture()

transcribe

public void transcribe()

print

public void print(java.lang.String s)
Specified by:
print in interface STDOutFunction

println

public void println(java.lang.String s)
Specified by:
println in interface STDOutFunction

println

public void println()
Specified by:
println in interface STDOutFunction