Metronome: Difference between revisions
Fix up some internal links
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Thundergnat (talk | contribs) (Fix up some internal links) |
||
Line 432:
=={{header|Go}}==
As with the [[#
It would be reasonably simple (but covered better in other tasks)
to change bpm and bpb into command line arguments,
Line 1,324:
=={{header|Raku}}==
(formerly Perl 6)
This code only uses textual output, but any noise-generating commands may be substituted; as long as they are executed synchronously, and do not run longer than the specified duration, the timing loop will compensate, since the sequence operator is determining a list of absolute times for each <tt>sleep</tt> to target.
<lang perl6>sub MAIN ($beats-per-minute = 72, $beats-per-bar = 4) {
Line 1,351 ⟶ 1,352:
=={{header|REXX}}==
These REXX program examples are modeled after the
===textual visual, no sound===
<lang rexx>/*REXX program simulates a visual (textual) metronome (with no sound). */
|