Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing CString objs to an MFC extension DLL Pin
Roger Allen2-Apr-03 1:04
Roger Allen2-Apr-03 1:04 
GeneralRe: Passing CString objs to an MFC extension DLL Pin
Abin2-Apr-03 3:22
Abin2-Apr-03 3:22 
GeneralRe: Passing CString objs to an MFC extension DLL Pin
Alvaro Mendez2-Apr-03 10:12
Alvaro Mendez2-Apr-03 10:12 
GeneralRe: Passing CString objs to an MFC extension DLL Pin
RobJones2-Apr-03 3:51
RobJones2-Apr-03 3:51 
GeneralMessage Loop for specific messages Pin
peterchen2-Apr-03 0:20
peterchen2-Apr-03 0:20 
GeneralRe: Message Loop for specific messages Pin
Vasiliy Zverev2-Apr-03 0:36
Vasiliy Zverev2-Apr-03 0:36 
GeneralRe: Message Loop for specific messages Pin
56789012342-Apr-03 0:46
56789012342-Apr-03 0:46 
GeneralMidi API, please help Pin
bob_0002-Apr-03 0:17
bob_0002-Apr-03 0:17 
Confused | :confused: Confused | :confused:
Hi,

I am building a wind synth that uses the API midi functions of
a soundcard. m_Note2 is an int value according to the keys pressed
and m_PBAD_2 is an int value ranging from 0-127 according to the airflow
thru the synth, updated according to the timer set at 250 millisec.

When I blow into the synth a note is played every 25sec but does not
stop, because the m_note in stopnote() outdated.
I have no idea what to add to the playnote() function. Any suggestions appreciated,
my knowledge of VC++ is very limited.

Cheers,
Rob
robert.harrington2@mail.dcu.ie

void CAD_mouthDlg::PlayNote()
{
UpdateData(TRUE);

MidiOutMessage (hMidiOut, 0x00, 0x90, m_Note2,m_PBAD_2) ;

}

void CAD_mouthDlg::StopNote()
{
if(m_Key_Press == FALSE)
{
MidiOutMessage (hMidiOut, 0x00, 0x90, m_Note2,0) ;
}
else
{
}
}


void CAD_mouthDlg::OnTimer(UINT nIDEvent)
{
CAD_mouthDlg::read_analog();
CAD_mouthDlg::SetPortChigh();
CAD_mouthDlg::OnButtonReadPort();
CAD_mouthDlg::PlayNote();
CAD_mouthDlg::StopNote();
CDialog::OnTimer(nIDEvent);
}


GeneralAutometed Content Publishing System for Intranet Pin
Bajwagr81-Apr-03 23:53
Bajwagr81-Apr-03 23:53 
GeneralDisable a tab in a CPropertySheet Pin
JensB1-Apr-03 22:42
JensB1-Apr-03 22:42 
GeneralRe: Disable a tab in a CPropertySheet Pin
Rage1-Apr-03 23:39
professionalRage1-Apr-03 23:39 
GeneralChanging font type in a View Pin
Anonymous1-Apr-03 22:05
Anonymous1-Apr-03 22:05 
GeneralRe: Changing font type in a View Pin
jhwurmbach1-Apr-03 22:19
jhwurmbach1-Apr-03 22:19 
GeneralRe: Changing font type in a View Pin
Anonymous1-Apr-03 22:29
Anonymous1-Apr-03 22:29 
GeneralRe: Changing font type in a View Pin
ilgale1-Apr-03 23:32
ilgale1-Apr-03 23:32 
GeneralRe: Changing font type in a View Pin
Cedric Moonen2-Apr-03 0:08
Cedric Moonen2-Apr-03 0:08 
GeneralRe: Changing font type in a View Pin
Chintan2-Apr-03 7:09
Chintan2-Apr-03 7:09 
GeneralModeless property sheet and OK/Cancel buttons. Pin
justin2231-Apr-03 21:58
justin2231-Apr-03 21:58 
GeneralRe: Modeless property sheet and OK/Cancel buttons. Pin
jhwurmbach1-Apr-03 22:24
jhwurmbach1-Apr-03 22:24 
GeneralProgress Bar Pin
summo1-Apr-03 21:26
summo1-Apr-03 21:26 
GeneralRe: Progress Bar Pin
Cedric Moonen1-Apr-03 22:03
Cedric Moonen1-Apr-03 22:03 
GeneralSearching database more effective Pin
Ohaiyo1-Apr-03 19:33
Ohaiyo1-Apr-03 19:33 
GeneralRichText control Pin
milan1-Apr-03 19:28
milan1-Apr-03 19:28 
Generalcontrolling characters entered into an edit box Pin
Raghunandan S1-Apr-03 19:22
Raghunandan S1-Apr-03 19:22 
GeneralRe: controlling characters entered into an edit box Pin
Anonymous1-Apr-03 20:42
Anonymous1-Apr-03 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.