|
With the sendpraat source code, you can send messages to a running program that uses the Praat shell, like Praat. Sendpraat is available as a subroutine for Unix, Windows, and MacOS X, and as a command-line program for Unix, Windows, and MacOS X. The Praat manual contains a page about how to use the sendpraat program.
The source code is in sendpraat.c. In the line above the definition of main (), this file contains either "if 0" or "if 1", depending on whether you use it as a subroutine or as a command-line program.
You can freely use sendpraat as a subroutine in your own C programs, in which case the sendpraat subroutine becomes a part of your GTK application (the line above the definition of main () should read "#if 0" in that case), or use the executable program sendpraat_gtk32 (16,800 bytes; 32-bit) or sendpraat_gtk64 (22,670 bytes; 64-bit) from the command line.
You could also compile it yourself with
gcc -std=gnu99 -o sendpraat -DUNIX `pkg-config --cflags --libs gtk+-2.0` sendpraat.c
You can freely use it as a subroutine in your own C programs (the line above the definition of main () should read "#if 0" in that case), or use the executable program sendpraat.exe (41,472 bytes) from the command line (console).
You can freely use it as a subroutine in your own C programs (the line above the definition of main () should read "#if 0" in that case), or use the executable program sendpraat_carbon (18,364 bytes) from the MacOS X command line. You could also compile it yourself with
cc -o sendpraat -framework CoreServices -I/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers -I/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers sendpraat.c -Dmacintosh -DuseCarbon=1