Welcome to %s forums

BrainModular Users Forum

Login Register

Search found 41 matches

by Gizzeta
06 Feb 2010, 13:04
Forum: Module development SDK
Topic: PCHAR question
Replies: 4
Views: 9272

It Works,
Thanks!
by Gizzeta
20 Jan 2010, 00:59
Forum: Module development SDK
Topic: PCHAR question
Replies: 4
Views: 9272

Hi I would like to do an object whit N out. To do this I define the number of output in the .h like this #define NUM_OF_OUT 24 then I allocate an array of TEVT* TEVT* pOut[NUM_OF_OUT]; in the .cpp I write void GetParamInfo (void* pModule,int n, TParamInfo* pParamInfo) { if(n < NUM_O...
by Gizzeta
14 Sep 2009, 23:50
Forum: Module development SDK
Topic: scrollbars
Replies: 5
Views: 10046

I'll try, thanks.
by Gizzeta
12 Sep 2009, 18:33
Forum: Module development SDK
Topic: scrollbars
Replies: 5
Views: 10046

Hi,

I would like to use windows scrollbar in my display module.
I need the handle to the module's window to set it...
How can i get it?
Or there's maybe another way?


thanks
by Gizzeta
26 Aug 2009, 16:40
Forum: Module development SDK
Topic: Get control-alt-shift state
Replies: 5
Views: 10319

Thanks!
by Gizzeta
25 Aug 2009, 23:03
Forum: Module development SDK
Topic: Get control-alt-shift state
Replies: 5
Views: 10319

yes, i found the error, but in this way I get the shift state only if I move the mouse (on the window?).
I would like to get the shift state even if I don't move the mouse...
by Gizzeta
25 Aug 2009, 18:29
Forum: Module development SDK
Topic: not resizable Panel
Replies: 2
Views: 6563

...and is there a way to make the module panel not resizable by the user?
by Gizzeta
25 Aug 2009, 17:50
Forum: Module development SDK
Topic: Get control-alt-shift state
Replies: 5
Views: 10319

Hi,

Is there a way to always get the control, alt and shift state in a module, not only when the mouse is on the module panel?

thanks
by Gizzeta
26 May 2009, 11:03
Forum: Module development SDK
Topic: Data lenght = -1
Replies: 2
Views: 5933

Thanks!
by Gizzeta
24 May 2009, 15:37
Forum: Module development SDK
Topic: Data lenght = -1
Replies: 2
Views: 5933

Hi, when the pass event flow or stop event flow don't output anythng, the lenght of the array is set to [-1]. Why [-1] and not [0]? and why a module doesn't receive this change of data lenght? I would like to do a module where if the lenght of the input is >= 1, do something, else do something else....
by Gizzeta
24 May 2009, 15:24
Forum: Module development SDK
Topic: Input type
Replies: 2
Views: 6050

Nice, thanks,

the other problem is that I can't see the value stored in the module, I only see the caption of the DataField...
by Gizzeta
20 May 2009, 11:47
Forum: Module development SDK
Topic: Input type
Replies: 2
Views: 6050

Hi,

How can I create an input like in the A*B module?
I'm saying an input without prefixed limits and if there's no cable connected I can double ckick on the module and type a number in.
I tried with a DataField type with ReadOnly false, but the number is not stored in the field.

Thanks
by Gizzeta
18 May 2009, 13:11
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

I thaught about an "argument" for a module.
The "name" would be a good way to provide it.
just to know, but it's not really important.

thanks
by Gizzeta
18 May 2009, 12:10
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

Hi,

is there a way to get the "name" you can give to the module (when you right-click on a module)?

thanks
by Gizzeta
13 May 2009, 15:47
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

Thanks, it's quite clear now!
by Gizzeta
12 May 2009, 15:16
Forum: Module development SDK
Topic: How to read from serial port..
Replies: 3
Views: 7013

Ok, now it's clear for the cpu monitor. So I have a general question on Usine, just for better undrstending. I guess it has 2 differents threads: one for the audio and one for te datas. I guess also that (ie.) if sampling rate is at 44.1kHz and block size is 128 samples, the process function is call...
by Gizzeta
09 May 2009, 00:12
Forum: Module development SDK
Topic: How to read from serial port..
Replies: 3
Views: 7013

here again! I'm trying to create a module in C++, that read datas send on the serial port (com4) by an external device. I programmed the device so that it sends an ascii char whose bits represent the state of 8 phisical port, every time some of it change his state. Outside Usine it seems to work fin...
by Gizzeta
08 May 2009, 23:54
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

I profit by your patience... 3/ Process <- called each Usine cycle (800/second) while your module is alive "process" is called syncronicall with the block size? ie. if the block size is 128, audio process is called every 128 samples? Or, if the sample rate is 44100 and "process" is called 800/sec, t...
by Gizzeta
08 May 2009, 14:44
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

Hi Martignasse, The module is a simple oscillator. It fill a buffer with a file where there's a one-cycle waveform. Then it calculates wich sample he has to put out, according with the actual frequency parameter. 1°) 'samplesOverSR' is never updated with the '(float)*(pCycle->lSize) / (float)pCycle-...
by Gizzeta
08 May 2009, 02:13
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

No matter ;)
by Gizzeta
07 May 2009, 22:59
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

