ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2013-07-06T22:17:00+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/3919 2013-07-06T22:17:00+02:00 2013-07-06T22:17:00+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27099#p27099 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by nay-seven — 06 Jul 2013, 22:17


]]>
2013-07-06T21:32:50+02:00 2013-07-06T21:32:50+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27098#p27098 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 06 Jul 2013, 21:32


]]>
2013-07-06T00:42:38+02:00 2013-07-06T00:42:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27096#p27096 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 06 Jul 2013, 00:42


]]>
2013-07-05T13:27:10+02:00 2013-07-05T13:27:10+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27095#p27095 <![CDATA[error LNK2019: on new SDK]]> there's an old user module ( DisplayNumber.usr-win32) in the hollyhock version of your Incrementor add-on

Statistics: Posted by nay-seven — 05 Jul 2013, 13:27


]]>
2013-07-03T16:35:51+02:00 2013-07-03T16:35:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27076#p27076 <![CDATA[error LNK2019: on new SDK]]>

welcome in the SDK world
but be careful, if you love it, you'll see the "tentacular" side of it ;)

Statistics: Posted by martignasse — 03 Jul 2013, 16:35


]]>
2013-07-03T15:43:51+02:00 2013-07-03T15:43:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27075#p27075 <![CDATA[error LNK2019: on new SDK]]> Hello World !


Cheers

olivar

Statistics: Posted by oli_lab — 03 Jul 2013, 15:43


]]>
2013-07-02T14:25:45+02:00 2013-07-02T14:25:45+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27063#p27063 <![CDATA[error LNK2019: on new SDK]]>
I was thinking of separating out the stuff I guess is only of use for the special kinds of ModuleTypes like mtDeviceAudio and mtPluginLister, but maybe I've misunderstood what parts of the SDK can be used where and when.
ok, i see what you mean, but it's not really applicable (nightmare to maintain, consistency problems...)

the strong idea with the Hollyhock SDK is that the UserModuleBase object wrap all you need to make any kind of module and you pick what you need for your use case.
it's clearly a C++ object oriented approach and differ from what is done in plain C

but we have room for simplification and improvement :)
the next SDK release will have a basic template ready for simple modules (TemplateModuleSimple) in addition of the current one.

Statistics: Posted by martignasse — 02 Jul 2013, 14:25


]]>
2013-06-28T18:21:17+02:00 2013-06-28T18:21:17+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27044#p27044 <![CDATA[error LNK2019: on new SDK]]> I was thinking of separating out the stuff I guess is only of use for the special kinds of ModuleTypes like mtDeviceAudio and mtPluginLister, but maybe I've misunderstood what parts of the SDK can be used where and when.

Statistics: Posted by bsork — 28 Jun 2013, 18:21


]]>
2013-06-28T11:46:37+02:00 2013-06-28T11:46:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27036#p27036 <![CDATA[error LNK2019: on new SDK]]> I think I understood few things thru trial and error, mostly errors...
here is my first user module :
incrementor
I plan to use it to interface manual square generators (aka rotary encoders) with Usine.

Statistics: Posted by oli_lab — 28 Jun 2013, 11:46


]]>
2013-06-28T11:26:27+02:00 2013-06-28T11:26:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27034#p27034 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by bsork — 28 Jun 2013, 11:26


]]>
2013-06-28T10:09:31+02:00 2013-06-28T10:09:31+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27032#p27032 <![CDATA[error LNK2019: on new SDK]]>
BTW, while we're on the subject of simplifying things, I think it would be a good idea to split the header files up, moving all the stuff concerning device drivers and plugsins to separate files.
can you elaborate please. i can't figure it

i vaguely see about separating the basic stuff from the very specific one, but what do you mean by 'split the header files up' ?
is it to split the UsineDefinitions.h into more than one file ?
or the UserModule.h ?

Statistics: Posted by martignasse — 28 Jun 2013, 10:09


]]>
2013-06-28T08:31:40+02:00 2013-06-28T08:31:40+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27028#p27028 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by bsork — 28 Jun 2013, 08:31


]]>
2013-06-27T19:02:14+02:00 2013-06-27T19:02:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27023#p27023 <![CDATA[error LNK2019: on new SDK]]> an easy entry point to SDK for simple tasks !

Statistics: Posted by oli_lab — 27 Jun 2013, 19:02


]]>
2013-06-27T13:46:22+02:00 2013-06-27T13:46:22+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27019#p27019 <![CDATA[error LNK2019: on new SDK]]>
but the purpose of the template module is actually to prepare all these methods for the user.

so, maybe the solution is a hello world module, with the minimum to make a functional module able to replace a script module

Statistics: Posted by martignasse — 27 Jun 2013, 13:46


]]>
2013-06-27T13:29:39+02:00 2013-06-27T13:29:39+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27016#p27016 <![CDATA[error LNK2019: on new SDK]]>
Since the new script engine (so far) is rather slow, I reckon a lot of users would like to go the SDK route, but opening the template with all it's new stuff can be rather intimidating and confusing.

Statistics: Posted by bsork — 27 Jun 2013, 13:29


]]>
2013-06-27T12:37:32+02:00 2013-06-27T12:37:32+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27013#p27013 <![CDATA[error LNK2019: on new SDK]]>
one important thing when trying to survive with all this c++ crap :
remember than apart from the language syntax and all the glue code, the sdk structure is very similar to what you do in an usine script


the 'essential' stuff

CODE:

moduleInfos &#58; description and infos about the module content and behaviorparamInfo &#58; some infos to define each params &#40;paramIndex go from 0 to moduleInfo->NumberOfParams - 1&#41;setEventAdress &#58;for each params usine create, we store his handle for future use &#40;paramIndex same as above&#41;callback &#58; when an action is performed to the param, we are informed here &#40;paramIndex same as above&#41;possibly use some param handle to do some stuffprocess &#58; executed in sync withe usine audio block &#40;only if moduleInfo->DontProcess isn't set to FALSE&#41;possibly use some param handle to do some stuff
happy coding

Statistics: Posted by martignasse — 27 Jun 2013, 12:37


]]>
2013-06-27T11:49:40+02:00 2013-06-27T11:49:40+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27010#p27010 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 27 Jun 2013, 11:49


]]>
2013-06-27T11:46:35+02:00 2013-06-27T11:46:35+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27009#p27009 <![CDATA[error LNK2019: on new SDK]]> I know what I'll do tonight until late !

cheers

Statistics: Posted by oli_lab — 27 Jun 2013, 11:46


]]>
2013-06-27T10:38:30+02:00 2013-06-27T10:38:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27006#p27006 <![CDATA[error LNK2019: on new SDK]]>

in TemplateModule.cpp file, line 59, the CreateModule function miss a parameter at the end :

CODE:

void CreateModule &#40;void* &pModule, AinsiCharPtr optionalString, LongBool Flag, MasterInfo* pMasterInfo&#41;
should be

CODE:

void CreateModule &#40;void* &pModule, AinsiCharPtr optionalString, LongBool Flag, MasterInfo* pMasterInfo, AinsiCharPtr optionalContent&#41;
for some simple example module, you can look at DelayArray or RollArray, how have only three params.

but yes, a complete "hello world" template module with only 1 parameter is a good idea, in fact it's what i have planned, but time is....short !

i'll finish it, but you can do it as an exercise ;) there are just three simple modifs to do in the TemplateModule.cpp file :

line 97 : change the param number to 1

CODE:

pModuleInfo->NumberOfParams     = 1;
line 113 to 125 : replace the commented block by this

CODE:

        // Add all parameters declared in the module class, example &#58;        // m_txtfExample        case 0&#58;        pParamInfo->ParamType= ptTextField;        pParamInfo->Caption= "text";        pParamInfo->TextValue              = "hello world";        pParamInfo->IsInput= TRUE;        pParamInfo->IsOutput= TRUE;        break;
and line 133 to 139: replace the commented block by this (the m_txtfExample is a parameter pointer allready declared in the include file)

CODE:

        // Initialyse all events adress declared in your module class, Example &#58;        // m_txtfExample        case 0&#58;        m_txtfExample = pEvent;        break;
with that, you should have a one textfield param module with caption set to "text" and text value set to "hello world"
from here, you can look in other module code to see how to replace the textfield by a datafield or a datafader

