|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cycling74.max.MaxObject com.softsynth.jmsl.max.JMSLMaxNotate
public class JMSLMaxNotate
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.
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 |
---|
public double pitch
public double vel
Constructor Detail |
---|
public JMSLMaxNotate()
Method Detail |
---|
public void bang()
bang
in class com.cycling74.max.MaxObject
public void newScore()
public void startCapture()
public void stopCapture()
public void printCapture()
public void transcribe()
public void print(java.lang.String s)
print
in interface STDOutFunction
public void println(java.lang.String s)
println
in interface STDOutFunction
public void println()
println
in interface STDOutFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |