hello, I want recreate a patch with a script (midilinkswitch in addons/datatools/patcherkit).
It's very simple in theory but I don't know the language.
How language is use for script? What was it like?
I'm french and english user manual is too difficult for me.
The create patch is a switch (or a fader) for select midi entries (2 or more).
thanx
how to begin a script
can't help you with scripts right now , ( hope one day too )
and sadly we don't have any French lessons for learning scripts for the moment
but maybe some guru with script can show you a way
and sadly we don't have any French lessons for learning scripts for the moment
but maybe some guru with script can show you a way
I took a look at your patch, and you I must say you have made it overly complicated.
If all you want to do is to switch between two inputs to one output, probably the simplest way is to use a selector controlled by a switch. As the switches now have selectable on/off values instead of the old 0 and 1, you don't even have to add 1 to control which input is selected. It's not obvious, but you can also send MIDI data through selectors and dispatchers, etc. In fact, you can send MIDI practically through every kind of module, but the output might not make much sense always...
Back on topic: Do you want to make a script of the patch as a learning experience, or is it just that you need it? Perhaps as a starting point for something more complex later on?
I can't help you with the language part, but I would be surprised if you couldn't find some French websites covering Delphi or its predecessor Pascal. Usine scripts are basically based on a subset of Delphi, but in most case there's no need to go into the object orientated parts, ie the parts that makes it Delphi, not Pascal. I've produced lots of scripts, and only in a handful of cases have I used some objects when dealing with strings. Couple those bits of basic knowledge with a study of various scripts and how they work, and I'm sure you'll soon get the hang of it.
Maybe one of you other Frenchies could translate the upper parts of the scripting language manual to begin with? With the upper parts, I mean down to the "SHELL" command or so, so that the Usine parts are covered. The rest is mostly stuff directly out of a Delphi manual, anyway.
If all you want to do is to switch between two inputs to one output, probably the simplest way is to use a selector controlled by a switch. As the switches now have selectable on/off values instead of the old 0 and 1, you don't even have to add 1 to control which input is selected. It's not obvious, but you can also send MIDI data through selectors and dispatchers, etc. In fact, you can send MIDI practically through every kind of module, but the output might not make much sense always...
Back on topic: Do you want to make a script of the patch as a learning experience, or is it just that you need it? Perhaps as a starting point for something more complex later on?
I can't help you with the language part, but I would be surprised if you couldn't find some French websites covering Delphi or its predecessor Pascal. Usine scripts are basically based on a subset of Delphi, but in most case there's no need to go into the object orientated parts, ie the parts that makes it Delphi, not Pascal. I've produced lots of scripts, and only in a handful of cases have I used some objects when dealing with strings. Couple those bits of basic knowledge with a study of various scripts and how they work, and I'm sure you'll soon get the hang of it.
Maybe one of you other Frenchies could translate the upper parts of the scripting language manual to begin with? With the upper parts, I mean down to the "SHELL" command or so, so that the Usine parts are covered. The rest is mostly stuff directly out of a Delphi manual, anyway.
Bjørn S
bsork> thank you for the answer, I want create script for learn and because I need it.
for midilinkswitch I am not satisfied with the result but I will try your advice.
As exemple in another patch I use a modified script for create stritct midi note filter with filtered and rejected outputs but this modified script is not properly modified and not properly installed.
I'll teach myself to start, I will ask questions later
I found this link in french:
http://www.docsdunet.com/doc_del.html
http://delphi.developpez.com/cours/?page=
for midilinkswitch I am not satisfied with the result but I will try your advice.
As exemple in another patch I use a modified script for create stritct midi note filter with filtered and rejected outputs but this modified script is not properly modified and not properly installed.
I'll teach myself to start, I will ask questions later
I found this link in french:
http://www.docsdunet.com/doc_del.html
http://delphi.developpez.com/cours/?page=
PatcherKit at work.
Who is online
Users browsing this forum: No registered users and 14 guests
