Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Mar 29, 2024
1 parent 2dfae80 commit 5022cd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sandbox/tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
if len(np.shape(samples)) > 1 \
else np.asarray(samples)

print(f'samples {len(samples)} {len(samples)/samplerate}s')
print(f'old samples {len(samples)} {len(samples)/samplerate}s')
length = int(np.ceil(samples.size / samplerate) * samplerate)
samples.resize(length)
print(f'samples {len(samples)} {len(samples)/samplerate}s')
print(f'new samples {len(samples)} {len(samples)/samplerate}s')

chunks = tricks.sliding_window_view(samples, samplerate)[::samplerate]
chroma = Chroma(samplerate, feature='hz')
Expand All @@ -40,7 +40,7 @@

# TODO chroma.qdft.latencies in the next release
latency = int(np.max(chroma.qdft.periods[0] - chroma.qdft.offsets))
print(f'latency {latency}')
print(f'max. qdft latency {latency}')

print(f'old shape {chromagram.shape}')
chromagram = chromagram[latency:]
Expand Down

0 comments on commit 5022cd7

Please sign in to comment.