[java-dev] Re: deferring a new operation of buf.Op
taprik
taprik at zombideo.net
Tue Jan 29 08:17:16 MST 2008
- Previous message: [java-dev] deferring a new operation of buf.Op
- Next message: [java-dev] Troubleshooting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes ! You're right.
Thanks Emmanuel.
And I made an other mistake with the type.
The correct script is
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+221);c++)
{
val1 = MSPBuffer.peek(bufname, 1, c)*(float)((c-start_index)/220.0);
val2 = MSPBuffer.peek(bufname, 2, c)*(float)((c-start_index)/220.0);
MSPBuffer.poke(bufname, 1, c, val1 );
MSPBuffer.poke(bufname, 2, c, val2 );
}
}
}
);
}
- Previous message: [java-dev] deferring a new operation of buf.Op
- Next message: [java-dev] Troubleshooting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
