v0.103.1: holding the vocals slider's mic or note changes only the deck's whole-song waveform at the bottom, not the zoomed one in the middle
This commit is contained in:
@@ -63,7 +63,23 @@ def test_the_waveforms_show_the_held_stem(shelf):
|
||||
assert a.shown_peaks is full
|
||||
assert a.deck.vocal_mix == 0 # what plays is untouched
|
||||
shelf.overviews["A"].grab() # paints with the stem's peaks
|
||||
|
||||
|
||||
def test_the_zoomed_lanes_never_preview(shelf, monkeypatch):
|
||||
from lintunes.gui import dj_shelf
|
||||
a, _ = shelf.views
|
||||
_loaded(shelf, a, shelf.tracks[0], _clicks(124, 0.1, 5), 124.0, 0.1)
|
||||
n = a.deck.source.frames
|
||||
shelf._apply_stems("/x.mp3", (np.zeros((n, 2), np.int16),
|
||||
np.zeros((n, 2), np.int16), "htdemucs"))
|
||||
shelf.set_preview(a, "vocals")
|
||||
drawn = []
|
||||
real = dj_shelf._pixel_max
|
||||
monkeypatch.setattr(dj_shelf, "_pixel_max",
|
||||
lambda peaks, *rest, **k: drawn.append(peaks) or real(peaks, *rest, **k))
|
||||
shelf.lanes.grab()
|
||||
assert any(d is a.peaks for d in drawn)
|
||||
assert not any(d is a.stem_peaks["vocals"] for d in drawn)
|
||||
|
||||
|
||||
def test_no_split_yet_shows_the_whole_song(shelf):
|
||||
|
||||
Reference in New Issue
Block a user