05.09.2013 Views

2.3 Relaxatie-oscillator

2.3 Relaxatie-oscillator

2.3 Relaxatie-oscillator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#define NOTE_OFF 0x08<br />

//***************************************************************************<br />

// class CMyDlg<br />

// this class uses five or so methods:<br />

// GetMsg(int) Delivers message nr...<br />

// SaveMsg(CString) Stores message in list. Last list item is nr. maxL-1<br />

// FileODlg Asks user for filename to read from<br />

// FileSDlg Asks user for filename to write to<br />

// Convert Converts a MIDI File to TXT File<br />

class CMyDlg<br />

{<br />

public:<br />

CMyDlg(void); // constructor<br />

CString GetMsg(int i); // ALWAYS DO A FULL REBUILD AFTER MODIFYING A CONST!!!<br />

const static int maxL=16; // maximum number of rows in the text output dialog<br />

const static int maxP=260; // maximum number of characters in a path+filename<br />

const static int xOD=10; // x- left top coordinate output dialog<br />

const static int yOD=144; // y- left top coordinate output dialog<br />

const static int hSZ=461; // x- right bot coordinate output dialog<br />

const static int vSZ=421; // y- right bot coordinate output dialog<br />

void SaveMsg(CString msg);<br />

bool FileODlg(void); // filename->FONm, return=succes<br />

bool FileSDlg(void); // filename->FSNm, return=succes<br />

CString FONm; // Member with path+filename+extension input file<br />

CString FOLp; // Member with filename+extension<br />

CString FOFn; // Member with filename<br />

CString FOEx; // Member with extension<br />

CString FSNm; // Member with path+filename output file<br />

CString FSPt; // Member with path only<br />

CString FSLp; // Member with filename+extension<br />

CString FSFn; // Member with filename<br />

CString FSEx; // Member with extension<br />

bool Convert(void); // Do Conversion midifile 2 Txt<br />

private:<br />

int MsgCount;<br />

CString Msgs[maxL+1];<br />

};<br />

De class CMyDlg met ondermeer de methode Convert die de conversie van een MIDI File afhandelt:<br />

//********************************************************<br />

// Class MyDlg.cpp<br />

//<br />

#<br />

#include “StdAfx.h”<br />

#include “MyDlg.h”<br />

CMyDlg::CMyDlg(void)<br />

{<br />

MsgCount=0;<br />

for (int i=0;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!