< Back to IRCAM Forum

Bformat stream from spat.spat~

I’ve been using spat.spat~ and spat.oper~ to pan in bformat. I would like to be able to record the bformat stream simlutaneous with the decoded audio stream. I see that spat.spat~ when @panning bformat will not initialize with @decoding null or no decoding attribute (default = null).

I could use spat.encoder~ with spat.viewer~ connected to spat.oper~ and record the bformat stream that it creates, but I believe that I will be missing the room parameters, delays, etc. that are set in spat.oper~. Is this correct, or are they applied in the decoding phase of spat.spat~?

Is there a way to extract the bformat audio stream directly from spat.spat~?

Thanks.

Hi,

Yes it is possible to record simultaneously the encoded and decoded streams from spat.spat~.
Attached a patch that shows how to set the spat~ parameters to do so.

Indeed, using a simple encoder (spat.pan~) and decoder would not be the same, as you would be missing the whole room processing that is inside spat.spat~.

Cheers,
T.

bformat.maxpat (5.63 KB)

Excellent! Thanks for the help.
S.