Class mtof
ej
java.lang.Object
  com.cycling74.max.MaxObject
      ej.ej
          ej.mtof

public class mtof
extends ej
Convert MIDI to frequency. This works for list, and allows you to define tuning and pitch reference.
Author:
jourdan
Version:
$Revision: 1.7 $
See Also:
ej

Fields inherited from class com.cycling74.max.MaxObject
EMPTY_STRING_ARRAY, NO_INLETS, NO_OUTLETS
Constructor Summary
mtof(float tuning)
Create a mtof object with specified tuning.
mtof(float tuning, float pitch_reference)
Create a mtof object with specified tuning and pitch reference.
Method Summary
void
inlet(float f)
Calculate the frequency corresponding to the MIDI note number you send
void
inlet(int i)
Calculate the frequency corresponding to the MIDI note number you send
void
list(float[] list)
Methods inherited from class ej.ej
dblclick, isNumber, post, post, post, post, post, post
Methods inherited from class com.cycling74.max.MaxObject
error, gc, getAttr, getAttrAtomArray, getAttrBool, getAttrBoolArray, getAttrByte, getAttrByteArray, getAttrChar, getAttrCharArray, getAttrDouble, getAttrDoubleArray, getAttrFloat, getAttrFloatArray, getAttributeInfo, getAttrInt, getAttrIntArray, getAttrLongArray, getAttrShort, getAttrShortArray, getAttrString, getAttrStringArray, getCodeSourcePath, getContext, getErrorStream, getInfoIdx, getInletAssist, getInletType, getLongAttr, getMaxBox, getName, getNumInlets, getNumOutlets, getOutletAssist, getOutletType, getParentPatcher, getPostStream, 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, outletHigh, outletHigh, outletHigh, outletHigh, post, postCodePath, 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, zap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
mtof
public mtof(float tuning)
Create a mtof object with specified tuning.

mtof
public mtof(float tuning,
            float pitch_reference)
Create a mtof object with specified tuning and pitch reference.
Method Detail
inlet
public void inlet(int i)
Calculate the frequency corresponding to the MIDI note number you send
Overrides:
inlet in class ej
Parameters:
i - MIDI note number

inlet
public void inlet(float f)
Calculate the frequency corresponding to the MIDI note number you send
Overrides:
inlet in class ej
Parameters:
f - MIDI note number

list
public void list(float[] list)
Overrides:
list in class com.cycling74.max.MaxObject
Java API documentation generated with DocFlex/Doclet v1.4.9
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com