Page 1 of 1

Posted: 07 Jul 2009, 19:08
by senso
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.

Posted: 07 Jul 2009, 19:18
by 23fx23
excellent, thank u all

Posted: 07 Jul 2009, 19:30
by nay-seven
great !!
now , no excuse !!..;-)
many thanks

Posted: 07 Jul 2009, 21:32
by ethnix73
Thank you all!
As i'm a real noob with scripting, this will help me a lot.

Posted: 08 Jul 2009, 02:37
by Clearscreen
excellent! this should give me the push i need to start digging in to this part of usine :)

Posted: 08 Jul 2009, 08:53
by amiga909
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.

Posted: 08 Jul 2009, 11:33
by bsork
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.

Posted: 09 Jul 2009, 22:40
by 23fx23
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?

Posted: 10 Jul 2009, 07:20
by bsork
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.

Posted: 10 Jul 2009, 12:36
by 23fx23
oh yeah thx a lot bsork, now it's clear!

Posted: 17 Jul 2009, 12:25
by multiphone
Hello !

Great News.

Very Clear.

Thanks a lot.

H.

Posted: 04 Aug 2009, 22:47
by NaN
Thanks a lot for your efforts, much appreciated!

NaN

Posted: 24 Aug 2009, 20:01
by amiga909
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)?

Posted: 25 Aug 2009, 09:18
by senso
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.