Skip to content

Commit

Permalink
git-svn-id: file:///home/ctaf42/Downloads/tmp/MultifxVST@38 3e78e570-…
Browse files Browse the repository at this point in the history
…a0aa-6544-9a6b-7e87a0c009bc
  • Loading branch information
Quentin1 authored and Quentin1 committed Jul 7, 2004
1 parent 41aeb5f commit 2d8310b
Show file tree
Hide file tree
Showing 17 changed files with 112 additions and 117 deletions.
1 change: 1 addition & 0 deletions ChainDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CChainDlg::CChainDlg( CWnd* pParent)

void CChainDlg::OnUpdate(int nb)
{

APP->chaine_eff->ViewChaine(APP->current_chaine,m_listvst,nb);
UpdateData();
m_used = APP->chaine_eff->nb_effect_used;
Expand Down
21 changes: 19 additions & 2 deletions ControleurLst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,36 @@ void CControleurParam::SupprParam(int nbeffstk,int nparam)

}

CParameterLst::~CParameterLst()
{
for(int i = 0;i<nb_controleur;i++)
delete controleur_value[i];

delete controleur_value;
controleur_value = NULL;

}

void CParameterLst::Init(int nbcontroleur)
{
nb_controleur = nbcontroleur;
controleur_value.SetSize(nbcontroleur);
controleur_value = new CControleurParam * [nbcontroleur];
for (int i = 0;i < nbcontroleur;i++)
controleur_value[i] = new CControleurParam;
//controleur_value.SetSize(nbcontroleur);
}

void CParameterLst::setParameter(long index, float value)
{
int val = int( value *127);
int val = float2NBChaine(value);
controleur_value[index]->Set(val);
}

float CParameterLst::getParameter(long index)
{
return NBChaine2float(controleur_value[index]->Get());
}

//-------#############################################-------//
//-------#############################################-------//
//-------#############################################-------//
Expand Down
9 changes: 7 additions & 2 deletions ControleurLst.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ class CControleurParam
public:
CControleurParam(){value = 0;};
void Set(int value127){value = value127;}
int Get(){
return value;
}
void AddParam(int nbeffstk,int nparam);
void SupprParam(int nbeffstk,int nparam);
CArray <DWORD,DWORD> m_param;//liste des params associés
Expand All @@ -16,18 +19,20 @@ class CParameterLst
{
public:
CParameterLst(){nb_controleur = 32;}
virtual ~CParameterLst();
void Init(int nbcontroleur);

void AddParam();
void SupprParam();

void Set_APP(CAppPointer * mapp){APP = mapp;}
void setParameter(long index, float value);
void setParameter(long index, float value);
float getParameter(long index);
int GetCount(){return nb_controleur;}
protected:
CAppPointer * APP;
int nb_controleur;
CArray <CControleurParam *,CControleurParam *> controleur_value;
CControleurParam ** controleur_value;/*CArray <CControleurParam *,CControleurParam *>*/
};
//####################################################################
//####################################################################
Expand Down
2 changes: 1 addition & 1 deletion End to End/multifxVST/INFO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MultifxVST est un plug-ins VST qui permet de g

Principales caract�ristiques :
- gestion d'un nombre infini de plug-ins (limitation de la machine hein!)
- jusqu'a 127 chaine possible
- jusqu'a 127 chaines possibles
- r�utilise les effets entre les chaines
- gestion des fxp et fxb
- gestion de la compensation du delay
Expand Down
23 changes: 12 additions & 11 deletions End to End/multifxVST/TODO LIST.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ MultiFXVST - CTAF Audio - version 0.6.4
//####################################################################
//########### HISTORY ################################################
//####################################################################
//-- 30/06/2004
- ajout : getparameter totalement fonctionnel
- ajout : controleur sauvegard� ("save all"/"load all"/"save chain"/"load chain")

//-- 24/06/2004
- ajout : gestion des parametres automatisables (getparameter / travail interne)
- ajout : gestion des parametres automatisables (getparameter /interne)
- bug : GetBlockSize/GetSampleRate (retourne une constante)

//-- 22/06/2004
- ajout : 32 controleurs automatisable (setparameter)
- ajout : 32 controleurs automatisables (setparameter /interne)

