Welcome to %s forums

BrainModular Users Forum

Login Register

Bouncing Balls

Discussions about add-ons, announcements
Post Reply
zenzak
Member
Posts: 11
Location: Paris
Contact:

Unread post by zenzak » 21 Jul 2008, 18:33

I have posted a new user module called "Bouncing Balls" :
A Bouncing balls Panel. Balls trigger when bouncing. Speed and number of balls can be set. I add a workspace where the balls trigger two StepMidi modules.

Zenzak

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 21 Jul 2008, 20:22

Fantastic ! really cool module , love it

just 2 little bugs :

changing the visible status : ( for ex : ctrl panel to interface panel ) change the number of balls

in interface panel , changing the size of the window bug Usine
with this message :
Error:Internal in TUserPanel

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 21 Jul 2008, 22:05

impatient to try this module!!!!

zenzak
Member
Posts: 11
Location: Paris
Contact:

Unread post by zenzak » 22 Jul 2008, 00:31

Thank you... its hollyday for me and i'll try to spare my time between correcting some bugs and.... fishing !

Cordialement
zenzak

zenzak
Member
Posts: 11
Location: Paris
Contact:

Unread post by zenzak » 22 Jul 2008, 00:36

... i don't know how to intercept the message when changing form ctrl panel to interface panel.... I know this bug ! Thank you to Senso to help me. I Prepare a module with webcam panel and prehap histograms value out. 'Hope to be inspired !

Zenzak

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Jul 2008, 10:15

zenzac wrote:I Prepare a module with webcam panel
ouh ouh ! Christmas in summer !!!

and happy fishing too...;-)

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Jul 2008, 10:52

Very funny and interesting !!!
Be sure i will use it. Thank you very much for this module.
i am impatient to try your 'web cam' module .... You realy make me happy.

Have nice time on holliday and good fishing.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Jul 2008, 12:57

hello Zenzak thanks for your great User modules.

Error messages aren't displayed in the trace panel but reprted in the LogUsine.log file.
So it can help if you need to get error msg (in the future I'll implement a 'debug' mode to display such msg more friendly...)

In the case of the BouncingBalls you have (my system is in french)

Code: Select all

[12:38:23] TUserPanel  Descripteur non valide
[12:38:23] Error:Internal in TUserPanel 
[12:38:39] TUserPanel  La ressource demandée est en cours d'utilisation.
[12:38:39] Error:Internal in TUserPanel 
[12:38:40] TUserPanel  Out of system resources
[12:38:40] Error:Internal in TUserPanel 
[12:38:44] TUserPanel  Out of system resources
When we look carefully it seems to come from InitSpace called by the Resize.

Code: Select all

procedure TBouncingBalls.InitSpace;
begin
  Bitmap.Width:=ModuleWidth-(BorderWidth*2);
  Bitmap.height:=ModuleHeight-(BorderWidth*2);
  SpaceRgn:=CreateRectRgn(0,0,Bitmap.Width,Bitmap.Height);
end;
I don't know precisely how works the CreateRectRgn routine, (I don't use it In Usine).
But two possible bugs:
- you create Rgn without destroying the previous one ?
- the resize is called by the "display thread" and the process by the "realtime audio thread". So it's possible to have conflicts (you re-create region while you attempt to use it in the process routine). To protect your code you can use TCriticalSection (Aquire & Release).

I hope It will help you.

I'm also impatient to have the web cam Usermodule!!

Post Reply

Who is online

Users browsing this forum: No registered users and 101 guests