aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaPiano.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-28 04:51:46 +0000
committerDavid Robillard <d@drobilla.net>2012-03-28 04:51:46 +0000
commit42cb454c24e2772696c281860e333becffc2e2ca (patch)
tree06fdd0f78a29a4cc0d10c08d12d2ef9636e16ba1 /src/mdaPiano.h
parente878fbbae2d686d86848b5353747fd9e359cb2d0 (diff)
downloadmda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.tar.gz
mda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.tar.bz2
mda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.zip
Remove pointless int32 typedef.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4127 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaPiano.h')
-rw-r--r--src/mdaPiano.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/mdaPiano.h b/src/mdaPiano.h
index 7ce2191..1885671 100644
--- a/src/mdaPiano.h
+++ b/src/mdaPiano.h
@@ -46,11 +46,11 @@ private:
struct VOICE //voice state
{
- LvzInt32 delta; //sample playback
- LvzInt32 frac;
- LvzInt32 pos;
- LvzInt32 end;
- LvzInt32 loop;
+ int32_t delta; //sample playback
+ int32_t frac;
+ int32_t pos;
+ int32_t end;
+ int32_t loop;
float env; //envelope
float dec;
@@ -61,17 +61,17 @@ struct VOICE //voice state
float outl;
float outr;
- LvzInt32 note; //remember what note triggered this
+ int32_t note; //remember what note triggered this
};
struct KGRP //keygroup
{
- LvzInt32 root; //MIDI root note
- LvzInt32 high; //highest note
- LvzInt32 pos;
- LvzInt32 end;
- LvzInt32 loop;
+ int32_t root; //MIDI root note
+ int32_t high; //highest note
+ int32_t pos;
+ int32_t end;
+ int32_t loop;
};
class mdaPiano : public AudioEffectX
@@ -80,39 +80,39 @@ public:
mdaPiano(audioMasterCallback audioMaster);
~mdaPiano();
- virtual void process(float **inputs, float **outputs, LvzInt32 sampleframes);
- virtual void processReplacing(float **inputs, float **outputs, LvzInt32 sampleframes);
- virtual LvzInt32 processEvents(LvzEvents* events);
+ virtual void process(float **inputs, float **outputs, int32_t sampleframes);
+ virtual void processReplacing(float **inputs, float **outputs, int32_t sampleframes);
+ virtual int32_t processEvents(LvzEvents* events);
- virtual void setProgram(LvzInt32 program);
+ virtual void setProgram(int32_t program);
virtual void setProgramName(char *name);
virtual void getProgramName(char *name);
- virtual void setParameter(LvzInt32 index, float value);
- virtual float getParameter(LvzInt32 index);
- virtual void getParameterLabel(LvzInt32 index, char *label);
- virtual void getParameterDisplay(LvzInt32 index, char *text);
- virtual void getParameterName(LvzInt32 index, char *text);
- virtual void setBlockSize(LvzInt32 blockSize);
+ virtual void setParameter(int32_t index, float value);
+ virtual float getParameter(int32_t index);
+ virtual void getParameterLabel(int32_t index, char *label);
+ virtual void getParameterDisplay(int32_t index, char *text);
+ virtual void getParameterName(int32_t index, char *text);
+ virtual void setBlockSize(int32_t blockSize);
virtual void resume();
- virtual bool getOutputProperties (LvzInt32 index, LvzPinProperties* properties);
- virtual bool getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char* text);
- virtual bool copyProgram (LvzInt32 destination);
+ virtual bool getOutputProperties (int32_t index, LvzPinProperties* properties);
+ virtual bool getProgramNameIndexed (int32_t category, int32_t index, char* text);
+ virtual bool copyProgram (int32_t destination);
virtual bool getEffectName (char* name);
virtual bool getVendorString (char* text);
virtual bool getProductString (char* text);
- virtual LvzInt32 getVendorVersion () {return 1;}
- virtual LvzInt32 canDo (char* text);
+ virtual int32_t getVendorVersion () {return 1;}
+ virtual int32_t canDo (char* text);
- virtual LvzInt32 getNumMidiInputChannels () { return 1; }
+ virtual int32_t getNumMidiInputChannels () { return 1; }
- LvzInt32 guiUpdate;
- void guiGetDisplay(LvzInt32 index, char *label);
+ int32_t guiUpdate;
+ void guiGetDisplay(int32_t index, char *label);
private:
void update(); //my parameter update
- void noteOn(LvzInt32 note, LvzInt32 velocity);
- void fillpatch(LvzInt32 p, const char *name, float p0, float p1, float p2, float p3, float p4,
+ void noteOn(int32_t note, int32_t velocity);
+ void fillpatch(int32_t p, const char *name, float p0, float p1, float p2, float p3, float p4,
float p5, float p6, float p7, float p8, float p9, float p10,float p11);
float param[NPARAMS];
@@ -121,16 +121,16 @@ private:
#define EVENTBUFFER 120
#define EVENTS_DONE 99999999
- LvzInt32 notes[EVENTBUFFER + 8]; //list of delta|note|velocity for current block
+ int32_t notes[EVENTBUFFER + 8]; //list of delta|note|velocity for current block
///global internal variables
KGRP kgrp[16];
VOICE voice[NVOICES];
- LvzInt32 activevoices, poly, cpos;
+ int32_t activevoices, poly, cpos;
short *waves;
- LvzInt32 cmax;
+ int32_t cmax;
float *comb, cdep, width, trim;
- LvzInt32 size, sustain;
+ int32_t size, sustain;
float tune, fine, random, stretch;
float muff, muffvel, sizevel, velsens, volume;
};