Skip to content

Commit

Permalink
order bounces in clusterizer app
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinedaurat committed Dec 16, 2023
1 parent 64a16bf commit 6226ffd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mimikit/views/clusterizer_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from ..config import Config
from ..extract.clusters import *
# from ..extract.label_filter import LabelFilter
from ..features.dataset import DatasetConfig
from ..features.functionals import *
from .clusters import *
Expand Down Expand Up @@ -50,6 +51,7 @@ def can_be_added(self, preceding_transforms: List[Type]):
"chroma": Meta(Chroma, chroma_view, [MagSpec], True),
"auto-convolve": Meta(AutoConvolve, autoconvolve_view, [Any], False),
"f0 filter": Meta(F0Filter, f0_filter_view, [MagSpec], False),
# "top k": Meta(TopKFilter, topk_filter_view, [MagSpec], False),
"nearest neighbor filter": Meta(NearestNeighborFilter, nearest_neighbor_filter_view, [Any]),
"pca": Meta(PCA, pca_view, [Any]),
"nmf": Meta(NMF, nmf_view, [Any]),
Expand Down Expand Up @@ -306,7 +308,6 @@ def build_new_clustering_view(self):
self.pre_pipeline_widget = self.pre_pipeline.widget
self.clusters = ClusterWidget()
self.clusters_widget = self.clusters.widget

self.save_as = W.HBox(children=(
W.Label(value='Save clustering as: '), W.Text(value="labels")),
layout=dict(margin="auto", width="max-content"))
Expand Down Expand Up @@ -590,8 +591,8 @@ def on_remove(ev):

remove_w.on_click(on_remove)
self.bounced_container.children = (
new_waveform,
*self.bounced_container.children,
new_waveform
)

bounce = W.Button(description="Bounce Selection")
Expand Down

0 comments on commit 6226ffd

Please sign in to comment.