Skip to content

Commit

Permalink
Writes tempo without blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagnin committed Oct 31, 2021
1 parent 3f0c416 commit ea8d915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/taptempo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ subroutine measure_tempo
integer :: i
real(wp), dimension(s) :: t ! Time FIFO stack
integer :: oldest
character(len=27) :: fmt
character(len=28) :: fmt

! Format used for printing the tempo:
write(fmt, '(A, I1, A)') '("Tempo: ", f10.', p, ', " BPM")'
write(fmt, '(A, I1, A)') '("Tempo: ", f10.', p, ', " BPM ")'
! Stack initialization:
t = 0

Expand Down Expand Up @@ -126,7 +126,7 @@ subroutine measure_tempo
! Oldest time in the stack:
oldest = min(i, s)
! Computes and prints the beats per minute:
print fmt, 60 / ((t(1) - t(oldest)) / (oldest - 1))
write(*, fmt, advance="no") 60 / ((t(1) - t(oldest)) / (oldest - 1))
else
print '(A)', "Time reset"
i = 1
Expand Down

0 comments on commit ea8d915

Please sign in to comment.