Yes, very precious for me, thanks!
no problem, but remenber to ask someone else to read your code ;-) it save days, no joke !
...maybe you haven't seen my previous post...I have put the whole code...
by Gizzeta
07 May 2009, 21:06
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

...forgot:
lSize is a pointer because I need to access to it in the process function. It's the only way, isn't it?
by Gizzeta
07 May 2009, 20:55
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

that's my code (not so complex...), if you can help me to understend my mistake : class TCycle : public TUserModule { public: TEVT* pFreqIn; TEVT* pAudioOut; FILE* pFile; float* buffer, *index, *coefFreq, *freqMinus; int* lSize; }; void Process (void* pModule) { //pointer to t...
by Gizzeta
07 May 2009, 19:11
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

Hi, thanks for your help, I found the problem. I have others variables declared in the process function. I thought that theese were not global...(isn't it?) So, I declared all the variables (with pointers) in the "TModule" and "create" functions and then i use them in the "process". Now it seems to ...
by Gizzeta
07 May 2009, 14:37
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

yes...sure
by Gizzeta
07 May 2009, 00:11
Forum: Module development SDK
Topic: Problems when using two instance of a module
Replies: 22
Views: 35379

Hallo, I declared the variables in the TModule class declaration: class TCycle : public TUserModule { public: // Declare all parameters events pointers needed, example : TEVT* pFreqIn; TEVT* pAudioOut; TEVT* ARR; FILE* pFile; float* buffer; int* lSize; }; and i created it in the create voi...
by Gizzeta
01 May 2009, 13:42
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

hi, need help again... I create a module that fill a buffer with a waveform stored in an external file and read it as a loop (oscillator). it works nice, but when I add a second instance of the same module (even if not connected) it affect the output of the first module (it sounds like a frequency m...
by Gizzeta
30 Apr 2009, 11:43
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

It works fine, thanks!
by Gizzeta
22 Apr 2009, 13:41
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

Can you confirm if the textfield problem is solved with the new version 4.20 ? It's ok for the text outlet, it appears normally. But how can I pass my text to the outlet? througt DATA?(but it is an array of floats, not char...) or througt the UserData pointer to void? Have I to set TFlowType to ftE...
by Gizzeta
22 Apr 2009, 02:04
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

martignasse wrote:Hi Gizzeta,
Something like should do the trick (not tested) :

Code: Select all

double sampleRate = pMasterInfo->VstTimeInfo->sampleRate;
thanks for your answers.
for the sampling rate I checked: it's not VstTimeInfo, but pTimeInfo.

Code: Select all

SampleRate = PointerToMyModule->pMasterInfo->pTimeInfo->sampleRate
by Gizzeta
11 Apr 2009, 18:28
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

Another question:

how can I get the Usine sample rate?

thanks
by Gizzeta
27 Mar 2009, 18:23
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

Hi,

I've tried, but i didn't find how to create a text outlet. Can you help me?

thanks
by Gizzeta
23 Mar 2009, 12:24
Forum: Suggestions & improvements
Topic: arguments on modules
Replies: 5
Views: 4786

cool, it's what i need,

thanks
by Gizzeta
22 Mar 2009, 15:53
Forum: Suggestions & improvements
Topic: arguments on modules
Replies: 5
Views: 4786

I think the best solution is effectively is a popup menu during drag and drop, before the module creation. The user can then provide the arguments that are specified in a function in the module head code, with type(int, float, checkbox, char...), min, max and default. Then the module is create, with...
by Gizzeta
19 Mar 2009, 01:03
Forum: Suggestions & improvements
Topic: arguments on modules
Replies: 5
Views: 4786

je relance...
Gizzeta wrote:Hi Senso,

thanks for your work!

it would be nice if it was possible to insert one or more arguments in a module.
i.e. to insert "3" for a 3 channel sampler

This would be very usefull for the users modules!!!
what do you think about it? It's hard to do?
by Gizzeta
10 Mar 2009, 18:52
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

ok, thank you

and is there a function to print from an user module on the Usine console? (for debugging purpose...)
by Gizzeta
09 Mar 2009, 11:01
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

hem....what kind of allocation?
an array of 7.000.000 floats elements? Or there's something better? ;)
by Gizzeta
08 Mar 2009, 13:16
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

i'll try, thanks!
by Gizzeta
06 Mar 2009, 15:13
Forum: Suggestions & improvements
Topic: arguments on modules
Replies: 5
Views: 4786

Hi Senso,

thanks for your work!

it would be nice if it was possible to insert one or more arguments in a module.
i.e. to insert "3" for a 3 channel sampler

This would be very usefull for the users modules!!!
by Gizzeta
06 Mar 2009, 12:56
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

Hi Martin, I come from MaxMSP and within it there is a buffer object to store sounds or big datas.I can acces it from the C++ module programming. In Usine, if I need to store for examle a 60 seconds incoming sound inside my module, have I to do a memory allocation myself? Or there's a function to ac...
by Gizzeta
04 Mar 2009, 10:43
Forum: Module development SDK
Topic: SDK V2 Feedbacks, it's here
Replies: 54
Views: 90265

hallo!

thanks for the c++ SDK.
Is there a way to create or communicate with an audio buffer?

thanks