[shell] tweak for PC
I would like to share one thing I found.
I was wandering how to execute other programs from within Max, in order to play with speech synthesis and other things. On PCs, we don’t have either [shell] nor [maxmbrola~].
I already found the ‘editwith’ message for [text] very practical. I understood that ‘editwith’ does something like sending a shell command to open a textfile with a text editor. Then I replaced the editor name by other programs names; I could open these programs.
Then, instead of a program file, I put a command file. I could execute the command file.
Then I realised that, with Max, you can create whatever command file you want by playing with the [text] object. Then, you use the [text] object with an ‘editwith’ message to execute the command file itself.
For example in my case, create a text file containing the text to be speeched; create a command file to launch the text-to-speech program with desired options; execute the command file with ‘editwith’; hear the result.
Has anybody played with that already? any experience to share?
thanks for reading.
… you can even use ‘editwith’ with a shortcut file, letting you execute a command file without opening the shell window, by selecting the "run minimized" shortcut property.
I seem to be too thick to use this.
Could someone possiblt help me out?
editwith "notepad.exe" doesn’t even work for me.
If I try to put the absolute path in the message box automatically deletes the \ characters.
----------begin_max5_patcher---------- 346.3ocoRssSCCCC84No8ODkmKSqsrNDuw2AZBk1ZV8TaRUR5VgI92I0YYra f.wK0wGe7wwmz8SmDwKTCfgydj8LKJZuCIhvFQhB.Q7VwPYivPD4RXmpXCO9 PMKLXIb5P.8UkzJEs.U4IMJZNVR12hxFvRpkDPwJhpS46RRWbJYUuMvN6T4M 36j7IoylGv6D1xZTt9EMTZ8qUdVtqNKa47wv8TRp6LaUnI+.ru0A9N37XFuP HWOFQoSmUDyOlNYL5Bw+ZypELFwZ3Z2BpP6NzVyjJKzIplACewpAkPopWRTS +qdZ5M8z7uwSS9GdZ1hwvxkTR5O6oWYhdxztd4efzHGKbg0ZT85xfhGWK1Iy sBLVTJrnRdFsEmSqFqp.hww0rBMhhFfrr429pJ551BZyAs82J2y8FkdLOO1m iRet2X4ZXKFZw+xvEZmgZctYu1+XN7PN2UgFn6ym3THzH. -----------end_max5_patcher-----------
Yes I have tried that now! It doesn’t work for me.
I tested again and I think you must edit an existing text file on your hard disk, not just edit the text object’s content.
Forums > MaxMSP