Metronome: Difference between revisions

Fix up some internal links
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
(Fix up some internal links)
Line 432:
 
=={{header|Go}}==
As with the [[#Perl_6Raku|PerlRaku example]], just simple text output.
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 Perl 6Raku example.
===textual visual, no sound===
<lang rexx>/*REXX program simulates a visual (textual) metronome (with no sound). */
10,333

edits