sinusoids~ with loris and sdif
Hi. I'm digging deeper into using sdif in Max. I've used the loris library to analyze some sounds and I'm trying to resynthesize them using the CNMAT SDIF-tuples->threefates->sinusoids~ setup. I've read through most of the documentation that I can find but I'm not entirely understanding how to configure these objects to work with the loris RBEP frame/matrix format.
So far, I understand that sinusoids should be in "bandwidth enhanced mode" to make use of the noise descriptor but I'm not understanding how to pass the information correctly from SDIF-tuples to threefates. I either get weird noises or threefates complaining about improper list size.
Thanks for any info!
-Nick
You can give threefates a second argument that tells it the number of parameters per partial. The first argument is the max number of partials it will handle. So, something like [threefates 1024 3] should work with RBEP frames.
Thanks! This does output sound but when I try to use a slider with "tuples time $1 1 2 3 4' -> sdif-tuples -> threefates -> sinusoids~, the output is clicky. I'm wondering if this is because of how threefates calculates the birth/death cycle of partials and the extra arguments. I looked at the source code a bit but I need to spend a little more time on it. I could be misunderstanding the format of the loris sdif and maybe its just not compatible with the time paramter with sdif-tuples.
Very few people have used loris and sinusoids this way. I haven't had clicking problems with non-bwe sinusoids, but I'm really not sure of the state of this workflow.
Adrian Freed, at CNMAT, might know: http://cnmat.berkeley.edu/people/adrian_freed
I played around with this some more and it seems like the grainy issues I was having may have just been from using a short sample. Longer sounds seem to work great. I think I need to tune the params of the loris analysis since the output from Spear sounds much better but I like doing batch SDIF conversions from the command line. Anyway thanks for your help.
Its unfortunate that the BWE sinusoids hasn't gotten more love. Its a awesome idea and if kyma etc are any examples it seems like it can yield amazing results.
Here is the patch I've been using for anyone interested.
Hi Nick,
Did you have any luck using RBEP files exported from SPEAR? I looked at the output and it I can't seem to find the amplitude or noisiness. Below are a few rows of a frame. The first number is obviously the index, and the 2nd the frequency. The 6th could be the amplitude but it doesn't seems to work. Any ideas?
71. 647.384338 0. 1.489879 0. 0.
232. 173.782181 0. -0.407919 0. 0.001212
64. 1447.619629 0. -1.522029 0. 0.001872
12. 9362.25293 0. 1.745024 0. 0.002032
Hi Rob. Sorry for the away late reply. I've had some good luck with RBEP files going into Max/MSP and would be happy to send some patches over. Big fan of your work btw!
Hey! I'd totally forgotten about this but now that you've reminded me I'll have another stab. Those patches would be awesome if you don't mind.
And I'm glad you like the music! Thankssss. New album out in Jan 2020.
Amazing! Thanks!