public SquareWaveGenerator(int waveLength, int ampl, int duty, int chan, int rate) {
		cycleLength = waveLength;
		amplitude = ampl;
		cyclePos = 0;
		dutyCycle = duty;
		channel = chan;
		sampleRate = rate;
	}