← Back to the user guide

DirectOutput (DOF) setup

Use your cabinet’s RGB matrices and strips for spectrum, track information and playback animations. In RetroPinJuke 1.0.251, the built-in visualisations table is selected automatically on new profiles.

Connect DOF

  1. Confirm your cabinet works with your existing 64-bit DirectOutput installation and its dependencies, including .NET Framework 4.8. Close any other app that is currently using the controller, such as VPX or DOFLinx.
  2. Open Setup → DOF. Choose your x64 DirectOutput.dll and the DOF global configuration XML that points to your cabinet XML.
  3. Tick Enable DOF lighting and click Save profile. Look for Connected and Active DOF table: Built-in visualisations table.

For a new RetroPinJuke profile, the built-in table is automatic. You can leave Custom DOF configuration (optional) closed.

Test your LEDs

Under Virtual LED preview, pick a discovered device and start with the RGB gradient to check colour and orientation. Click Test selected DOF device (10 seconds) to send the preview to that device. The test clears when it ends. Try a moving pattern next to check the direction.

Connected confirms that DOF started. Use the device test to verify that your actual LEDs respond.

Set up playback visualisations

  1. Under Playback visualisations, turn on Enable DOF playback visualisations and add each RGB device you want to use.
  2. Pick a mode for each device. Try Spectrum analyser on a matrix, Linear audio level on a strip or Scrolling track information on a matrix at least 5 pixels wide and 7 pixels tall. Choose a brightness and frame rate for each.
  3. For an introductory animation, open Playback cues on the device assignment. For example, set Loading to Random pixel fades for five seconds and leave spectrum as the regular mode. The cue hands over once playback starts and the five seconds have elapsed. Audio plays as soon as it is ready.
  4. Click Save & launch jukebox and start playback. Pause or stop to check that the visualisations clear.

Troubleshooting

DOF cannot connect
Check the DLL and global XML paths, confirm that the global XML resolves the right cabinet XML and release the controller from other apps. DOF stays disabled in safe mode.
A device is missing or does not respond
Check Setup → Diagnostics for device discovery, dimensions and controller details. Test the device with a preview pattern and confirm its LED range in the cabinet XML.
A matrix shows a solid colour or a visualisation stays dark
Check Active DOF table. A custom table may own that matrix. In Custom DOF configuration (optional), select Use built-in table and save, or move the custom effects to a different device. If a preview pattern works but spectrum or level stays dark, check whether playback audio analysis is available in Diagnostics.
Output looks slower than expected
Compare target and submitted FPS in DOF frame output diagnostics. Submitted FPS counts frames handed to DOF. The controller and LEDs can refresh at a different rate.

Advanced: custom table XML and event effects

DOF expects a table definition when it starts. RetroPinJuke ships an empty one that disables table effects, leaving your devices available for live frames. Your global and cabinet XML still define the controllers, devices, LED ranges and pixel layout. For RPJ visualisations and playback cues, the built-in definition is sufficient.

Open Custom DOF configuration (optional) only if you want DOF itself to run event effects. For example, a separate RGB lamp could turn purple on pause, or an unassigned strip could flash on a track change. Choose your custom table XML and save the profile. The XML links a virtual lamp number to an effect and defines the target device, colours and timing. With the default mappings, L2 means Loading, L3 means Playing, L4 means Paused and L6 marks a track change. Test saved lighting pulses L7 with a custom table active.

Existing RetroPinJuke profiles keep their saved table path. To switch such a profile back to the automatic table, select Use built-in table in the custom settings, then click Save profile. The button appears when a custom path is present.

An EffectName such as RPJ Playing refers to a named definition in that file. The effect class controls what happens. For instance, DOF’s RGBAMatrixColorEffect fills a rectangle, and setting both dimensions to 100% with opaque green fills the entire matrix. Other built-in DOF classes can display bitmap images or animations or control timing and fades.

Keep custom DOF effects on separate devices from RPJ visualisations. RPJ reserves each visualisation device for its own frames. To show an animation and then spectrum on the same matrix, use an RPJ playback cue and a regular visualisation on the same assignment.