From 85e9436d827842c5d713e165389776222594aef0 Mon Sep 17 00:00:00 2001 From: tremblap Date: Thu, 16 Jun 2022 10:18:47 +0100 Subject: [PATCH] knearest interface change in 10a --- test/10a-weighted-MFCCs-comparison.scd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/10a-weighted-MFCCs-comparison.scd b/test/10a-weighted-MFCCs-comparison.scd index 38088b7..db3f0a6 100644 --- a/test/10a-weighted-MFCCs-comparison.scd +++ b/test/10a-weighted-MFCCs-comparison.scd @@ -166,10 +166,10 @@ FluidBufCompose.process(s,~loader.buffer,a,(b-a),numChans: 1, destination: ~targ ~flatbuf[1].getn(0,182,{|x|~curatedWBuf = Buffer.loadCollection(s, x[[0,1,4,6,7,8,11,13].collect{|x|var y=x*13+1;(y..(y+11))}.flat].postln)}) //find its nearest neighbours -~tree.kNearest(~flatbuf[0],{|x| ~friends = x.postln;}) -~treeW.kNearest(~flatbuf[1],{|x| ~friendsW = x.postln;}) -~treeC.kNearest(~curatedBuf,{|x| ~friendsC = x.postln;}) -~treeCW.kNearest(~curatedWBuf,{|x| ~friendsCW = x.postln;}) +~tree.kNearest(~flatbuf[0],action:{|x| ~friends = x.postln;}) +~treeW.kNearest(~flatbuf[1],action:{|x| ~friendsW = x.postln;}) +~treeC.kNearest(~curatedBuf,action:{|x| ~friendsC = x.postln;}) +~treeCW.kNearest(~curatedWBuf,action:{|x| ~friendsCW = x.postln;}) // play them in a row