Friday, July 13, 2007

 

loading orc files into csd with autoit and mdinotepad

This is a script to load csound intruments into an orc file. The scripting
language is autoit. I created two tags ; and ; to avoid some
problems that might occur in some text editors. It is hardcoded but can be
rewritten to make it a command line variable. The editor used is mdiNotepad
available at http://koti.mbnet.fi/~fidgety/ (another editor that looked
intresting is Columnizer by Gulf Coastal Software). I don't know that this
is the best way to do this and would like to hear suggestions about editors
that insert into other files. The scipt listed as a non-debugged version for vim isn't going to work well enough to mess with...

Run("mdipad.exe c:\dex_tracker\bay-at-night.csd")


; Wait for the Notepad become active - it is titled "Untitled - Notepad" on
English systems
WinWaitActive("mdiNotepad")
sleep(500)
;Send("c:\dex_tracker\bay-at-night.csd {ENTER}")
sleep(500)
send("^f")
send(";{ENTER}")
sleep(500)
send("{ESCAPE}")
sleep(500)
Send("^f")
send(";{ENTER}")
sleep(500)
send("{ESCAPE}{END}")
send("^i strings.orc{ENTER}" )


Sleep(500)

Labels: , , ,


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?