XML Feeds

.

[java-dev] Re: deferring a new operation of buf.Op

taprik taprik at zombideo.net
Tue Jan 29 08:17:16 MST 2008


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 );
				}
			}
		}
		);
	}



More information about the java-dev mailing list