I'm trying to create a template which open a patch when i drag and drop an audio file.
I put my patch in the template folder and i create a txt file copying an existing one.
Here is my file :
Code: Select all
Tempo Player
wav mp3 flac aif aiff // file name ext ('wav', 'usr', etc...)
0 // none=0,in=1,out=2
* // term flowtype
* // 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, dftHexa=14, dftTrigger=15, dftPassword=16
* // termainal name can be '*' or "any string"
0 // drag on wire 0=false 1=true
-1 // source module ID (-1 = any module)
SET_TARGET_PATCH SENDER_PATCH
PROMPT_FOR_SAVE
CLEAR_PATCH
LOAD_PATCH "Audio File Tempo Player.pat"
SET_STRING_VALUE WGP1 "add file name" DROP_FILENAME
RENAME_MODULE WGP1
RENAME_PATCH DROP_SHORT_FILENAMEwhat error did i commit ?
Thanks.
