mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
fixed crude implementation of speaker.retune
Former-commit-id: eb16dd94b10cc75150508b575c5c0210d18a46cd Former-commit-id: 84585ddf7e9e839cdfebed086bc671f6b956a462
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
The Speaker API provides means to control computer's built-in beeper speaker.
|
||||
|
||||
\section{Functions}
|
||||
|
||||
\begin{tabularx}{\textwidth}{l l X}
|
||||
\textbf{\large Function} & \textbf{\large Return} & \textbf{\large Description}
|
||||
\\ \\
|
||||
@@ -8,4 +10,18 @@ The Speaker API provides means to control computer's built-in beeper speaker.
|
||||
\\ \\
|
||||
speaker.clear() & nil & Clears speaker queue.
|
||||
\\ \\
|
||||
speaker.retune(str or nil) & nil & Retunes speaker to specified tuning (e.g. ``A415'', ``C256'', ``A\#440''). If no argument is given, A440 will be used.
|
||||
\\ \\
|
||||
speaker.resetTune() & nil & Retunes speaker to A440.
|
||||
\\ \\
|
||||
speaker.toFreq(string) & int & Translates input note name to matching frequency based on current speaker tunining.
|
||||
\end{tabularx}
|
||||
|
||||
\section{Constants}
|
||||
|
||||
\begin{tabularx}{\textwidth}{l l X}
|
||||
\textbf{\large Name} & \textbf{\large Type} & \textbf{\large Description}
|
||||
\\ \\
|
||||
\endhead
|
||||
speaker.\_\_basefreq\_\_ & number & Frequency of note A-0.
|
||||
\end{tabularx}
|
||||
Reference in New Issue
Block a user