Page 1 of 1
Posted: 19 Dec 2010, 10:34
by borgmekanik
Dear All,
when i click from an exitisting port USINE creates some suggestions where i can select sth.
i.e. on the midi in port of a VSTi USINE suggest piano roll, random, step etc.
Is it possible to edit these suggesions ? Imagine i have build a sequencer patch and
i would like this patch to be suggested on every midi in port, so that i don have to manually
seek + connect these items, instead or additionally to the default suggestions.
Is this possible ?
Mike
Posted: 19 Dec 2010, 11:02
by nay-seven
yes, it's possible ( but you don't begin by the simplest things in Usine..

)
it's called
templates and you'll find some instructions about it here in the manual:
http://www.sensomusic.com/wiki/doku.php ... ]=template
quickly, it's a text file you add in the templates dir of Usine/files/templates who give the name and the way you want link this sub-patch
here an example template where i add the possibility to link a sub patch name
VstMorph.pat
Code: Select all
Vst Morph
* // file name ext ('wav', 'usr', etc...)
-1 // none=0,in=1,out=2,
3 // term flowtype (ftNone=0,ftPCM=1,ftInternText=2,ftData=3,ftMIDI=4,ftArray=5,ftUser=6,ftEvtText=7,ftPointer=8,ftIntern=9,ftOther=maxInt)
6 // term display flow type (dftText=0,dftgain=1,dftDir=2,dftSwitch=3,dftButton=4,dFtInt=5,dftFloat=6,dftColor=7,dftListBox=8,dftArray=9,dftIpAddress=10,dftSmpte=11,dftFileName=12,dftMidiNote=13)
* // termainal name can be '*' or "any string"
0 // on wire
7 // vst
SET_TARGET_PATCH SENDER_PATCH
CREATE_MODULE vstmorph 6 MOUSE_X MOUSE_Y "VstMorph.pat"
CREATE_LINK vstmorph "out" SRC_MODULE SRC_TERM_NUM
SET_STRING_VALUE vstmorph caption SRC_TERM_NAME
RENAME_MODULE vstmorph SRC_TERM_NAME
you can also read the default templates files to study them...
Posted: 19 Dec 2010, 16:41
by borgmekanik
thanks.
OK, this looks like i have some learning to do...
Just bought the pro version, so now i will have to spend some time diving through the
hidden gems. Expect a lot of stoopid questions then..

Posted: 19 Dec 2010, 18:09
by nay-seven
no problems
here an other example for what you're looking for :
_your patch is named here
mystep.pat
_this patch is in your personal library ( you 've add the path in the global setup/interface /patch library )
_this patch as an
outlet named
midi out
_copy paste this code in a text file and name it something like
midiIn07-mystep.txt
_put this text file in your files/template dir
_restart Usine,
_now,you'll see this template added in the menu from the midi in of a vsti
Code: Select all
mystep
* // file name ext ('wav', 'usr', etc...can be '*')
1 // none=0,in=1,out=2
4 // term flowtype (ftNone=0,ftPCM=1,ftInternText=2,ftData=3,ftMIDI=4,ftArray=5,ftUser=6,ftEvtText=7,ftPointer=8,ftIntern=9,ftOther=maxInt)
3 // term display flow type (dftText=0,dftgain=1,dftDir=2,dftSwitch=3,dftButton=4,dFtInt=5,dftFloat=6,dftColor=7,dftListBox=8,dftArray=9,dftIpAddress=10,dftSmpte=11,dftFileName=12,dftMidiNote=13)
* // termainal name can be '*' or "any string"
SET_TARGET_PATCH SENDER_PATCH
CREATE_MODULE mystep 6 MOUSE_X MOUSE_Y "mystep.pat"
CREATE_LINK mystep "midi out" SRC_MODULE SRC_TERM_NUM
RENAME_MODULE mystep
Posted: 20 Dec 2010, 20:43
by borgmekanik
wow.
something to try out now.
this opens a lot of possibilities and make patchbuilding much easier.
thank you for your help.
Posted: 21 Dec 2010, 19:54
by senso
feel free to share your templates!
can be useful for the all the community...