//-- 15/06/2004
- ajout : implementation ComboBox pour choisir le controleur
Expand Down Expand Up @@ -149,33 +153,30 @@ MultiFXVST - CTAF Audio - version 0.6.4
(il remet la taille de la fenetre d'origine)(il conserve editor contrairement � cubase)
// - qd on ajoute un plug-ins d�ja utilis� il ne met pas les param�tres par d�fault du plug mais ceux de la dernier config utilis�
// bug resize (l'un dans l'autre dans l'un dans...)
//bug affichage txt : fenetre generique

//perte de focus dans les listes


//####################################################################
//########### TODO LIST ##############################################
//####################################################################
// - perte de focus dans les listes
// - automation => redraw syst�matique de l'interface (onupdate)
// - sauvegarde de la fenetre en cours lors du changement de chaine / plug-ins
// - effecteditWnd => ne pas recr�er � chaque fois...
// - message d'erreur contenant le nom du plug-ins (load all,...)

//######### Ajout de fonction ########################################
// - plug-ins shell et dx
// - controleur coupe son
// - sauvegarder autant de program que n�cessaire pour chaque chaine
// - midi
// - mute (avec controleur)
// - midi learn / parameter learn

//######### General ##################################################
// - Automation de tous les params
// - mettre en cache le nom des plug-ins dans un menu
/#/- verif si un plugins peut �tre mono ou pas au chargement
// - bypasser un plugins (ac controleur)
// - r�utiliser les loadmodules(dll)
// - verif le type de plug-ins,ses options,etc... au chargement du plug
// - effacer tt
// - info : m�moire / ...
// - liste => possibilit� de n'avoir rien selectinonn�...
// - effecteditWnd => ne pas recr�er � chaque fois...

//############ HOST => PLUG => MultiFXHost => MultiFXPlug #############
/#/- fxidle
Expand Down
4 changes: 2 additions & 2 deletions MainDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ BOOL CMainDlg::OnInitDialog()
m_btnpreset.SetToolTipText(&text);


m_sld.SetRange(0,126);
m_sld.SetRange(0,127);

m_sld.SetPageSize(10);
m_sld.SetLineSize(1);
Expand Down Expand Up @@ -1014,7 +1014,7 @@ void CMainDlg::OnBnClickedBtnchmoins()
void CMainDlg::OnBnClickedBtnchplus()
{

if(APP->current_chaine < 126)
if(APP->current_chaine < 127)
{
//APP->current_chaine++;
APP->effect->setParameterAutomated(0,NBChaine2float(APP->current_chaine+1));
Expand Down
10 changes: 8 additions & 2 deletions StdAfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@

float NBChaine2float(int nbchaine)
{
return nbchaine / 125.5f;
float nb = nbchaine / 126.5f;
if(nb < 0.0f)nb = 0.0f;
if(nb > 1.0f)nb = 1.0f;
return nb;
}

int float2NBChaine(float flot)
{
return int(flot * 126.0f);
int nb = int(flot * 127.0f);
if(nb < 0)nb = 0;
if(nb > 127)nb = 127;
return nb;
}
34 changes: 13 additions & 21 deletions multifxVST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,30 +292,25 @@ float multifxVST::getParameter (long index)
{
float v = 1.0;

switch (index)
{
case kSliderHTag :
if (index == kSliderHTag )
v = NBChaine2float(APP.current_chaine);
break;
}
else
{
v = APP.parameter->getParameter(index-kNumParams);
//APP.parameter->setParameter(index-kNumParams,value);
}

return v;
}

//-----------------------------------------------------------------------------
void multifxVST::getParameterDisplay (long index, char *text)
{
switch (index)
{
case kSliderHTag :
if (index == kSliderHTag )
sprintf (text, "%d",APP.current_chaine);
break;
else
sprintf (text, "%f",getParameter(index));

default :
strcpy (text, "0");
}

//strcpy (text, "0");
}

//-----------------------------------------------------------------------------
Expand All @@ -336,14 +331,11 @@ void multifxVST::getParameterLabel (long index, char *text)
//-----------------------------------------------------------------------------
void multifxVST::getParameterName (long index, char *text)
{
switch (index)
{
case kSliderHTag :
if (index == kSliderHTag)
strcpy (text, "Chain number");
break;
default :
strcpy (text, "-");
}
else
sprintf (text, "Parameter %d",index - kNumParams +1);

// strcpy (text, "-");
}

Expand Down
Binary file modified multifxVST.ncb
Binary file not shown.
32 changes: 16 additions & 16 deletions multifxVST.sln
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "multifxVST", "multifxVST.vcproj", "{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "multifxVST", "multifxVST.vcproj", "{03205513-9262-4376-A184-51A87664CD02}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug Dyn = Debug Dyn
Debug Stat = Debug Stat
Release Dyn = Release Dyn
Release Static = Release Static
ConfigName.0 = Debug Dyn
ConfigName.1 = Debug Stat
ConfigName.2 = Release Dyn
ConfigName.3 = Release Static
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Debug Dyn.ActiveCfg = Debug Dyn|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Debug Dyn.Build.0 = Debug Dyn|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Debug Stat.ActiveCfg = Debug Stat|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Debug Stat.Build.0 = Debug Stat|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Release Dyn.ActiveCfg = Release Dyn|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Release Dyn.Build.0 = Release Dyn|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Release Static.ActiveCfg = Release Static|Win32
{3A8F4570-3F00-47B0-8A33-B9A0CF36E2B8}.Release Static.Build.0 = Release Static|Win32
{03205513-9262-4376-A184-51A87664CD02}.Debug Dyn.ActiveCfg = Debug Dyn|Win32
{03205513-9262-4376-A184-51A87664CD02}.Debug Dyn.Build.0 = Debug Dyn|Win32
{03205513-9262-4376-A184-51A87664CD02}.Debug Stat.ActiveCfg = Debug Stat|Win32
{03205513-9262-4376-A184-51A87664CD02}.Debug Stat.Build.0 = Debug Stat|Win32
{03205513-9262-4376-A184-51A87664CD02}.Release Dyn.ActiveCfg = Release Dyn|Win32
{03205513-9262-4376-A184-51A87664CD02}.Release Dyn.Build.0 = Release Dyn|Win32
{03205513-9262-4376-A184-51A87664CD02}.Release Static.ActiveCfg = Release Static|Win32
{03205513-9262-4376-A184-51A87664CD02}.Release Static.Build.0 = Release Static|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
Expand Down
Binary file modified multifxVST.suo
Binary file not shown.
Loading

0 comments on commit 2d8310b

Please sign in to comment.