private void initIndices() {
		short[] indices = new short[(POINTS_PER_WAVE + ADDITIONAL_POINTS - 2) * COORDS_PER_VERTEX];
		for (int i = 0; i < indices.length / COORDS_PER_VERTEX; i++) {
			indices[COORDS_PER_VERTEX * i] = 0;
			indices[COORDS_PER_VERTEX * i + 1] = (short) (i + 1);
			indices[COORDS_PER_VERTEX * i + 2] = (short) (i + 2);
		}
		ByteBuffer indicesByteBuffer = ByteBuffer.allocateDirect(indices.length * SIZE_OF_SHORT);
		indicesByteBuffer.order(ByteOrder.nativeOrder());
		shortBuffer = indicesByteBuffer.asShortBuffer();
		shortBuffer.put(indices);
		shortBuffer.position(0);
	}
Number of points to skip for getting proper index for Bezier curve points.
library/src/main/java/com/cleveroad/audiovisualization/GLWave.java