Welcome to %s forums

BrainModular Users Forum

Login Register

New : a Scripting Tutorial is now available

Announcements
Post Reply
User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 07 Jul 2009, 19:08

The Scripting Tutorial made by Benjamin Moussay is available in the download section.
Thanks for his great contribution, and also to Bsork for his precious help.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 07 Jul 2009, 19:18

excellent, thank u all

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

Unread post by nay-seven » 07 Jul 2009, 19:30

great !!
now , no excuse !!..;-)
many thanks

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 07 Jul 2009, 21:32

Thank you all!
As i'm a real noob with scripting, this will help me a lot.
Seb.Dub

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 08 Jul 2009, 02:37

excellent! this should give me the push i need to start digging in to this part of usine :)

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 08 Jul 2009, 08:53

great job!
thank you, benjamin and bsork :)

i've read many programming guides and this is one of the better ones.
whats still missing for me is a kind of quick reference that lists all functions, globals, etc. on a few pages.
wonder if there are still more functions? the string section contains a lot of functions that are not listed in senso's quick reference.

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 08 Jul 2009, 11:33

Yes - a great job, but not by me. I only did some proofreading, filled out some blanks, and made some suggestions.

Regarding other functions, there are others available like the TStringList class used in some the text file I/O scripts I've put up in the add-ons. There's also one in the distro, if memory serves my right. What other (standard?) Delphi classes/functions/procedures that are available, I don't know.
Bjørn S

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 09 Jul 2009, 22:40

im sure this tut is well done but i couldn't manage to make a simple A+B = out script, any chance to get a complete exemple for dummies like me?

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 10 Jul 2009, 07:20

Here's an example:

Code: Select all

var inA, inB, out : tParameter;

procedure init;
begin
   inA := CreateParam('A', ptDataFader);
   SetIsOutput(inA, FALSE);
   SetFormat(inA, '%.0f');
   SetMin(inA, 1);
   SetMax(inA, 10);

   inB := CreateParam('B', ptDataFader);
   SetIsOutput(inB, FALSE);
   SetFormat(inB, '%.0f');
   SetMin(inB, 1);
   SetMax(inB, 10);

   out := CreateParam('out', ptDataFader);
   SetIsInput(out, FALSE);
   SetFormat(out, '%.0f');
end;

begin
   SetValue(out, GetValue(inA) + GetValue(inB));
end.
Bjørn S

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 10 Jul 2009, 12:36

oh yeah thx a lot bsork, now it's clear!

multiphone
Member
Posts: 303
Contact:

Unread post by multiphone » 17 Jul 2009, 12:25

Hello !

Great News.

Very Clear.

Thanks a lot.

H.
HB

Lines / Points / Squares

http://www.hervebirolini.com/

NaN
Member
Posts: 35
Location: Munich
Contact:

Unread post by NaN » 04 Aug 2009, 22:47

Thanks a lot for your efforts, much appreciated!

NaN

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 24 Aug 2009, 20:01

bsork wrote:What other (standard?) Delphi classes/functions/procedures that are available, I don't know.
any chance to get some more info about this?
feeling lost in this question (if its a relevant question)

is it possible to include files in the script module?

and yet another question: would it benefit midi tools a lot if they're written with C++ sdk (like nelson did)?

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

Unread post by senso » 25 Aug 2009, 09:18

amiga909 wrote:any chance to get some more info about this?
feeling lost in this question (if its a relevant question)
in fact they are many other hidden functions, classes and procedures. Enough to build a real application but not so easy to use. I hope I'll have time to improve the documentation about it.
amiga909 wrote:is it possible to include files in the script module?
actually not.
amiga909 wrote:and yet another question: would it benefit midi tools a lot if they're written with C++ sdk (like nelson did)?
C++ is 20x faster than script language but for midi manipulation it's not a problem: the midi rate is generally few midi events per second. Scripting does a good job.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests