Add more wave shapes to LFO controller

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1011 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-22 04:03:30 +00:00
parent 452a35c1c5
commit 1781974657
4 changed files with 147 additions and 74 deletions

View File

@@ -32,6 +32,7 @@
#include "controller.h"
#include "controller_dialog.h"
#include "tempo_sync_knob.h"
#include "oscillator.h"
class automatableButtonGroup;
@@ -53,16 +54,6 @@ public:
return "LFO Controller";
}
enum LfoShapes
{
SineWave,
TriangleWave,
SawWave,
SquareWave,
UserDefinedWave,
NumLfoShapes
} ;
public slots:
virtual controllerDialog * createDialog( QWidget * _parent );
@@ -88,6 +79,10 @@ slots:
int m_phaseCorrection;
int m_phaseOffset;
sample_t (*m_sampleFunction)( const float );
protected slots:
void updateSampleFunction( void );
friend class lfoControllerDialog;
};