public NoiseGenerator(int waveLength, int ampl, int chan, int rate) {
		cycleLength = waveLength;
		amplitude = ampl;
		cyclePos = 0;
		channel = chan;
		sampleRate = rate;
		cycleOffset = 0;

		randomValues = new boolean[32767];

		Random rand = new java.util.Random();


		for (int r = 0; r < 32767; r++) {
			randomValues[r] = rand.nextBoolean();
		}

		cycleOffset = 0;
	}