|
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 Macintosh, 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.
You can also link sendpraat to produce a command-line program (the line above the definition of main () should read "#if 1" in that case):
gcc -o sendpraat -DUNIX `pkg-config --cflags --libs gtk+-2.0` sendpraat.c
The sendpraat program makes a new connection with the X display, sends a message to Praat, and closes the connection to the X display.
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.
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_ppc (21,900 bytes) or sendpraat_intel (17,400 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