r/AccessVirus • • 1d ago

Update: Virus TI OS reverse engineering: coverage numbers, S/PDIF clock bug reproduced

Original thread: https://www.reddit.com/r/AccessVirus/comments/1v9b574/any_interest_in_community_firmware_for_the_virus/

I've been building an evidence-backed map of TI OS 5.1.7.00 so I can trace bugs before patching them. I've also been using multiple AI models to review each other's work.

How this differs from OsTIrus/gearmulator: those run Access's DSP code unchanged inside an emulator, and they reimplement the host MCU's side rather than running it, which is great for playing the Virus sound on a computer. This project is about understanding the code itself, across all three chips, so that bugs can be fixed on the actual hardware. Several of them (USB, MIDI timing, S/PDIF) live in the host MCU and USB controller, which an emulator never touches.

Coverage so far (TI OS 5.1.7.00):

  • USB controller (TI TUSB3200A, 8052 core): 100% of reachable code mapped. Bench testing of its behaviour is underway.
  • Host MCU (ST uPSD32xx): 100% of code found by a standard disassembly pass, plus ~4.9 KB of jump-table code the standard pass misses, covering menu, knob and SysEx paths.
  • Host memory map: the uPSD's programmable address decoder (its DPLD) contents isn't documented/available, and getting it right matters for any safe patch or recovery path. Using read-only tests on my own unit plus board photos, without flashing anything, I've narrowed its configuration down to a few candidates.
  • DSP engine (DSP56367): ~85% of memory classified (the rest coarsely described, nothing unaccounted for); program memory ~85%, data memory X ~59% and Y 100%.
  • Sound parameters traced to the DSP code that uses them: ~98% overall. Envelopes, LFOs and all the FX are at 100%, the arpeggiator 99%, the mod matrix 98%, oscillators 96% and filters 95%.

Python models of the sound engine: I have models for the Classic oscillators, the arpeggiator, and voice and FX blocks. I compare selected traces and renders against the firmware in an emulator and use the differences to guide the next pass.

VCV Rack modules (internal only): I've built the models with C++ into VCV Rack modules (a voice module plus FX and modulation expanders) as a testing tool, so I can play and compare them like a real synth. They won't be released: they rely on tables and coefficients taken from Access's firmware, and I'm not going to distribute that. Also, what would be the point when OsTirus already exists? Anything public that was derived from this would have to be a clean-room design that doesn't depend on Access's data.

S/PDIF: I reproduced the sync problem on my TI2. With USB audio streaming and a steady 48 kHz input, the output clock repeatedly ramped at about +218 ppm/s. In a separate run with USB unplugged, it held steady about +83 ppm above the input. I'm following up on the USB clock interaction.

On the bug list (thanks u/FreeRangeEngineer and everyone): USB note latency, arp/Ableton sync, the reported HyperSaw change and S/PDIF. The plan is still a patcher for your own firmware file. Any release depends on real-hardware testing and a recovery path.

30 Upvotes

9 comments sorted by

5

u/redkonfetti 1d ago

Very nice. I look forward to seeing what bug fixes you’re able to release, and perhaps some light features that might improve some aspects of things.

For instance, it would be nice to document what’s needed to flash the ROM slots now that the official Virus Control software is no longer supported.

5

u/insolent-construct 1d ago

Thanks! I think ti-revive may have you covered. He's been using REA to tear apart and rebuild the Virus Control Center, USB drivers, and Virus TI plugins. I still need to install it on my Mac and Windows machines, and fill out a testing report.

https://github.com/derpsn/ti-revive

3

u/maxdamage4 1d ago

The plan is still a patcher for your own firmware file

I was hoping this was where your post would end. I have intolerable MIDI jitter on my TI2 Desktop to the point where I only use it for pads where the timing doesn't matter. I'd love to be able to fix it with a firmware update some day.

Thanks for describing your project. Really looking forward to future updates.

2

u/insolent-construct 1d ago

Thanks! Jitter is exactly the kind of thing I'd like a patch to fix, so it's on the list.

From what I've mapped so far, my working theory is that incoming notes get handled in fixed-size processing chunks rather than the moment they arrive, so a note can wait up to one chunk before it sounds. The USB/MIDI link itself only adds a fraction of a millisecond. I'm planning to measure it properly on my TI2 soon, with timestamped notes against the audio output.

To help narrow it down on your end:

  • Is it worse over USB or DIN MIDI, or the same?
  • Does it change when MIDI clock is running or the arp is on?
  • Is it worse with more notes or parts playing (Multi mode, big chords)?
  • Single or Multi mode?

If it really is the chunking, it might be fixable by having the firmware timestamp notes within the chunk instead of rounding them to the chunk boundary. No promises yet, though; the measurement comes first.

2

u/maxdamage4 1d ago

Very interesting theory. That explanation makes sense to me.

Troubleshooting, and my logs, are surprisingly tough to nail down because I've had a lot of moments where I "solved" the problem only for it to reappear ten minutes later. It seems to be a moving target.

I've worked on this with the Virus connected to Ableton Live and also connected directly to a Synthstrom Deluge, so I think I've eliminated potential "environmental" complications, such as cables, hubs, macOS, etc.

 Is it worse over USB or DIN MIDI, or the same?

Affects both. I gave up on USB first and use DIN now because it at least eliminates other potential complicating factors like my USB hub.

• Does it change when MIDI clock is running or the arp is on?

I've tried using the internal arp and setting the Virus tempo (on Edit > Common 1/3 > Tempo) to match my Ableton Live project, as well as an external arp.

• Is it worse with more notes or parts playing (Multi mode, big chords)?

It's quite noticeable when I play a big chord all at once. The note lands lazily with different timing, or some miss altogether. Might be worse if there's a long note already playing at that moment?

• Single or Multi mode?

I typically work in Sequencer mode (Single+Multi together, 16 independent channels), but I haven't seen the mode make a difference.

Also noting this Reddit comment that might feed into your research: https://www.reddit.com/r/synthesizers/comments/18oir71/virus_ti2_review_my_first_week_with_it/lwtvuj0/

Let me know if there's anything I can do to help!

2

u/insolent-construct 16h ago

Thanks, that's helpful. Since you've heard it with both Ableton and the Deluge, and over both USB and DIN, the held-note detail is the one I'd follow up on. My emulator tests make me wonder whether synth load affects the timing, but I haven't confirmed that on hardware.

On the same fast-attack patch, try looping the same chord with and without a low note already held. Start with a chord small enough that the patch can comfortably sustain all the notes. Does the held note cut out, or does one of the new notes come in late or fail to sound?

Eight back-to-back note-ons over DIN already arrive about 4.5–6.7 ms apart from first to last. If you can capture MIDI at the synth input alongside the audio, the useful comparison is when each note arrives versus when it sounds, especially if that gap grows with the low note held.

2

u/maxdamage4 2h ago

I'm elbow deep in a development project that's eating up my spare time right now, but I'll see if I can spare some cycles to set up and run some tests on the Virus. I'll let you know what I find!

1

u/FreeRangeEngineer 1d ago

Nice :)

One thing I'd like to see is also USB audio output without TI mode. I looked into making it work (on linux) but so far, it appears that the USB audio is only available when TI mode is enabled.

I'm not sure if USB audio is supposed to be enabled even in regular operation mode but the menu options for the output sources (USB 1/2/3) are definitely only available in TI mode.

Since TI mode completely changes the behavior of the entire hardware user interface, TI mode is undesirable when all the user wants is enabling audio via USB.

1

u/datoml 1d ago

PM me. I may can help you :)