Exemple #1
0
static void
note_off( int track )
{
    __GETMDX;

    if ( mdx->track[track].keyoff_disable == FLAG_FALSE ) {
        mdx->track[track].note=-1;
        if ( track<8 )
            ym2151_note_off(track);
        else
            pcm8_note_off(track-8);
    }
    mdx->track[track].keyoff_disable = FLAG_FALSE;

    return;
}
Exemple #2
0
static void
set_phase( int track, int val )
{
    __GETMDX;

    mdx->track[track].phase = val;

    if ( track<8 )
        ym2151_set_pan(track, val);
    else
        pcm8_set_pan(val);

    if ( val == MDX_PAN_N ) {
        if ( track<8 )
            ym2151_note_off(track);
        else
            pcm8_note_off(track-8);
    }

    return;
}
Exemple #3
0
static void
set_phase( int track, int val, songdata *data )
{
  __GETMDX(data);

  mdx->track[track].phase = val;

  if ( track<8 )
    ym2151_set_pan(track, val, data);
  else
    pcm8_set_pan(val, data);

  if ( val == MDX_PAN_N ) {
    if ( track<8 )
      ym2151_note_off(track, data);
    else
      pcm8_note_off(track-8, data);
  }

  return;
}