anyway, i'll post a corrected package today (where i'll replace the texfield by a datafield)
hope it help

Statistics: Posted by martignasse — 27 Jun 2013, 10:38


]]>
2013-06-27T01:05:21+02:00 2013-06-27T01:05:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=26995#p26995 <![CDATA[error LNK2019: on new SDK]]> I am totally newbie in C++ and VSE2012 !

I have this error with VSE 1012 while trying to compile the template module:

1>UserModule.obj : error LNK2019: symbole externe non résolu "void __cdecl CreateModule(void * &,char *,int,struct MasterInfo *,char *)" (?CreateModule@@YAXAEAPEAXPEADHPEAUMasterInfo@@1@Z) référencé dans la fonction Create
1>....buildsVisualStudio2012DebugTemplateModuleTemplateModule.usr-win64 : fatal error LNK1120: 1 externes non résolus

that would be great to have a tiny module with one datafield input and one output for the newbies to tinker...

compare to the script module, the SDK is way to difficult to play without a strong knowledge of C++ !

cheers.

Olivar

details of the VSE install :
Microsoft Visual Studio Express 2012 pour Windows Desktop
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709

Version installée : Desktop Express

Team Explorer pour Visual Studio 2012 05695-004-0030004-02486
Microsoft Team Explorer pour Visual Studio 2012

Visual Basic 2012 05695-004-0030004-02486
Microsoft Visual Basic 2012

Visual C++ 2012 05695-004-0030004-02486
Microsoft Visual C++ 2012

Visual C# 2012 05695-004-0030004-02486
Microsoft Visual C# 2012

Gestionnaire de package NuGet 2.0.30717.9005
Gestionnaire de packages NuGet dans Visual Studio. Pour plus d'informations sur NuGet, consultez http://docs.nuget.org/.

SQL Server Data Tools 11.1.20828.01
Microsoft SQL Server Data Tools

Statistics: Posted by oli_lab — 27 Jun 2013, 01:05


]]>
BrainModular BrainModular Users Forum 2013-07-06T22:17:00+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/3919 2013-07-06T22:17:00+02:00 2013-07-06T22:17:00+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27099#p27099 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by nay-seven — 06 Jul 2013, 22:17


]]>
2013-07-06T21:32:50+02:00 2013-07-06T21:32:50+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27098#p27098 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 06 Jul 2013, 21:32


]]>
2013-07-06T00:42:38+02:00 2013-07-06T00:42:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27096#p27096 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 06 Jul 2013, 00:42


]]>
2013-07-05T13:27:10+02:00 2013-07-05T13:27:10+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27095#p27095 <![CDATA[error LNK2019: on new SDK]]> there's an old user module ( DisplayNumber.usr-win32) in the hollyhock version of your Incrementor add-on

Statistics: Posted by nay-seven — 05 Jul 2013, 13:27


]]>
2013-07-03T16:35:51+02:00 2013-07-03T16:35:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27076#p27076 <![CDATA[error LNK2019: on new SDK]]>

welcome in the SDK world
but be careful, if you love it, you'll see the "tentacular" side of it ;)

Statistics: Posted by martignasse — 03 Jul 2013, 16:35


]]>
2013-07-03T15:43:51+02:00 2013-07-03T15:43:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27075#p27075 <![CDATA[error LNK2019: on new SDK]]> Hello World !


Cheers

olivar

Statistics: Posted by oli_lab — 03 Jul 2013, 15:43


]]>
2013-07-02T14:25:45+02:00 2013-07-02T14:25:45+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27063#p27063 <![CDATA[error LNK2019: on new SDK]]>
I was thinking of separating out the stuff I guess is only of use for the special kinds of ModuleTypes like mtDeviceAudio and mtPluginLister, but maybe I've misunderstood what parts of the SDK can be used where and when.
ok, i see what you mean, but it's not really applicable (nightmare to maintain, consistency problems...)

the strong idea with the Hollyhock SDK is that the UserModuleBase object wrap all you need to make any kind of module and you pick what you need for your use case.
it's clearly a C++ object oriented approach and differ from what is done in plain C

