MCPcopy Create free account
hub / github.com/bspaans/python-mingus / find_Note

Function find_Note

mingus/extra/fft.py:153–157  ·  view source on GitHub ↗

Get the frequencies, feed them to find_notes and the return the Note with the highest amplitude.

(data, freq, bits)

Source from the content-addressed store, hash-verified

151
152
153def find_Note(data, freq, bits):
154 """Get the frequencies, feed them to find_notes and the return the Note
155 with the highest amplitude."""
156 data = find_frequencies(data, freq, bits)
157 return sorted(find_notes(data), key=operator.itemgetter(1))[-1][0]
158
159
160def analyze_chunks(data, freq, bits, chunksize=512):

Callers

nothing calls this directly

Calls 2

find_frequenciesFunction · 0.85
find_notesFunction · 0.85

Tested by

no test coverage detected