ArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2015-04-22T17:54:37+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4738 2015-04-22T17:54:37+02:00 2015-04-22T17:54:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32449#p32449 <![CDATA[recycle C++ code]]>

Statistics: Posted by martignasse — 22 Apr 2015, 17:54


]]>
2015-04-20T13:52:27+02:00 2015-04-20T13:52:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32361#p32361 <![CDATA[recycle C++ code]]> Statistics: Posted by oli_lab — 20 Apr 2015, 13:52


]]>
2015-04-15T14:42:22+02:00 2015-04-15T14:42:22+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32263#p32263 <![CDATA[recycle C++ code]]>
we don't have timer callback exposed in the sdk for now, but you can do it pretty easily.

in the onProcess you check the time with sdkGetTimeMs(), when it pass the period of your framerate goal , you send a callback notification to usine.
using sdkNotifyUsine (int Target, int Msg, int Param1=0, int Param2=0) with
Target = NOTIFY_TARGET_USER_MODULE
Msg = NOTIFY_MSG_USINE_CALLBACK
Param1 correspond to the Message->wParam (so the param index)
Param2 = MSG_CHANGE

make sure your pParamInfo->CallBackType = ctImmediate; for the concerned param

but depending on what you are doing in this callback, making a dedicated thread is maybe more appropriate

tell me if you need more

Statistics: Posted by martignasse — 15 Apr 2015, 14:42


]]>
2015-04-15T08:10:55+02:00 2015-04-15T08:10:55+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32257#p32257 <![CDATA[recycle C++ code]]>
in the Processing program, there is a framerate that is setup by default in Processing but here in SDK I'd need some sort of a clock to trigger the callback section at regular interval...

?

Statistics: Posted by oli_lab — 15 Apr 2015, 08:10


]]>
2015-03-10T13:38:53+02:00 2015-03-10T13:38:53+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31557#p31557 <![CDATA[recycle C++ code]]> y a plus qu'à :D

Statistics: Posted by martignasse — 10 Mar 2015, 12:38


]]>
2015-03-10T09:23:06+02:00 2015-03-10T09:23:06+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31555#p31555 <![CDATA[recycle C++ code]]> pendulum 1 length (0 - 10m)
pendulum 2 length (0 - 10m)
pendulum 1 mass (0- 10kg)
pendulum 2 mass (0- 10kg)
friction (0-1)
gravity (= 981)
reset (button 0-1)

outputs
xy coordinates of mass 1 (origin is a fix point as in XY pad)
xy coordinates of mass 2 (origin is a fix point as in XY pad)
xy coordinates of mass 2 (origin is mass 1)

all outputs will be 0 to 1

Statistics: Posted by oli_lab — 10 Mar 2015, 08:23


]]>
2015-03-09T23:49:44+02:00 2015-03-09T23:49:44+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31552#p31552 <![CDATA[recycle C++ code]]>
thank you, that's encouraging
I was thinking of using the coordinates and angular datas of the 2 pendulae as modulation sources for spatialisation and/or FX...
yep, seems like it makes sense, but what does it mean in term of module params inputs/outputs ;)

it's the big job (other than putting an algo in) about module...
how you control it and what they deliver (in a params point of view)
answer it and 50% of the job is done

Statistics: Posted by martignasse — 09 Mar 2015, 22:49


]]>
2015-03-09T22:29:21+02:00 2015-03-09T22:29:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31551#p31551 <![CDATA[recycle C++ code]]> I was thinking of using the coordinates and angular datas of the 2 pendulae as modulation sources for spatialisation and/or FX...

Statistics: Posted by oli_lab — 09 Mar 2015, 21:29


]]>
2015-03-09T19:39:12+02:00 2015-03-09T19:39:12+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31549#p31549 <![CDATA[recycle C++ code]]>
after a quick look at the sources, the first one rely on 3 file for the algorythm, the rest is for QT integration.
it should be pretty easy to isolate the algo part, the 'big' work is to reconstruct the graphic part and how you sync that with the audio...
But you should be pretty comfortable with C++ coding to understand the file and code organisation and plug code at the right place


the second on is more simple, only one file for the algo and one for processing integration, but it's java, maybe require some code modif.

i suggest the second one,if it take you only few hours to make a module from it, you are on the right track.

Statistics: Posted by martignasse — 09 Mar 2015, 18:39


]]>
2015-03-09T12:31:03+02:00 2015-03-09T12:31:03+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31542#p31542 <![CDATA[recycle C++ code]]>
https://freddie.witherden.org/tools/dou ... /#download

this one is in Java but seems more simple :
http://www.openprocessing.org/sketch/57589

