From ad49e3c7e5cbba3413c0742bcff112e3766b7521 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Wed, 28 Apr 2021 18:01:56 +0100 Subject: [PATCH] now without error... --- .../HelpSource/Classes/FluidBufNMFCross.schelp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/release-packaging/HelpSource/Classes/FluidBufNMFCross.schelp b/release-packaging/HelpSource/Classes/FluidBufNMFCross.schelp index c4cb526..acc8a06 100644 --- a/release-packaging/HelpSource/Classes/FluidBufNMFCross.schelp +++ b/release-packaging/HelpSource/Classes/FluidBufNMFCross.schelp @@ -67,7 +67,7 @@ EXAMPLES:: code:: -~path = File.realpath(FluidBufNMF.class.filenameSymbol).dirname.withTrailingSlash +/+ "../AudioFiles/" +~path = File.realpath(FluidBufNMFCross.class.filenameSymbol).dirname.withTrailingSlash +/+ "../AudioFiles/" b = Buffer.read(s,~path+/+"Nicol-LoopE-M.wav") t = Buffer.read(s,~path+/+"Tremblay-SA-UprightPianoPedalWide.wav") o = Buffer.new @@ -80,9 +80,15 @@ o.play ~polyphony = 3; //Avoid overlapping more than this number of source components at the same time ~continuity = 20; //Encourage the reconstruction to use this many temporally consecutive frames from the source -{FreeSelfWhenDone.kr(FluidBufNMFCross.kr(t,b,o,timeSparsity: ~sparsity, polyphony: ~polyphony, continuity: ~continuity, windowSize: 2048).poll)}.play //Using the UGen to run the process can be useful to monitor its progress -o.query +( +Routine{ + ~cross = FluidBufNMFCross.process(s,t,b,o,timeSparsity: ~sparsity, polyphony: ~polyphony, continuity: ~continuity, windowSize: 2048); + defer{{FreeSelfWhenDone.kr(~cross.kr).poll}.play;}; + ~cross.wait; + \Done.postln; +}.play; +) o.play ::