void KeyOnSetFreq(ushort frq) { ushort note = (ushort)((frq << 1) >> 8); frq = (ushort)((_freqMSB[note] << 11) | _freqLSB[note]); @out(0xa4, (byte)(frq >> 8)); @out(0xa0, (byte)(frq & 0xff)); //out(0x28, 0x00); @out(0x28, 0x30); }