Multiple initialization errors (mubu.knn, mubu.record~, pipo~ yin) in a real-time k-NN patch
Hello everyone,
I’m building a real-time timbre matching (k-NN) patch with MuBu/PiPo and I’m running into several initialization errors that seem interrelated. I’ve tried various combinations of addbuffer , @numbuffers , addtrack , and weights , but the problems persist.
MuBu version: 1.11.0
Max version: 9.1.2
Errors I’m getting:
mubu.knn: no buffers included
Even after sendingweights 1 1 1 1 1 1 1 1 1 1 1 1 1beforerefer,exclude, andupdate,getincludedstill returns0. The container has buffers and themfcctrack was created withaddtrack mfcc @matrixcols 13.mubu.record~: cannot connect to track audio(or[audio])
I created the track withaddtrack audio @matrixcols 1and usemubu.record~ corpus_ex1 audio. I’ve tried both[audio]andaudio(without brackets), but the error persists.mubu: invalid buffer index -480 in buffer message
Even withmubu corpus_ex1 @numbuffers 1andbufferindex 0, the error keeps appearing when I try to record or play back.pipo~: error in PiPo chain: input stream domain is zero (yin needs sliced audio frames as input)
The chain ispipo~ slice:yin @slice.size 1761 @slice.hop 256 @yin.minfreq 50. Isslice.size 1761compatible withhop 256, or does thehophave to be 100 foryinto work?
What I’ve already tried:
Creating the container with
@numbuffers 1.Sending
addbuffer,addtrack audio,addtrack mfcc.Setting
weightsbeforeinclude/exclude.Using a
delaybetween container creation andrefer.Increasing
slice.hopto 256 to reduce CPU load.
Questions:
What is the recommended exact initialization order for a patch that records the corpus and does k-NN in the same container?
Is the
no buffers includederror a known bug inmubu.knn, or is there a step I’m missing?Does
mubu.record~expect the track name as a positional argument (audio) or with brackets ([audio])? What is the correct convention?Does
pipo.yinrequire a specificslice.hopto work?
Any help would be greatly appreciated. I can provide a minimal patch that reproduces the problem if needed.
Best,
Diogo