|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodesimian.CS
codesimian.DefaultCS
codesimian.WholeMP3
public class WholeMP3
WholeMP3 has been replaced by SlowMP3. The only useful parts left are the static functions, like combineArrays(List).
| Field Summary | |
|---|---|
protected int |
timeIndex
Deprecated. timeIndex is only used if P(1) does not exist (countP()<2). |
| Fields inherited from class codesimian.CS |
|---|
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER |
| Constructor Summary | |
|---|---|
WholeMP3()
Deprecated. |
|
| Method Summary | |
|---|---|
short[] |
audioData(java.io.InputStream mp3File)
Deprecated. |
static short[] |
combineArrays(java.util.List<short[]> listOfShortArrays)
Deprecated. |
java.lang.String |
description()
Deprecated. a short description of this CS, shorter than the javadoc, but long enough to tell what the params are for. |
double |
DForProxy()
Deprecated. D() and DForProxy() are the 2 most important functions in CS. |
java.io.InputStream |
fileToInputStream(java.io.File f)
Deprecated. |
java.io.File |
findMP3File(java.lang.String fileName)
Deprecated. finds a File with given name (and optionally path). |
java.lang.String |
keyword()
Deprecated. For the CodeSimian language as a String. CodeSimian language keyword, like "+" "*" "max" ">" etc. Override this function if you want to specify a keyword other than how I derive them from the class name, like + for Add. Some CSs might never be intended to be used in the language by their keyword. The best example (4/05) is Num, because it is used in the language like "3.4" instead of "num()". |
static int[] |
locationOfLargestRepeatedSubset(short[] array)
Deprecated. Used for debugging sound data. |
static void |
main(java.lang.String[] s)
Deprecated. |
double |
maxD()
Deprecated. maximum value D() can ever return (or any of the other primitive EXECUTE functions). |
int |
maxP()
Deprecated. Maximum quantity of Params |
double |
minD()
Deprecated. minimum value D() can ever return (or any of the other primitive EXECUTE functions). |
int |
minP()
Deprecated. For DForProxy(). Minimum number of parameters in param[] needed to call DForProxy(). Defines which indexs of param[] DForProxy() can use. Functions with a different number of parameters must override this. OVERRIDE THIS FUNCTION IF EXEC USES A DIFFERENT NUMBER OF PARAMETERS. Default is 1. |
void |
playAudio(short[] audioData)
Deprecated. |
static short[] |
reverseBytes(short[] array)
Deprecated. |
static void |
testLocationOfLargestRepeatedSubset()
Deprecated. returns true if locationOfLargestRepeatedSubset works correctly on a test array |
| Methods inherited from class codesimian.DefaultCS |
|---|
B, C, countP, decrementMyFuel, deleteP, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, LForProxy, LForProxy, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, P, prevD, prevL, PType, S, setB, setC, setCountP, setD, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL, setL1, setMyFuel, setName, setObject, setP, setPrevExec, setS, setZ, start, toString, V, Z |
| Methods inherited from class codesimian.CS |
|---|
addP, addP, addP, addP, addP, BForProxy, CForProxy, clone, cost, D, deleteP, FForProxy, IForProxy, isIllusion, javaCode, JForProxy, L, L, L, L, L, overwrites, parent, parsePriority, PB, PC, PD, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, setB, setC, setCost, setDescription, setF, setHeap, setI, setJ, setL, setL, setParent, setParsePriority, setProxyOf, setPType, setS, setTester, setZ, SForProxy, tester, VForProxy, voidReflect, ZForProxy |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int timeIndex
| Constructor Detail |
|---|
public WholeMP3()
| Method Detail |
|---|
public double DForProxy()
CS
DForProxy in class DefaultCSpublic int minP()
DefaultCS
minP in class DefaultCSpublic int maxP()
CS
maxP in class CSpublic double minD()
CS
minD in class CSpublic double maxD()
CS
maxD in class CSpublic java.lang.String keyword()
DefaultCS
keyword in class DefaultCSCS.parent(),
CS.newInstance(),
CS.name()public java.lang.String description()
CS
description in class DefaultCSpublic short[] audioData(java.io.InputStream mp3File)
public void playAudio(short[] audioData)
public java.io.File findMP3File(java.lang.String fileName)
public java.io.InputStream fileToInputStream(java.io.File f)
public static short[] combineArrays(java.util.List<short[]> listOfShortArrays)
public static short[] reverseBytes(short[] array)
public static void testLocationOfLargestRepeatedSubset()
public static int[] locationOfLargestRepeatedSubset(short[] array)
public static void main(java.lang.String[] s)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||