mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-01 04:55:03 +00:00
removed init engine from projectm top level, made 32 q varibles pervasive and now use iteration to update them
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1154 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "Common.hpp"
|
||||
#include "fatal.h"
|
||||
@ -397,47 +398,16 @@ CustomWave::CustomWave(int _id) : Waveform(512),
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
param = Param::new_param_float ( "q1", P_FLAG_QVAR, &this->q1, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
for (unsigned int i = 1; i <= NUM_Q_VARIABLES;i++) {
|
||||
std::ostringstream os;
|
||||
os << "q" << i;
|
||||
param = Param::new_param_float ( os.str().c_str(), P_FLAG_QVAR, &this->q[i], NULL, MAX_DOUBLE_SIZE,
|
||||
-MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q2", P_FLAG_QVAR, &this->q2, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q3", P_FLAG_QVAR, &this->q3, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q4", P_FLAG_QVAR, &this->q4, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q5", P_FLAG_QVAR, &this->q5, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q6", P_FLAG_QVAR, &this->q6, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q7", P_FLAG_QVAR, &this->q7, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
}
|
||||
param = Param::new_param_float ( "q8", P_FLAG_QVAR, &this->q8, NULL, MAX_DOUBLE_SIZE, -MAX_DOUBLE_SIZE, 0.0 );
|
||||
if ( ParamUtils::insert ( param, &this->param_tree ) < 0 )
|
||||
{
|
||||
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
/* End of parameter loading. Note that the read only parameters associated
|
||||
with custom waves (ie, sample) are variables stored in PresetFrameIO.hpp,
|
||||
|
||||
Reference in New Issue
Block a user