do not translate
Usine includes a powerful Templates Engine. To manipulate and create you own templates you have to understand how work’s the Internal Messages Language (IML).
To have an idea of how it works, start to open the Usine console (Windows/Show Console).
Then open a patch and drag&drop a file.
You will see several lines added in the console, something like
If you now try to create a wire on the patch, you will see in the console :
Those values are interpreted by the template engine to offer several choices to user after a wire creation or what to do with a dropped file.
In the folder Templates you will find lots of examples (files *.txt) that you can easily adapt to you own purpose like
Horizontal Fader // the name displayed * // file name ext ('wav', 'usr', etc...) 1 // input or output? none=0,in=1,out=2 3 // terminal flowtype 1 5 6 // terminal display flowtype * // terminal name can be '*' or "any string" 1 // are dropping something on a wire? 0=no, 1=yes xxx // source module ID filter. -1 or blank if no filter SET_TARGET_PATCH SENDER_PATCH CREATE_MODULE fader1 3 MOUSE_X MOUSE_Y CREATE_LINK fader1 fader SRC_MODULE SRC_TERM_NAME SET_VALUE fader1 fader SRC_VALUE SET_VALUE fader1 min SRC_MIN SET_VALUE fader1 max SRC_MAX SET_STRING_VALUE fader1 symbol SRC_SYMBOL SET_STRING_VALUE fader1 caption SRC_TERM_NAME SET_VALUE fader1 prec SRC_PRECISION_INDEX SET_VALUE fader1 scale SRC_SCALE RENAME_MODULE fader1
The terminal flowtype can have the following values:
The terminal display flowtype can have the following values:
In the templates folder, you will find default patch files used in Usine. You can modify, adapt those files to your needs.