History

python/demos/demo_tapthebeat.py: prefix unused arguments with _

Paul Brossier committed 9 years ago

Commit c4fc0f21 parent 4d1bf0e1 file · +1 −1Browse files

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

Unified · Split

python/demos/demo_tapthebeat.py+1−1
@@ -44,7 +44,7 @@ a_tempo = aubio.tempo("default", win_s, hop_s, samplerate) · 43 unmodified lines
44click = 0.7 * np.sin(2. * np.pi * np.arange(hop_s) / hop_s * samplerate / 3000.)44click = 0.7 * np.sin(2. * np.pi * np.arange(hop_s) / hop_s * samplerate / 3000.)
45 45
46# pyaudio callback46# pyaudio callback
47def pyaudio_callback(in_data, frame_count, time_info, status):47def pyaudio_callback(_in_data, _frame_count, _time_info, _status):
48 samples, read = a_source()48 samples, read = a_source()
49 is_beat = a_tempo(samples)49 is_beat = a_tempo(samples)
50 if is_beat:50 if is_beat:

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