Debian Codegraph @

docs/sendpraat.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3 <title>Sendpraat: sending messages to Praat</title></head><body bgcolor="#FFCCCC">
4
5 <table border=0 cellpadding=0 cellspacing=0 width="100%"><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9 width="100%"><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
6 Sendpraat: sending messages to Praat
7 </b></font></table></table>
8
9 <p>With the <b>sendpraat</b> source code, you can send messages to a running program that uses the Praat shell,
10 like Praat, although it is nowadays easier to use <b>praat --send</b>,
11 which will start up Praat if it’s not running yet
12 (see <a href=manual/Scripting_6_9__Calling_from_the_command_line.html>section 6.9 of the scripting tutorial</a>).
13
14 <b>Sendpraat</b> is available as a subroutine for macOS, Windows, and Linux,
15 and as a command-line program for macOS, Windows, and Linux.
16 The Praat manual contains a page about <a href=manual/sendpraat.html>how to use the
17 <b>sendpraat7</b> program</a>.
18 </p>
19
20 <p>The source code is in <a href=sendpraat7.c>sendpraat7.c</a>.
21 In the line above the definition of main (), this file contains either "if 0" or "if 1",
22 depending on whether you use it as a subroutine or as a command-line program.</p>
23
24 <h2>Sendpraat for macOS</h2>
25 <p>You can freely use sendpraat as a subroutine in your own C programs, in which case
26 the <b>sendpraat subroutine</b> becomes a part of your macOS application.</p>
27 <p>If you must (but <b>praat --send</b> is easier), you can use the executable program
28 <a href=sendpraat7-mac>sendpraat7-mac</a> (67,344 bytes)
29 from the macOS command line (Terminal).</p>
30 <p>You could also compile this executable program yourself with</p>
31 <pre>
32 cc sendpraat7.c -arch arm64 -arch x86_64 -o sendpraat-mac -DSTAND_ALONE -Dmacintosh -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
33 </pre>
34
35 <h2>Sendpraat for Windows</h2>
36 <p>You can freely use sendpraat as a subroutine in your own C programs, in which case
37 the <b>sendpraat subroutine</b> becomes a part of your Windows application.</p>
38 <p>If you must (but <b>praat --send</b> is easier), you can use the executable program
39 <a href=sendpraat7-win-x64.exe>sendpraat7-win-x64.exe</a> (88,576 bytes)
40 or
41 <a href=sendpraat7-win-arm64.exe>sendpraat7-win-arm64.exe</a> (87,040 bytes)
42 from the command line (console).</p>
43 <p>You could also compile this executable program yourself with something like</p>
44 <pre>
45 cc -std=gnu99 sendpraat7.c -o sendpraat7-win-x64.exe -DSTAND_ALONE -mconsole
46 </pre>
47 from an MSYS2 CLANG64 shell, or
48 <pre>
49 cc -std=gnu99 sendpraat7.c -o sendpraat7-win-arm64.exe -DSTAND_ALONE -mconsole
50 </pre>
51 from an MSYS2 CLANGARM64 shell.
52
53 <h2>Sendpraat for Linux</h2>
54 <p>You can freely use sendpraat as a subroutine in your own C programs, in which case
55 the <b>sendpraat subroutine</b> becomes a part of your Linux application.</p>
56 <p>If you must (but <b>praat --send</b> is easier), you can use the executable program
57 <a href=sendpraat7-linux-x64>sendpraat7-linux-x64</a> (17,224 bytes)
58 or
59 <a href=sendpraat7-linux-arm64>sendpraat7-linux-arm64</a> (18,392 bytes)
60 from the command line (Terminal).</p>
61 <p>You could also compile this executable program yourself with</p>
62 <pre>
63 cc -std=gnu99 sendpraat7.c -o sendpraat7-linux-x64 -DSTAND_ALONE -DUNIX
64 </pre>
65 or
66 <pre>
67 cc -std=gnu99 sendpraat7.c -o sendpraat7-linux-arm64 -DSTAND_ALONE -DUNIX
68 </pre>
69
70 <hr>
71 <a href=https://www.fon.hum.uva.nl/paul/>Paul Boersma</a>, 3 August 2026<br>
72 Phonetic Sciences<br>
73 University of Amsterdam<br>
74 Spuistraat 134, Amsterdam<br>
75 E-mail: <a href=mailto:[email protected]>[email protected]</a><br>
76
77 </body>
78 </html>