src/OPL2.cpp
/**
 * Play a note of a certain octave on the given channel.
 */
Play a note of a certain octave on the given channel.
Play a note of a certain octave on the given channel .
void OPL2::playNote(byte channel, byte octave, byte note) {
	setKeyOn(channel, false);
	setBlock(channel, max(ZERO, min(octave, OCTAVE_MAX)));
	setFNumber(channel, noteFNumbers[max(ZERO, min(note, NOTE_MAX))]);
	setKeyOn(channel, true);
}
void OPL2 :: playNote ( byte channel , byte octave , byte note ) { setKeyOn ( channel , false ) ; setBlock ( channel , max ( ZERO , min ( octave , OCTAVE_MAX ) ) ) ; setFNumber ( channel , noteFNumbers [ max ( ZERO , min ( note , NOTE_MAX ) ) ] ) ; setKeyOn ( channel , true ) ; }
Play a note of a certain octave on the given channel.
Play a note of a certain octave on the given channel .