FreeCalypso > hg > freecalypso-hwlab
annotate audio-tones/keybeep @ 171:88b8257d353b
eeproms: rm all configs that went to fc-usbser-tools
These configs need to be actively maintained, hence having more than one
official home location for them is a bad idea.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Sep 2023 05:21:56 +0000 |
parents | 9336a48746d9 |
children |
rev | line source |
---|---|
164
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #!/bin/sh |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # generate a plain keybeep, amplitude set on the command line |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 if [ $# != 1 ] |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 then |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 echo "usage: $0 ampl" 1>&2 |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 exit 1 |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 fi |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
9336a48746d9
audio-tones: experimental tools and findings
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 exec fc-shell "at@tone=0,120,697,$1,0,120,697,$1,0,120,0,0,120,120,120,1" |