but we have room for simplification and improvement :)
the next SDK release will have a basic template ready for simple modules (TemplateModuleSimple) in addition of the current one.

Statistics: Posted by martignasse — 02 Jul 2013, 14:25


]]>
2013-06-28T18:21:17+02:00 2013-06-28T18:21:17+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27044#p27044 <![CDATA[error LNK2019: on new SDK]]> I was thinking of separating out the stuff I guess is only of use for the special kinds of ModuleTypes like mtDeviceAudio and mtPluginLister, but maybe I've misunderstood what parts of the SDK can be used where and when.

Statistics: Posted by bsork — 28 Jun 2013, 18:21


]]>
2013-06-28T11:46:37+02:00 2013-06-28T11:46:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27036#p27036 <![CDATA[error LNK2019: on new SDK]]> I think I understood few things thru trial and error, mostly errors...
here is my first user module :
incrementor
I plan to use it to interface manual square generators (aka rotary encoders) with Usine.

Statistics: Posted by oli_lab — 28 Jun 2013, 11:46


]]>
2013-06-28T11:26:27+02:00 2013-06-28T11:26:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27034#p27034 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by bsork — 28 Jun 2013, 11:26


]]>
2013-06-28T10:09:31+02:00 2013-06-28T10:09:31+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27032#p27032 <![CDATA[error LNK2019: on new SDK]]>
BTW, while we're on the subject of simplifying things, I think it would be a good idea to split the header files up, moving all the stuff concerning device drivers and plugsins to separate files.
can you elaborate please. i can't figure it

i vaguely see about separating the basic stuff from the very specific one, but what do you mean by 'split the header files up' ?
is it to split the UsineDefinitions.h into more than one file ?
or the UserModule.h ?

Statistics: Posted by martignasse — 28 Jun 2013, 10:09


]]>
2013-06-28T08:31:40+02:00 2013-06-28T08:31:40+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27028#p27028 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by bsork — 28 Jun 2013, 08:31


]]>
2013-06-27T19:02:14+02:00 2013-06-27T19:02:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27023#p27023 <![CDATA[error LNK2019: on new SDK]]> an easy entry point to SDK for simple tasks !

Statistics: Posted by oli_lab — 27 Jun 2013, 19:02


]]>
2013-06-27T13:46:22+02:00 2013-06-27T13:46:22+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27019#p27019 <![CDATA[error LNK2019: on new SDK]]>
but the purpose of the template module is actually to prepare all these methods for the user.

so, maybe the solution is a hello world module, with the minimum to make a functional module able to replace a script module

Statistics: Posted by martignasse — 27 Jun 2013, 13:46


]]>
2013-06-27T13:29:39+02:00 2013-06-27T13:29:39+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27016#p27016 <![CDATA[error LNK2019: on new SDK]]>
Since the new script engine (so far) is rather slow, I reckon a lot of users would like to go the SDK route, but opening the template with all it's new stuff can be rather intimidating and confusing.

Statistics: Posted by bsork — 27 Jun 2013, 13:29


]]>
2013-06-27T12:37:32+02:00 2013-06-27T12:37:32+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27013#p27013 <![CDATA[error LNK2019: on new SDK]]>
one important thing when trying to survive with all this c++ crap :
remember than apart from the language syntax and all the glue code, the sdk structure is very similar to what you do in an usine script


the 'essential' stuff

CODE:

moduleInfos &#58; description and infos about the module content and behaviorparamInfo &#58; some infos to define each params &#40;paramIndex go from 0 to moduleInfo->NumberOfParams - 1&#41;setEventAdress &#58;for each params usine create, we store his handle for future use &#40;paramIndex same as above&#41;callback &#58; when an action is performed to the param, we are informed here &#40;paramIndex same as above&#41;possibly use some param handle to do some stuffprocess &#58; executed in sync withe usine audio block &#40;only if moduleInfo->DontProcess isn't set to FALSE&#41;possibly use some param handle to do some stuff
happy coding

