History

python/demos/demo_source_simple.py: fix indentation

Paul Brossier committed 10 years ago

Commit 30e080c1 parent 31c60101 file · +3 −3Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/demos/demo_source_simple.py+3−3
@@ -7,9 +7,9 @@ s = aubio.source(sys.argv[1], samplerate, hop_size) · 6 unmodified lines
7total_frames = 07total_frames = 0
8 8
9while True: # reading loop9while True: # reading loop
10 samples, read = s()10 samples, read = s()
11 total_frames += read11 total_frames += read
12 if read < hop_size: break # end of file reached12 if read < hop_size: break # end of file reached
13 13
14fmt_string = "read {:d} frames at {:d}Hz from {:s}"14fmt_string = "read {:d} frames at {:d}Hz from {:s}"
15print (fmt_string.format(total_frames, s.samplerate, sys.argv[1]))15print (fmt_string.format(total_frames, s.samplerate, sys.argv[1]))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t