コード例 #1
0
void CInstrumentEditorFDSEnvelope::OnKeyReturn()
{
	CString string;

	GetDlgItemText(IDC_SEQUENCE_STRING, string);

	if (m_iSelectedType == SEQ_VOLUME) {
		TranslateMML(string, m_pInstrument->GetVolumeSeq(), MAX_VOLUME, 0);
	}
	else if (m_iSelectedType == SEQ_ARPEGGIO) {
		TranslateMML(string, m_pInstrument->GetArpSeq(), 96, -96);
	}
	else if (m_iSelectedType == SEQ_PITCH) {
		TranslateMML(string, m_pInstrument->GetPitchSeq(), 126, -127);
	}

	// Update editor
	m_pSequenceEditor->RedrawWindow();

	// Register a document change
	GetDocument()->SetModifiedFlag();
}
コード例 #2
0
void CInstrumentEditorN163::OnKeyReturn()
{
	// Translate the sequence text string to a sequence
	CString Text;
	GetDlgItemText(IDC_SEQUENCE_STRING, Text);

	switch (m_iSelectedSetting) {
		case SEQ_VOLUME:
			TranslateMML(Text, MAX_VOLUME, 0);
			break;
		case SEQ_ARPEGGIO:
			TranslateMML(Text, 96, -96);
			break;
		case SEQ_PITCH:
			TranslateMML(Text, 126, -127);
			break;
		case SEQ_HIPITCH:
			TranslateMML(Text, 126, -127);
			break;
		case SEQ_DUTYCYCLE:
			TranslateMML(Text, CInstrumentN163::MAX_WAVE_COUNT, 0);
			break;
	}
}
コード例 #3
0
void CInstrumentEditorFDSEnvelope::OnKeyReturn()
{
	CString string;
	GetDlgItemText(IDC_SEQUENCE_STRING, string);
	TranslateMML(string);		// // //
}