src/pulse_queue.cpp
bool PulseQueue::setPulseRate(int ch, float _f)
{
	if (ch < 1 || ch > n) {
		return false;
	}
	f[ch-1] = _f;
	return true;
}
// ch is 1-indexed
// returns false on error
ch is 1-indexed
returns false on error
ch is 1 - indexed returns false on error
bool PulseQueue::setPulseRate(int ch, float _f)
{
	if (ch < 1 || ch > n) {
		return false;
	}
	f[ch-1] = _f;
	return true;
}
bool PulseQueue :: setPulseRate ( int ch , float _f ) { if ( ch < 1 || ch > n ) { return false ; } f [ ch - 1 ] = _f ; return true ; }
ch is 1-indexed
returns false on error
ch is 1 - indexed returns false on error