void tms36xx_device::tms36xx_note_w(int octave, int note) { octave &= 3; note &= 15; if (note > 12) return; LOG(("%s octave:%X note:%X\n", m_subtype, octave, note)); /* update the stream before changing the tune */ m_channel->update(); /* play a single note from 'tune 4', a list of the 13 tones */ tms36xx_reset_counters(); m_octave = octave; m_tune_num = 4; m_tune_ofs = note; m_tune_max = note + 1; }
void tms36xx_note_w(int chip, int octave, int note) { struct TMS36XX *tms = tms36xx[chip]; octave &= 3; note &= 15; if (note > 12) return; LOG((errorlog,"%s octave:%X note:%X\n", tms->subtype, octave, note)); /* update the stream before changing the tune */ stream_update(tms->channel,0); /* play a single note from 'tune 4', a list of the 13 tones */ tms36xx_reset_counters(chip); tms->octave = octave; tms->tune_num = 4; tms->tune_ofs = note; tms->tune_max = note + 1; }
void tms36xx_note_w(const device_config *device, int octave, int note) { tms_state *tms = get_safe_token(device); octave &= 3; note &= 15; if (note > 12) return; LOG(("%s octave:%X note:%X\n", tms->subtype, octave, note)); /* update the stream before changing the tune */ stream_update(tms->channel); /* play a single note from 'tune 4', a list of the 13 tones */ tms36xx_reset_counters(tms); tms->octave = octave; tms->tune_num = 4; tms->tune_ofs = note; tms->tune_max = note + 1; }