Statistics: Posted by martignasse — 27 Jun 2013, 12:37


]]>
2013-06-27T11:49:40+02:00 2013-06-27T11:49:40+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27010#p27010 <![CDATA[error LNK2019: on new SDK]]> Statistics: Posted by oli_lab — 27 Jun 2013, 11:49


]]>
2013-06-27T11:46:35+02:00 2013-06-27T11:46:35+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27009#p27009 <![CDATA[error LNK2019: on new SDK]]> I know what I'll do tonight until late !

cheers

Statistics: Posted by oli_lab — 27 Jun 2013, 11:46


]]>
2013-06-27T10:38:30+02:00 2013-06-27T10:38:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=27006#p27006 <![CDATA[error LNK2019: on new SDK]]>

in TemplateModule.cpp file, line 59, the CreateModule function miss a parameter at the end :

CODE:

void CreateModule &#40;void* &pModule, AinsiCharPtr optionalString, LongBool Flag, MasterInfo* pMasterInfo&#41;
should be

CODE:

void CreateModule &#40;void* &pModule, AinsiCharPtr optionalString, LongBool Flag, MasterInfo* pMasterInfo, AinsiCharPtr optionalContent&#41;
for some simple example module, you can look at DelayArray or RollArray, how have only three params.

but yes, a complete "hello world" template module with only 1 parameter is a good idea, in fact it's what i have planned, but time is....short !

i'll finish it, but you can do it as an exercise ;) there are just three simple modifs to do in the TemplateModule.cpp file :

line 97 : change the param number to 1

CODE:

pModuleInfo->NumberOfParams     = 1;
line 113 to 125 : replace the commented block by this

CODE:

        // Add all parameters declared in the module class, example &#58;        // m_txtfExample        case 0&#58;        pParamInfo->ParamType= ptTextField;        pParamInfo->Caption= "text";        pParamInfo->TextValue              = "hello world";        pParamInfo->IsInput= TRUE;        pParamInfo->IsOutput= TRUE;        break;
and line 133 to 139: replace the commented block by this (the m_txtfExample is a parameter pointer allready declared in the include file)

CODE:

        // Initialyse all events adress declared in your module class, Example &#58;        // m_txtfExample        case 0&#58;        m_txtfExample = pEvent;        break;
with that, you should have a one textfield param module with caption set to "text" and text value set to "hello world"
from here, you can look in other module code to see how to replace the textfield by a datafield or a datafader

anyway, i'll post a corrected package today (where i'll replace the texfield by a datafield)
hope it help

Statistics: Posted by martignasse — 27 Jun 2013, 10:38


]]>
2013-06-27T01:05:21+02:00 2013-06-27T01:05:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=3919&p=26995#p26995 <![CDATA[error LNK2019: on new SDK]]> I am totally newbie in C++ and VSE2012 !

I have this error with VSE 1012 while trying to compile the template module:

1>UserModule.obj : error LNK2019: symbole externe non résolu "void __cdecl CreateModule(void * &,char *,int,struct MasterInfo *,char *)" (?CreateModule@@YAXAEAPEAXPEADHPEAUMasterInfo@@1@Z) référencé dans la fonction Create
1>....buildsVisualStudio2012DebugTemplateModuleTemplateModule.usr-win64 : fatal error LNK1120: 1 externes non résolus

that would be great to have a tiny module with one datafield input and one output for the newbies to tinker...

compare to the script module, the SDK is way to difficult to play without a strong knowledge of C++ !

cheers.

Olivar

details of the VSE install :
Microsoft Visual Studio Express 2012 pour Windows Desktop
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709

Version installée : Desktop Express

Team Explorer pour Visual Studio 2012 05695-004-0030004-02486
Microsoft Team Explorer pour Visual Studio 2012

Visual Basic 2012 05695-004-0030004-02486
Microsoft Visual Basic 2012

Visual C++ 2012 05695-004-0030004-02486
Microsoft Visual C++ 2012

Visual C# 2012 05695-004-0030004-02486
Microsoft Visual C# 2012

Gestionnaire de package NuGet 2.0.30717.9005
Gestionnaire de packages NuGet dans Visual Studio. Pour plus d'informations sur NuGet, consultez http://docs.nuget.org/.

SQL Server Data Tools 11.1.20828.01
Microsoft SQL Server Data Tools

Statistics: Posted by oli_lab — 27 Jun 2013, 01:05


]]>