Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Metronome/Julia/metronome.julia
Normal file
13
Task/Metronome/Julia/metronome.julia
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function metronome(bpm::Real=72, bpb::Int=4)
|
||||
s = 60.0 / bpm
|
||||
counter = 0
|
||||
while true
|
||||
counter += 1
|
||||
if counter % bpb != 0
|
||||
println("tick")
|
||||
else
|
||||
println("TICK")
|
||||
end
|
||||
sleep(s)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue