NRT driver and SPAT
Hi!
Does anyone know if SPAT will work with the NRT driver?
(I'm running several hundred sfplays into spat and it chokes up quite fast, even on a n M1 Mac Studio)
I can't really find any documentation on the NonRealTime driver that isnät pretty old, so I thought I'd ask here...
Thanks!
Girilal
NRT should work with any audio objects involved and running the program slower will for sure fix the disk access error.
otoh i can hardly believe that a a few hundred audio tracks will already fail?
Thanks, Roman!
I was running Spat with 500 sfplay objects attached and that is already 30% of DSP (with vector size and buffers at maximum and nothing even running. And it seems that 30-50 objects are what Spat can handle before it starts peaking at 100% and going all wonky. And the sounds are all mono, 16bit, in the range of 1-3MB. I have to say I was very surprised, too. I had hope for much better performance on a shiny new Mac Studio.
oh, you hit the CPU limit, i see. somehow i thought we are talking about disk issues.
now but when you actually only play 3 mb files - and not whole tracks - have you tried playing them from buffers instead of ssd? with 32+ gb RAM that should be enough for what you are talking about.
but go on use NRT, sooner or later you need that anyway. if you need data rate, too, make sure to turn on interrupt, or the scheduler is gone in NRT. :)
Thanks Roman! Can't say how much I appreciate your input!
I'm running the patch from a java script that a programmer helped me put together. He'd have to go back re-jingle that top use buffers. I have thought about it since, as you say, the files are so small... I'll see if I can trouble him some more - that's the drawback of being in the hands of kind programmers:-)
And thanks for the pointer - I absolutely need the scheduler to work correctly, because of the java script. BUT fiddling around yesterday morning, I noticed the Mac Studio wouldn't let me select the audio interrupt, when overdrive is selected. My Intel Mac Book is fine with that. Why would that be?
Also, what is "Passive mode" which appears when NRT is selected? I can't find ANY documentation of how to use NRT, it seems it has to be passed on by hand, as you are doing:-)
Actually found some info on "Passive Mode" now! So, it seems passive needs to be "off" for shceduler to work. Still can't figure out why the Mac Studio won't allow to select Interrupt, though...
different audio interface and mb releated to that?
yes, NRT is a secret weapon. wait until you find out that the settings of the last chosen driver are not remembered when you switch between them. you have to code that all by hand.
Weirdly, but thankfully, today the Mac Studio let me select Interrupt..
And everything worked exactly as I had hoped!
Thank you very much, Roman!
Sometimes just a little bit of info can carry the day/project:-)
And yes, secret weapon indeed!! :-)
A follow-up question about NRT: since it nonreatime, do the 2 vector size setting make any difference to the final result? Other than presumably slowing down NRT even more?
Hi,
(sorry, I notice this topic a bit late. for questions about spat, you'd better post here : https://discussion.forum.ircam.fr/c/spat/27 It will catch my attention faster)
spat5.sfplay~ and spat5.sfrecord~ are currently NOT compatible with non-realtime driver.
They have been especially designed/optimized for realtime use.
Sorry for the inconvenience. I will add a warning in the documentation; and I'll see if I can add an option to make them compatible with non-realtime (for future releases).
(Most) other spat objects should work fine with non-realtime driver.
>> Other than presumably slowing down NRT even more?
i dont think so. however, if you need a certain vectorsize for the scheduler to run stable then dont change this. it will run in NRT like it does in realtime...
Thanks, guys! I can run with this unformation!!
All the best, G