static final public void floatToByte(byte[] out, float[] in,
			boolean bigEndian) {
		int bufsz = in.length;
		int ib = 0;
		if (bigEndian) {
			for (int i = 0; i < bufsz; ++i) {
				short y = (short) (32767. * Math.min(Math.max(in[i], -1.0f),
						1.0f));
				out[ib++] = (byte) ((y >> 8) & 0xFF);
				out[ib++] = (byte) (y & 0xFF);
			}
		} else {
			for (int i = 0; i < bufsz; ++i) {
				short y = (short) (32767. * in[i]);
				out[ib++] = (byte) (y & 0xFF);
				out[ib++] = (byte) ((y >> 8) & 0xFF);
			}
		}
	}