[java-dev] deferring a new operation of buf.Op
taprik
taprik at zombideo.net
Tue Jan 29 06:48:10 MST 2008
- Previous message: [java-dev] multicast receive byte limit?
- Next message: [java-dev] deferring a new operation of buf.Op
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi there,
I'd like to implement a new operation for buf.Op.
I want this operation deferred like Copyinto or Copyfrom are.
I try this script
public void fade(final int start_index){
MaxSystem.deferlow(new Executable() {
public void execute(){
float val1=0;
float val2=0;
for (int c=start_index; c<(start_index+220);c++)
{
val1 = MSPBuffer.peek(bufname, 1, c)*((c-start_index)/220);
val2 = MSPBuffer.peek(bufname, 2, c)*((c-start_index)/220);
MSPBuffer.poke(bufname, 1, c, val1 );
MSPBuffer.poke(bufname, 2, c, val2 );
}
}
}
);
}
This script gave me a compilation error I don't understand :
/Applications/MaxMSP 4.6/Cycling '74/java/classes/buf/Op.java[ 127 ] cannot find symbol
symbol : method deferlow(<anonymous com.cycling74.max.Executable>)
location: class com.cycling74.max.MaxSystem
MaxSystem.deferlow(new Executable() {
^
1 error
[ 29 janv. 2008 14:36:20 ]
compilation of /Applications/MaxMSP 4.6/Cycling '74/java/classes/buf/Op.java failed.
I use the same code as the copyinto or copyfrom method.
Does any of you have an idea ?
Thanks for your help.
NB: I'd like to defer this one as, I'll call this method when I'll read the same buffer. The aim is to make a fade of 5 ms at a given index.
- Previous message: [java-dev] multicast receive byte limit?
- Next message: [java-dev] deferring a new operation of buf.Op
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
