-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to reduce latency? #77
Comments
I think it was -ab:BUFSIZE:NUMBUFS. |
https://www.vogons.org/search.php?keywords=Buffer&t=99447 I think this link will work. It searches the vogons thread for the word buffer. How to use it and how it affects latency is mentions among the results The thread in question : |
Currently the latency is to high to use it as an instrument (MIDI keyboard connected), even if I start it with -ab 1:1. |
Perhaps you can reach out to he demoed his work on an AU version a while back. |
@AndyGraewe I think that at least on windows there is a minimum latency you can remove even by changing the buffer size, due to how windows audio driver work. The solution would be to use ASIO drivers instead, which could be easy enough to implement. I could try it if people are interested. |
I would gladly help with testing, but my system is Windows if it helps with an Asio interface and a midi keyboard. |
@markanini started working on it on this branch: https://github.com/giulioz/Nuked-SC55/tree/asio |
latency deepnds on several factors: Latest AKM has a bit less latency vs. Latest Cirrus Logic DA, latest DA with Digital filters "3rd Gen" a 512 buffer = 256 buffer, also some Pro interfaces, have 4-stage Analog amplifier, #2. DDS clocks with 1ns "1000ps! of jitter cannot be used over 48Khz, better a Real XO x512. Some interfaces have JetPLL, that sounds better than most DDS. #3. USB is Not good for low latency audio, Basically: *same / similar latency in miliseconds AD-DA, #4. CPU preemp-RT kernel was added to Linux Generic Kernel a few days ago. asuming CPU has a proper Kernel, also code needs to run bare metal as possible, other option is moving the software to other technology FPGA can be designed to run more parallel, for example: Direct Pi4/Pi5 Unknown. MacMini 2014 | 2.8GHz | i5 | 4th Gen intel mobile cpu 4308u |
@juanpc2018 I think what the user is asking here is how to reduce the buffer size. The latency in the emulator is very high (almost half a second) because it uses a giant audio buffer size by default and it uses high-latency drivers (SDL) by default. The solution here is very simple, and it's 1) reducing the buffer size 2) make the code use a lower-level audio API like CoreAudio or ASIO. I've done a CoreAudio version on my own and I can reach latencies as low as 5ms, which is very good for live playing purposes. You also have to consider that the original hardware had a noticeable latency anyway due to the speed of cpu processing and the midi bus, which is actually accurately emulated here as well. So even with the most perfect audio processing you will still have that latency which is unavoidable. I'm sorry to call you out on this and I really don't want to sound rude, but I feel like some stuff you stated in your previous comment could be a bit inaccurate and misleading. A good part of the current music industry makes music with plugins running on USB audio and high-level operating systems like Windows and MacOS, while still achieving state-of-the-art latency and sound quality. You stated several reasons in your comment that would actually not solve the core problem I stated previously. |
Discussion Tab is Not active. i have Protools HDX "Near 0-latency DSP" i also have a Real JV-880 same: |
Is this version availible somewere? I would love to test it. |
There was a popular Synth called AXS for DOS, then was released free for Windows, 1, 2, 3,4,5,6,7,8,9 Windows MIDI is very unstable brand to brand, want to try AXS for DOS version, |
I found out that my latency issues with M1 Mac had to do with how I had built/compiled. Yesterday I tried to re-build (like the way I did in May), but it was not possible due to some rtmidi issue. I was finally able to build the project using XCode this time and this fork: I also welcome this forks possibility of sorting the roms into different folders for better organization. |
Just a +1. Playing SC55 as a live MIDI instrument with low latency on Windows would be something I'd enjoy trying. |
This fork https://github.com/jcmoyer/Nuked-SC55 with XCode build on Mac is now totaly MIDI playable. It is not a vst, but I run it standalone and linked it as "external" instrument in Ableton Live. |
Now we just need ASIO for Windows. |
Plugin version for Windows and Mac would be awesome. |
I had been working on that for a while |
I know that and I very much appreciate it. I had nor discovered that there is alread a /tree/audiounit in your fork yet. |
No, I cannot build it. I get file not found for this import: in sc55AU2ExtensionDSPKernel.hpp |
how do i reduce latency?
i see that there is launch switches for audio buffering and audio output but i dont know how to use them
The text was updated successfully, but these errors were encountered: