Multiprocessing audio editor software9/12/2023 ![]() ![]() See: ĮDIT: Crap, it still glitches when I'm trying to record, but playback is smooth. You might want to update your Vdist runtimes. While you’re at it, you might as well check you are using the latest versions. Do this using manufacturer's websites rather than Windows updates. Have you tried uninstalling and reinstalling your hardware drivers (Not just for your Audio interface). ![]() In preferences | Audio | Configuration File try adjusting the following: EnableSetThreadIdealProcessor = False MixThreadCount = You might like to exit Cakewalk by Bandlab, go to the following folder and make a copy of the AUD.INI file before doing this: %appdata%\Cakewalk\Cakewalk Core Try Start + run "control powercfg.cpl,1" (without quotes) and set CPU Min and Max to 100% (Under Processor power management) Try disabling C-states and Intel Speedstep (This is done in the PC's BIOS and the method varies between PCs) I've checked the ASIO settings, double checked that my Interface settings are at 44.1 as well as Cakewalk, I've re-installed Cakewalk as well as Focusrite Control. seems like every time I record I need to re-adjust the buffer settings that worked in my last session. I'm also struggling to keep the latency at bay when recording. If I turn Multiprocessing Engine "OFF" it seems to fix the stuttering but I'm still only getting 4 bars of activity on the right side of the Performance Module and I'm assuming once I get a lot more tracks into the mix with plugins I will need to engage Multiprocessing again. Zero to no activity on the left side of the module like I'm used to seeing on my last PC. Also, the Performance Module just shows the last 4 bars (all the way to the right) bouncing up and down and peaking every time it stutters. usually for a minute or so, no matter where I start from. With 4 or more tracks playing back, I get pretty severe stuttering during playback. My audio interface is a Focusrite Scarlett 18i20 2nd Gen, it worked just fine with my last PC. Ideally, I'd hope to have no input overflows anymore, but at this point I'm completely stumped as to how to prevent them.I have a brand new build, i7-12700K with 64GB of ram. While p1.is_alive() or p2.is_alive() or p3.is_alive(): Print('Something went wrong with one of the processes, gotta exit :/') If not p1.is_alive() or not p2.is_alive() or not p3.is_alive(): P3 = Process(target = recorder, args = (start, 4, FILE_NAME)) P2 = Process(target = recorder, args = (start, 3, FILE_NAME)) P1 = Process(target = recorder, args = (start, 2, FILE_NAME)) Print('Microphone', mic_num, 'recording') Stream = sd.InputStream(samplerate = RATE, blocksize = CHUNK, device = mic_num, channels = CHANNELS, callback = mic_processor) Print(status) #Only status ever thrown is input overflow CHUNK = 48000*2 #Chunk sizes varied from 5 up to 96000, both didn't workįile = sf.SoundFile(f'./recordings/.wav', mode = 'w', samplerate = RATE, channels = CHANNELS)ĭef mic_processor(data, frames, time, status): Same with writing the data to memory or directly to disk. I've also tried running the stream with or without callbacks, but that made no difference. In order to start all three recordings at the same time I've been using multiprocessing, with each process containing its own input stream, but even running all 3 streams in one process caused the overflow(s). Initially I was using PyAudio, but the current version of my code runs sounddevice. So far, I have attempted to fix the problem by changing the chunk size, even setting it to 2x my rate at one point. However, I keep on getting a Input Overflow error thrown by PulseAudio, which makes the data unusable as the frames in that chunk captured by the microphone are discarded. This will then allow me to calculate the TDOA of sound between the microphones, so that I can pinpoint the source location. I have to record 3 microphones simultaneously with as little delay between them as possible. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |