void render(float[] dest, int nsamples) {
		switch (mode & 7) {
			case OSC_OFF:
				break;
			case OSC_TRI_SAW:
				renderTriSaw(dest, nsamples);
				break;
			case OSC_PULSE:
				renderPulse(dest, nsamples);
				break;
			case OSC_SIN:
				renderSin(dest, nsamples);
				break;
			case OSC_NOISE:
				renderNoise(dest, nsamples);
				break;
			case OSC_FM_SIN:
				renderFMSin(dest, nsamples);
				break;
			case OSC_AUXA:
				renderAux(dest, inst.auxabuf, nsamples);
				break;
			case OSC_AUXB:
				renderAux(dest, inst.auxbbuf, nsamples);
				break;
		}

		/*System.out.printf("mode %d ring %b cnt %d freq %d brpt %d nffrq %f nfree %f nseed %d gain %f note %f pitch %f\n", mode, ring, cnt, freq, brpt, nffrq, nfres,
				nseed, gain, note, pitch);*/
		/*%d mode
		%b ring
		%d cnt
		%d freq
		%d brpt
		%f nffrq, %f nfres
		%d nseed
		%f gain
		%f note
		%f pitch*/

		//DEBUG_PLOT(this, dest, nsamples);
	}