コード例 #1
0
int
SamplePlayer::getMidiController(LADSPA_Handle, unsigned long port)
{
    int controllers[PortCount] = {
	DSSI_NONE,
	DSSI_CC(12),
	DSSI_CC(13),
	DSSI_CC(64),
	DSSI_CC(72)
    };

    return controllers[port];
}
コード例 #2
0
/*
 * nekobee_get_midi_controller
 *
 * implements DSSI (*get_midi_controller_for_port)()
 */
int
nekobee_get_midi_controller(LADSPA_Handle instance, unsigned long port)
{
    XDB_MESSAGE(XDB_DSSI, " nekobee_get_midi_controller called for port %lu\n", port);
    switch (port) {
		case XSYNTH_PORT_TUNING:
			return DSSI_CC(MIDI_CTL_TUNING);
		case XSYNTH_PORT_WAVEFORM:
			return DSSI_CC(MIDI_CTL_WAVEFORM);
		case XSYNTH_PORT_CUTOFF:
	        return DSSI_CC(MIDI_CTL_CUTOFF);
		case XSYNTH_PORT_RESONANCE:
			return DSSI_CC(MIDI_CTL_RESONANCE);
		case XSYNTH_PORT_ENVMOD:
			return DSSI_CC(MIDI_CTL_ENVMOD);
		case XSYNTH_PORT_DECAY:
			return DSSI_CC(MIDI_CTL_DECAY);
		case XSYNTH_PORT_ACCENT:
			return DSSI_CC(MIDI_CTL_ACCENT);
		case XSYNTH_PORT_VOLUME:
			return DSSI_CC(MIDI_CTL_MSB_MAIN_VOLUME);
		
      default:
        break;
    }

    return DSSI_NONE;
}
コード例 #3
0
int getControllerSampler(LADSPA_Handle instance, unsigned long port)
{
    if (port == Sampler_RETUNE) return DSSI_CC(12);
    else if (port == Sampler_BASE_PITCH) return DSSI_CC(13);
    else if (port == Sampler_SUSTAIN) return DSSI_CC(64);
    else if (port == Sampler_RELEASE) return DSSI_CC(72);
    else {
	Sampler *plugin_data = (Sampler *) instance;
	if (plugin_data->channels == 2) {
	    if (port == Sampler_BALANCE) return DSSI_CC(10);
	}
    }
    return DSSI_NONE;
}
コード例 #4
0
ファイル: holharm.c プロジェクト: BackupTheBerlios/holap
int
getControllerholharm (LADSPA_Handle instance, unsigned long port)
{

  switch ((int)port)
    {
    case holharm_VOLUME:
      return DSSI_CC(7);
    case holharm_PAN:
      return DSSI_CC(10);
    case holharm_INTERVALL:
      return DSSI_CC(48);
    case holharm_INTERVALR:
      return DSSI_CC(49);
    }

  return -1;
}
コード例 #5
0
ファイル: exciter.c プロジェクト: BackupTheBerlios/holap
int 
getControllerexciter (LADSPA_Handle instance, unsigned long port)
  {
    switch ((int) port)
      {
      case exciter_VOLUME:
	return DSSI_CC (7);
      case exciter_PAN:
	return DSSI_CC (10);
      case exciter_MAG_1:
	return DSSI_CC (48);
      case exciter_MAG_2:
	return DSSI_CC (49);
      case exciter_MAG_3:
	return DSSI_CC (50);
      case exciter_MAG_4:
	return DSSI_CC (51);
      case exciter_MAG_5:
	return DSSI_CC (52);
      case exciter_MAG_6:
	return DSSI_CC (53);
      case exciter_MAG_7:
	return DSSI_CC (54);
      case exciter_MAG_8:
	return DSSI_CC (55);
      case exciter_MAG_9:
	return DSSI_CC (56);
      case exciter_MAG_10:
	return DSSI_CC (57);
      case exciter_FFREQ:
	return DSSI_CC (58);

      }

    return -1;
  }