Template Tutorial

:!: do not translate

A step by step tutorial to introduce the template creation in Usine.The purpose is to add the has changed module for outlets of faders, switches and more.

Modify, adapt an existing template

We gone to use an existing template for this example.

In the folder Usine/Templates/default find the text file named ”dataOut03-VertFader.txt” .

Create a new folder named My templates (or whatever the name you want) in the main Template folder.

Copy/paste this file in this new folder and rename it ”dataOut05-HasChanged.txt”.

Note that we used the same first name + 05 to create the future menu order

Change the names

Open this text file and change the first line (was Vertical Fader) by Has Changed, will be the name you want displayed in your menu. In a second time delete the selected lines here in blue, those parameters are specific to faders and we don’t need them for our purpose.

Now find in this text all the FaderV1 instances and replace them by haschange1

The identification number

Refer to Internal Messages Language (IML) page to find the Identification number for the module we want: Has Changed = 106:

And replace the fader Identification number (was 172) by this one:

Create the link

On the next line, you replace fader by in.

This is the name of the inlet of our has changed module. Here in this line we create the link between our source module and the inlet of the has changed module. Note the wire is always created from out to in.:

Choice of the modules type

Now, we can select the module type who will benefit from this new menu, here we add for example the switch (3), listbox (8), fader midi note (13), you can find the complete list in most of templates and in the display_flowtype.

iml_haschanged7.jpg

Save and test

Now, don’t forget to save this new text file and check in a patch to see your new menu:

The file

If you need it, here the file you must obtain at the end of this tutorial:

template_example.zip

manual/guide/template_tutorial.txt · Last modified: 2013/04/19 02:21 (external edit)