ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2009-05-18T13:11:14+02:00https://brainmodular.com/forums/app.php/feed/topic/12322009-05-18T13:11:14+02:002009-05-18T13:11:14+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8874#p8874The "name" would be a good way to provide it. just to know, but it's not really important.
thanks
Statistics: Posted by Gizzeta — 18 May 2009, 13:11
is there a way to get the "name" you can give to the module (when you right-click on a module)?
No, it's not exposed on SDK level.
For what use do you need this ?
Statistics: Posted by martignasse — 18 May 2009, 12:54
]]>2009-05-18T12:10:01+02:002009-05-18T12:10:01+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8872#p8872 is there a way to get the "name" you can give to the module (when you right-click on a module)?
thanks
Statistics: Posted by Gizzeta — 18 May 2009, 12:10
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 modulation). WHY???
Normally all the variables and pointers are internals to every instance of the module(private)...or not?
Thanks for your help
I opened a new thread for this question, for better visibility and because it's not directly SDK feedback, but more a technical question.
Statistics: Posted by martignasse — 05 May 2009, 18:21
]]>2009-05-01T13:42:16+02:002009-05-01T13:42:16+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8502#p8502need 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 modulation). WHY???
Normally all the variables and pointers are internals to every instance of the module(private)...or not?
Thanks for your help
Statistics: Posted by Gizzeta — 01 May 2009, 13:42
]]>2009-04-30T11:43:02+02:002009-04-30T11:43:02+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8488#p8488Statistics: Posted by Gizzeta — 30 Apr 2009, 11:43
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 ftEvtText?
Ok so,
I have the solution (directly from the boss )
the text data is stored in the DATA array, one char per float !
so the way you have to code your text is a bit tricky....you need to cast each char as float per DATA array element.
for example (tested OK), assuming 'PTextTest' is your textfiel param:
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 ftEvtText?
In fact, i don't know
Seems there is no exposed method to access the text variable by code... or we lack some infos.
Have to ask to senso.
Statistics: Posted by martignasse — 23 Apr 2009, 00:49
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 ftEvtText? ...?
thanks
Statistics: Posted by Gizzeta — 22 Apr 2009, 13:41
Statistics: Posted by Gizzeta — 22 Apr 2009, 02:04
]]>2009-04-12T21:00:05+02:002009-04-12T21:00:05+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8227#p8227Statistics: Posted by martignasse — 12 Apr 2009, 21:00
]]>2009-04-12T20:32:51+02:002009-04-12T20:32:51+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8226#p8226
I've tried, but i didn't find how to create a text outlet. Can you help me?
Well, after testing, it seems like the text field param is always shown as inlet, whatever the IsInput/IsOutput values, which is anormal. I have to see with senso.
it's an usine pb fixed now. next release very very soon!
]]>2009-04-11T23:24:33+02:002009-04-11T23:24:33+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8223#p8223 Sorry, seems like i forget you'r last question...
I've tried, but i didn't find how to create a text outlet. Can you help me?
Well, after testing, it seems like the text field param is always shown as inlet, whatever the IsInput/IsOutput values, which is anormal. I have to see with senso. As a workaround for now, you can always extend the module in usine (the little white square in topleft) to access the outlet part.
Statistics: Posted by martignasse — 11 Apr 2009, 23:24
]]>2009-04-11T18:28:19+02:002009-04-11T18:28:19+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8219#p8219 how can I get the Usine sample rate?
thanks
Statistics: Posted by Gizzeta — 11 Apr 2009, 18:28
]]>2009-03-27T19:23:29+02:002009-03-27T19:23:29+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8030#p8030 I've tried, but i didn't find how to create a text outlet. Can you help me?
thanks
Statistics: Posted by Gizzeta — 27 Mar 2009, 18:23
i try to add some an new output (data, midi or anything else) on a patch inspired by drawpad and prototype example. compilation works but when a put my .usr file into usine, i can't connect it to others modules. i suppose that i did a mistake but i don't find where i add some line code in : - get param info method (i add a new case) -set event adress (new case too) - i changed the number of params in get module info and try to change the value of pModuleInfo->ModuleType anyone no what is to change to add output or have others sources codes available to see how they works ?
thanks Vincent
Seems ok, but did you add the corresponding TEVT* pointer in the include file ?
in your example you use win api to code the graphical part of your draw pad.
Partialy right, in fact, the 'simplest' way to code the graphical part is to use the GDI or the GDI+ (who are really little part of the Windows API), has they are used by Usine itself.
The difference between those is that GDI+ has OOP interface, and has more polished graphical result, but is slower than GDI, who is typical C interface.
The UserDrawPad example use the GDI library.
The link you provided seems to generic about the whole Windos API, here some specific resources for GDI and GDI+ :
You'll find a lot of tutorials with google for GDI+, less for GDI, don't hesitate to add them to the wiki.
as a note, you have to know that in theory, it's possible to draw the graphical part with DirextX or OpenGL, it's just that no one have made it for now. I even wanted to make test for vector graphic with SVG or OpenVG....but really no time for that theses days.
Hope it help
Statistics: Posted by martignasse — 23 Mar 2009, 19:59
]]>2009-03-23T20:05:21+02:002009-03-23T20:05:21+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7971#p7971compilation works but when a put my .usr file into usine, i can't connect it to others modules. i suppose that i did a mistake but i don't find where i add some line code in : - get param info method (i add a new case) -set event adress (new case too) - i changed the number of params in get module info and try to change the value of pModuleInfo->ModuleType anyone no what is to change to add output or have others sources codes available to see how they works ?
thanks Vincent
Statistics: Posted by pansoul — 23 Mar 2009, 19:05
]]>2009-03-23T03:02:17+02:002009-03-23T03:02:17+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7958#p7958correct me if i am wrong, in your example you use win api to code the graphical part of your draw pad. i have read the two tutorial about c and c++ on le site du zero and i am not able to understand correctly your code. is a tutorial like http://www.siteduzero.com/tutoriel-3-87 ... ndows.html pertinent for a good undertanding ? if you are thinking to others ressources... thanks Vincent
Statistics: Posted by pansoul — 23 Mar 2009, 02:02
but i can't find the word "TemplateProject" in this two files, do you rather mean the word "TemplateModule" is to changed with the project name ?
Yes, you are totally right it's "TemplateModule" that should be replaced by "MyModule" or what ever.
Excuse me for the typo, i'll correct this for the next release.
Statistics: Posted by martignasse — 19 Mar 2009, 17:50
]]>2009-03-19T14:57:38+02:002009-03-19T14:57:38+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7916#p7916martignasse , in the CPPQuickStartEN.pdf and in french version too, you say :
"The last thing to do is to replace, in these two files, the world TemplateProject by the name of your module (be sure to uncheck the Match case and Match whole word options to replace all occurences)."
but i can't find the word "TemplateProject" in this two files, do you rather mean the word "TemplateModule" is to changed with the project name ?
thanks
Statistics: Posted by pansoul — 19 Mar 2009, 13:57
]]>2009-03-10T20:05:00+02:002009-03-10T20:05:00+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7789#p7789It's a good suggestion I'll try to add this fuction as soon as possible. Also Usine contains around 350.000 lines of reusable code. Maybe I could start to find a way to have an access to those functions. For example reading audio samples from the hard disk, midi tools, etc.
]]>2009-03-10T19:52:08+02:002009-03-10T19:52:08+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7787#p7787 and is there a function to print from an user module on the Usine console? (for debugging purpose...)
Statistics: Posted by Gizzeta — 10 Mar 2009, 18:52
]]>2009-03-09T16:24:00+02:002009-03-09T16:24:00+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7777#p7777 you also have the possibility to allocate a PCHAR pointer (7.000.000 x sizeof(float)) and deal with pointers, often more efficient.
but allocating such a buffer can take a long time so don't do that in the main 'audio proceed' function. try to do that in - during the creation procedure - the callback procedure
]]>BrainModularBrainModular Users Forum2009-05-18T13:11:14+02:00https://brainmodular.com/forums/app.php/feed/topic/12322009-05-18T13:11:14+02:002009-05-18T13:11:14+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8874#p8874The "name" would be a good way to provide it. just to know, but it's not really important.
thanks
Statistics: Posted by Gizzeta — 18 May 2009, 13:11
is there a way to get the "name" you can give to the module (when you right-click on a module)?
No, it's not exposed on SDK level.
For what use do you need this ?
Statistics: Posted by martignasse — 18 May 2009, 12:54
]]>2009-05-18T12:10:01+02:002009-05-18T12:10:01+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8872#p8872 is there a way to get the "name" you can give to the module (when you right-click on a module)?
thanks
Statistics: Posted by Gizzeta — 18 May 2009, 12:10
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 modulation). WHY???
Normally all the variables and pointers are internals to every instance of the module(private)...or not?
Thanks for your help
I opened a new thread for this question, for better visibility and because it's not directly SDK feedback, but more a technical question.
Statistics: Posted by martignasse — 05 May 2009, 18:21
]]>2009-05-01T13:42:16+02:002009-05-01T13:42:16+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8502#p8502need 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 modulation). WHY???
Normally all the variables and pointers are internals to every instance of the module(private)...or not?
Thanks for your help
Statistics: Posted by Gizzeta — 01 May 2009, 13:42
]]>2009-04-30T11:43:02+02:002009-04-30T11:43:02+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8488#p8488Statistics: Posted by Gizzeta — 30 Apr 2009, 11:43
]]>2009-04-27T00:06:52+02:002009-04-27T00:06:52+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8443#p8443
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 ftEvtText?
Ok so,
I have the solution (directly from the boss )
the text data is stored in the DATA array, one char per float !
so the way you have to code your text is a bit tricky....you need to cast each char as float per DATA array element.
for example (tested OK), assuming 'PTextTest' is your textfiel param:
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 ftEvtText?
In fact, i don't know
Seems there is no exposed method to access the text variable by code... or we lack some infos.
Have to ask to senso.
Statistics: Posted by martignasse — 23 Apr 2009, 00:49
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 ftEvtText? ...?
thanks
Statistics: Posted by Gizzeta — 22 Apr 2009, 13:41
Statistics: Posted by Gizzeta — 22 Apr 2009, 02:04
]]>2009-04-12T21:00:05+02:002009-04-12T21:00:05+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8227#p8227Statistics: Posted by martignasse — 12 Apr 2009, 21:00
]]>2009-04-12T20:32:51+02:002009-04-12T20:32:51+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8226#p8226
I've tried, but i didn't find how to create a text outlet. Can you help me?
Well, after testing, it seems like the text field param is always shown as inlet, whatever the IsInput/IsOutput values, which is anormal. I have to see with senso.
it's an usine pb fixed now. next release very very soon!
]]>2009-04-11T23:24:33+02:002009-04-11T23:24:33+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8223#p8223 Sorry, seems like i forget you'r last question...
I've tried, but i didn't find how to create a text outlet. Can you help me?
Well, after testing, it seems like the text field param is always shown as inlet, whatever the IsInput/IsOutput values, which is anormal. I have to see with senso. As a workaround for now, you can always extend the module in usine (the little white square in topleft) to access the outlet part.
Statistics: Posted by martignasse — 11 Apr 2009, 23:24
]]>2009-04-11T18:28:19+02:002009-04-11T18:28:19+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8219#p8219 how can I get the Usine sample rate?
thanks
Statistics: Posted by Gizzeta — 11 Apr 2009, 18:28
]]>2009-03-27T19:23:29+02:002009-03-27T19:23:29+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=8030#p8030 I've tried, but i didn't find how to create a text outlet. Can you help me?
thanks
Statistics: Posted by Gizzeta — 27 Mar 2009, 18:23
i try to add some an new output (data, midi or anything else) on a patch inspired by drawpad and prototype example. compilation works but when a put my .usr file into usine, i can't connect it to others modules. i suppose that i did a mistake but i don't find where i add some line code in : - get param info method (i add a new case) -set event adress (new case too) - i changed the number of params in get module info and try to change the value of pModuleInfo->ModuleType anyone no what is to change to add output or have others sources codes available to see how they works ?
thanks Vincent
Seems ok, but did you add the corresponding TEVT* pointer in the include file ?
in your example you use win api to code the graphical part of your draw pad.
Partialy right, in fact, the 'simplest' way to code the graphical part is to use the GDI or the GDI+ (who are really little part of the Windows API), has they are used by Usine itself.
The difference between those is that GDI+ has OOP interface, and has more polished graphical result, but is slower than GDI, who is typical C interface.
The UserDrawPad example use the GDI library.
The link you provided seems to generic about the whole Windos API, here some specific resources for GDI and GDI+ :
You'll find a lot of tutorials with google for GDI+, less for GDI, don't hesitate to add them to the wiki.
as a note, you have to know that in theory, it's possible to draw the graphical part with DirextX or OpenGL, it's just that no one have made it for now. I even wanted to make test for vector graphic with SVG or OpenVG....but really no time for that theses days.
Hope it help
Statistics: Posted by martignasse — 23 Mar 2009, 19:59
]]>2009-03-23T20:05:21+02:002009-03-23T20:05:21+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7971#p7971compilation works but when a put my .usr file into usine, i can't connect it to others modules. i suppose that i did a mistake but i don't find where i add some line code in : - get param info method (i add a new case) -set event adress (new case too) - i changed the number of params in get module info and try to change the value of pModuleInfo->ModuleType anyone no what is to change to add output or have others sources codes available to see how they works ?
thanks Vincent
Statistics: Posted by pansoul — 23 Mar 2009, 19:05
]]>2009-03-23T03:02:17+02:002009-03-23T03:02:17+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7958#p7958correct me if i am wrong, in your example you use win api to code the graphical part of your draw pad. i have read the two tutorial about c and c++ on le site du zero and i am not able to understand correctly your code. is a tutorial like http://www.siteduzero.com/tutoriel-3-87 ... ndows.html pertinent for a good undertanding ? if you are thinking to others ressources... thanks Vincent
Statistics: Posted by pansoul — 23 Mar 2009, 02:02
but i can't find the word "TemplateProject" in this two files, do you rather mean the word "TemplateModule" is to changed with the project name ?
Yes, you are totally right it's "TemplateModule" that should be replaced by "MyModule" or what ever.
Excuse me for the typo, i'll correct this for the next release.
Statistics: Posted by martignasse — 19 Mar 2009, 17:50
]]>2009-03-19T14:57:38+02:002009-03-19T14:57:38+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7916#p7916martignasse , in the CPPQuickStartEN.pdf and in french version too, you say :
"The last thing to do is to replace, in these two files, the world TemplateProject by the name of your module (be sure to uncheck the Match case and Match whole word options to replace all occurences)."
but i can't find the word "TemplateProject" in this two files, do you rather mean the word "TemplateModule" is to changed with the project name ?
thanks
Statistics: Posted by pansoul — 19 Mar 2009, 13:57
]]>2009-03-10T20:05:00+02:002009-03-10T20:05:00+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7789#p7789It's a good suggestion I'll try to add this fuction as soon as possible. Also Usine contains around 350.000 lines of reusable code. Maybe I could start to find a way to have an access to those functions. For example reading audio samples from the hard disk, midi tools, etc.
]]>2009-03-10T19:52:08+02:002009-03-10T19:52:08+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7787#p7787 and is there a function to print from an user module on the Usine console? (for debugging purpose...)
Statistics: Posted by Gizzeta — 10 Mar 2009, 18:52
]]>2009-03-09T16:24:00+02:002009-03-09T16:24:00+02:00https://brainmodular.com/forums/viewtopic.php?t=1232&p=7777#p7777 you also have the possibility to allocate a PCHAR pointer (7.000.000 x sizeof(float)) and deal with pointers, often more efficient.
but allocating such a buffer can take a long time so don't do that in the main 'audio proceed' function. try to do that in - during the creation procedure - the callback procedure