beeper update: proper equation. Need more work for low freqs

Former-commit-id: a98210ef06bea8f3a85af134fac8848225728c65
Former-commit-id: 901f266d529af99133f0605d2ce76c8cb52c7d17
This commit is contained in:
Song Minjae
2016-09-27 00:51:14 +09:00
parent bd4c95b321
commit 8c014cf4c8
9 changed files with 63 additions and 29 deletions

View File

@@ -8,6 +8,8 @@ ROMBASIC adds global functions and constants for operability.
\endhead
\unemph{\_G.}runScript(\textbf{fun}: str, \textbf{env}: str) & nil & Runs Lua script \textbf{fun} with the environment tag \textbf{env}.
\\ \\
\unemph{\_G.}bell(\textbf{pattern}: str) & nil & Strike bell (or beeper) with pattern. Accepted pattern letters: . - (space) Aliased to \unemph{\_G.}beep.
\\ \\
computer.totalMemory() & int & Returns the total size of the memory installed in the computer, in bytes.
\\ \\
computer.freeMemory() & int & Returns the amount of free memory on the computer.
@@ -25,7 +27,7 @@ ROMBASIC adds global functions and constants for operability.
\\ \\
\unemph{\_G.}CHECKED & string & Checked checkbox. Code 0x9D
\\ \\
\unemph{\_G.}MONEYSYM & string & Currency symbol used in the world. Code 0x9E
\unemph{\_G.}MONEY & string & Currency symbol used in the world. Code 0x9E
\\ \\
\unemph{\_G.}MIDDOT & string & Middle dot used in typography. Code 0xFA (note: 0xF9 is a Dot Product used in Mathematics)
\\ \\
@@ -48,4 +50,6 @@ ROMBASIC adds global functions and constants for operability.
computer.bootloader & string & Path to the boot file. Should point to the EFI (/boot/efi).
\\ \\
computer.OEM & string & Manufacturer of the computer. If you \emph{are} a manufacturer, you may want to fill in this variable with your own company's name.
\\ \\
computer.beep(\textbf{len}, \textbf{freq}) & nil & Generates square wave. \textbf{len} is integer, in milliseconds, \textbf{freq} is number, in Hertz.
\end{tabularx}