Ver código fonte

beep: add page (#1145)

kalebo 8 anos atrás
pai
commit
6877adf7c5
1 arquivos alterados com 23 adições e 0 exclusões
  1. 23 0
      pages/linux/beep.md

+ 23 - 0
pages/linux/beep.md

@@ -0,0 +1,23 @@
+# Beep
+
+> A utility to beep the pc speaker.
+
+- Play a beep:
+
+`beep`
+
+- Play a beep that repeats:
+
+`beep -r {{repetitions}}`
+
+- Play a beep at a specified frequency (Hz) and duration (milliseconds):
+
+`beep -f {{frequency}} -l {{duration}}`
+
+- Play each new frequency and duration as a distinct beep:
+
+`beep -f {{frequency}} -l {{duration}} -n -f {{frequency} -l {{duration}}`
+
+- Play the C major scale:
+
+`beep -f 262 -n -f 294 -n -f 330 -n -f 349 -n -f 392 -n -f 440 -n -f 494 -n -f 523`