FreeCalypso > hg > freecalypso-tools
annotate ringtools/examples/ring.pwt @ 926:6a0aa8d36d06
rvinterf backslash escape: introduce libprint
The new helper function library named libprint is meant to replace
the badly misnamed libg23, and will soon contain functions for
printing all of the same kinds of GPF TST packets that are now handled
in libg23. However, we are also moving safe_print_trace() from libasync
to this new library, and changing it to emit our new backslash escape
format.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 03:47:46 +0000 |
parents | 74331b35b1da |
children |
rev | line source |
---|---|
854
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
1 # The most basic ringtone included in TI's TCS211 delivery was apparently |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
2 # intended to consist of alternating 800 Hz and 900 Hz tones, although |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
3 # the actual output was a continuous 99 Hz tone as a result of interface |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
4 # mismatch between the BZ_Tone() driver function and the tone generation |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
5 # tables. |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
6 # |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
7 # In 2016 we made FC Magnetite emit actual 800 Hz and 900 Hz tones, |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
8 # or rather the closest approximations to these two frequencies that |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
9 # can be produced in BU mode - see ring.buz example. In 2021 we are |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
10 # looking into the possibility of switching from BU mode to PWT mode; |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
11 # the present melody file is a test of how the closest PWT counterpart |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
12 # to 800/900 Hz would sound. |
83
b064c2ce43d2
ringtools/examples: a couple of buzzer tone examples
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
854
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
14 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
15 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
16 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
17 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
18 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
19 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
20 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
21 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
22 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
23 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
24 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
25 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
26 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
27 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
28 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
29 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
30 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
31 a5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
32 g5 64 12 |
74331b35b1da
ringtools/examples/ring.pwt: PWT equivalent of ring.buz
Mychaela Falconia <falcon@freecalypso.org>
parents:
83
diff
changeset
|
33 a5 64 12 |