Esempio n. 1
0
MidiForceToKeyProgram::MidiForceToKeyProgram ()
{
	// default Program Values
	n0  = 1.0f;   // C
	n1  = 1.0f;   // C#
	n2  = 1.0f;   // D
	n3  = 1.0f;   // D#
	n4  = 1.0f;   // E
	n5  = 1.0f;   // F
	n6  = 1.0f;   // F#
	n7  = 1.0f;   // G
	n8  = 1.0f;   // G#
	n9  = 1.0f;   // A
	n10 = 1.0f;   // A#
	n11 = 1.0f;   // B
	fMode = (float)nearest/(float)(numModes-1);
	fTranspose = 0.5f;
	fChannel = CHANNEL_TO_FLOAT(-1);
	fRoot = MIDI_TO_FLOAT(60);
	fNChannel = CHANNEL_TO_FLOAT(-1);
	fNChMode = 0.f;
	fUsePC = 0.f;

	// default program name
	strcpy (name, "Default");
}
Esempio n. 2
0
MidiBlackKeyFilterProgram::MidiBlackKeyFilterProgram () {
	// default program values
	param[kInChannel] = CHANNEL_TO_FLOAT(ANY_CHANNEL); 
	param[kWhiteChannel] = CHANNEL_TO_FLOAT(ANY_CHANNEL);
	param[kWhiteVelocity] = 0.5f;
	param[kBlackChannel] = CHANNEL_TO_FLOAT(ANY_CHANNEL);
	param[kBlackVelocity] = 0.5f;

	// default program name
	vst_strncpy (name, "Default", kVstMaxProgNameLen);
}
Esempio n. 3
0
ForceToRangeProgram::ForceToRangeProgram () {
	// default program values
	param[kLowNote]  = MIDI_TO_FLOAT(0);
	param[kHighNote] = MIDI_TO_FLOAT(127);
	param[kChannel]  = CHANNEL_TO_FLOAT(ANY_CHANNEL);

	// default program name
	vst_strncpy (name, "default", kVstMaxProgNameLen);
}
Esempio n. 4
0
MidiChsProgram::MidiChsProgram ()
{
	// default Program Values
    for (int i=0;i<16;i++) {
        param[i] = CHANNEL_TO_FLOAT(i);
    }
	param[kReset]     = 0.4f;
	param[kClear]     = 0.4f;
	strcpy (name, "Default");
}
Esempio n. 5
0
MidiScaleChangerProgram::MidiScaleChangerProgram ()
{
	// default Program Values
	n0  = 0.5f;   // C
	n1  = 0.f;   // C#
	n2  = 0.5f;   // D
	n3  = 0.f;   // D#
	n4  = 0.5f;   // E
	n5  = 0.5f;   // F
	n6  = 0.f;   // F#
	n7  = 0.5f;   // G
	n8  = 0.f;   // G#
	n9  = 0.5f;   // A
	n10 = 0.f;   // A#
	n11 = 0.5f;   // B
	fRoot = 0.5f;
	fWrap = 0.f;
	fChannel = CHANNEL_TO_FLOAT(-1);
	fAltChannel = CHANNEL_TO_FLOAT(-1);

    // default program name
	strcpy (name, "Default");
}
Esempio n. 6
0
void MidiChs::Reset() {
	setParameterAutomated (kChannel1,  CHANNEL_TO_FLOAT(0)  ); 
	setParameterAutomated (kChannel2,  CHANNEL_TO_FLOAT(1)  ); 
	setParameterAutomated (kChannel3,  CHANNEL_TO_FLOAT(2)  ); 
	setParameterAutomated (kChannel4,  CHANNEL_TO_FLOAT(3)  ); 
	setParameterAutomated (kChannel5,  CHANNEL_TO_FLOAT(4)  ); 
	setParameterAutomated (kChannel6,  CHANNEL_TO_FLOAT(5)  ); 
	setParameterAutomated (kChannel7,  CHANNEL_TO_FLOAT(6)  ); 
	setParameterAutomated (kChannel8,  CHANNEL_TO_FLOAT(7)  ); 
	setParameterAutomated (kChannel9,  CHANNEL_TO_FLOAT(8)  ); 
	setParameterAutomated (kChannel10, CHANNEL_TO_FLOAT(9) );
	setParameterAutomated (kChannel11, CHANNEL_TO_FLOAT(10) );
	setParameterAutomated (kChannel12, CHANNEL_TO_FLOAT(11) );
	setParameterAutomated (kChannel13, CHANNEL_TO_FLOAT(12) );
	setParameterAutomated (kChannel14, CHANNEL_TO_FLOAT(13) );
	setParameterAutomated (kChannel15, CHANNEL_TO_FLOAT(14) );
	setParameterAutomated (kChannel16, CHANNEL_TO_FLOAT(15) );  
	setParameterAutomated (kClear, 0.4f);
    setParameterAutomated (kReset, 0.4f);
    updateDisplay();
}
Esempio n. 7
0
float Color::GetAlfaF() const
{
  return CHANNEL_TO_FLOAT(GetAlfa());
}
Esempio n. 8
0
float Color::GetBlueF() const
{
  return CHANNEL_TO_FLOAT(GetBlue());
}
Esempio n. 9
0
float Color::GetGreenF() const
{
  return CHANNEL_TO_FLOAT(GetGreen());
}
Esempio n. 10
0
float Color::GetRedF() const
{
  return CHANNEL_TO_FLOAT(GetRed());
}