Statistics: Posted by oli_lab — 09 Mar 2015, 11:31


]]>
BrainModular BrainModular Users Forum 2015-04-22T17:54:37+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4738 2015-04-22T17:54:37+02:00 2015-04-22T17:54:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32449#p32449 <![CDATA[recycle C++ code]]>

Statistics: Posted by martignasse — 22 Apr 2015, 17:54


]]>
2015-04-20T13:52:27+02:00 2015-04-20T13:52:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32361#p32361 <![CDATA[recycle C++ code]]> Statistics: Posted by oli_lab — 20 Apr 2015, 13:52


]]>
2015-04-15T14:42:22+02:00 2015-04-15T14:42:22+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32263#p32263 <![CDATA[recycle C++ code]]>
we don't have timer callback exposed in the sdk for now, but you can do it pretty easily.

in the onProcess you check the time with sdkGetTimeMs(), when it pass the period of your framerate goal , you send a callback notification to usine.
using sdkNotifyUsine (int Target, int Msg, int Param1=0, int Param2=0) with
Target = NOTIFY_TARGET_USER_MODULE
Msg = NOTIFY_MSG_USINE_CALLBACK
Param1 correspond to the Message->wParam (so the param index)
Param2 = MSG_CHANGE

make sure your pParamInfo->CallBackType = ctImmediate; for the concerned param

but depending on what you are doing in this callback, making a dedicated thread is maybe more appropriate

tell me if you need more

Statistics: Posted by martignasse — 15 Apr 2015, 14:42


]]>
2015-04-15T08:10:55+02:00 2015-04-15T08:10:55+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=32257#p32257 <![CDATA[recycle C++ code]]>
in the Processing program, there is a framerate that is setup by default in Processing but here in SDK I'd need some sort of a clock to trigger the callback section at regular interval...

?

Statistics: Posted by oli_lab — 15 Apr 2015, 08:10


]]>
2015-03-10T13:38:53+02:00 2015-03-10T13:38:53+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31557#p31557 <![CDATA[recycle C++ code]]> y a plus qu'à :D

Statistics: Posted by martignasse — 10 Mar 2015, 12:38


]]>
2015-03-10T09:23:06+02:00 2015-03-10T09:23:06+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31555#p31555 <![CDATA[recycle C++ code]]> pendulum 1 length (0 - 10m)
pendulum 2 length (0 - 10m)
pendulum 1 mass (0- 10kg)
pendulum 2 mass (0- 10kg)
friction (0-1)
gravity (= 981)
reset (button 0-1)

outputs
xy coordinates of mass 1 (origin is a fix point as in XY pad)
xy coordinates of mass 2 (origin is a fix point as in XY pad)
xy coordinates of mass 2 (origin is mass 1)

all outputs will be 0 to 1

Statistics: Posted by oli_lab — 10 Mar 2015, 08:23


]]>
2015-03-09T23:49:44+02:00 2015-03-09T23:49:44+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31552#p31552 <![CDATA[recycle C++ code]]>
thank you, that's encouraging
I was thinking of using the coordinates and angular datas of the 2 pendulae as modulation sources for spatialisation and/or FX...
yep, seems like it makes sense, but what does it mean in term of module params inputs/outputs ;)

it's the big job (other than putting an algo in) about module...
how you control it and what they deliver (in a params point of view)
answer it and 50% of the job is done

Statistics: Posted by martignasse — 09 Mar 2015, 22:49


]]>
2015-03-09T22:29:21+02:00 2015-03-09T22:29:21+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31551#p31551 <![CDATA[recycle C++ code]]> I was thinking of using the coordinates and angular datas of the 2 pendulae as modulation sources for spatialisation and/or FX...

Statistics: Posted by oli_lab — 09 Mar 2015, 21:29


]]>
2015-03-09T19:39:12+02:00 2015-03-09T19:39:12+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31549#p31549 <![CDATA[recycle C++ code]]>
after a quick look at the sources, the first one rely on 3 file for the algorythm, the rest is for QT integration.
it should be pretty easy to isolate the algo part, the 'big' work is to reconstruct the graphic part and how you sync that with the audio...
But you should be pretty comfortable with C++ coding to understand the file and code organisation and plug code at the right place


the second on is more simple, only one file for the algo and one for processing integration, but it's java, maybe require some code modif.

i suggest the second one,if it take you only few hours to make a module from it, you are on the right track.

Statistics: Posted by martignasse — 09 Mar 2015, 18:39


]]>
2015-03-09T12:31:03+02:00 2015-03-09T12:31:03+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4738&p=31542#p31542 <![CDATA[recycle C++ code]]>
https://freddie.witherden.org/tools/dou ... /#download

this one is in Java but seems more simple :
http://www.openprocessing.org/sketch/57589

Statistics: Posted by oli_lab — 09 Mar 2015, 11:31


]]>