Files
JaySynth/Source/JaySynthMonophonicMGR.h
T
jens cfc9645b0b - port to minGw
git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@235 b431acfa-c32f-4a4a-93f1-934dc6c82436
2015-02-21 17:09:43 +00:00

42 lines
896 B
C++

/*
==============================================================================
This file was generated by user!
==============================================================================
*/
#ifndef _JAYSYNTHMONOPHONICMGR_H_
#define _JAYSYNTHMONOPHONICMGR_H_
//#include "../JuceLibraryCode/JuceHeader.h"
#include "synth/synth_defs.h"
class JaySynthMonophonicMGR
{
public:
JaySynthMonophonicMGR();
~JaySynthMonophonicMGR();
void init(void);
void add(int note, float vel);
void del(int note);
int getNumNotes(void);
int getLatestNote(void);
int getHighestNote(void);
float getVel(int note);
private:
typedef struct _skey_linkedlist_t
{
int note;
float vel;
struct _skey_linkedlist_t *pPrev, *pNext;
} key_linkedlist_t;
key_linkedlist_t keys[128];
key_linkedlist_t *pLatest;
};
#endif // _JAYSYNTHMONOPHONICMGR_H_