CAVEREC v0.8.0 Cave Recorder (caverec) User Manual
Shortcuts Glossary & Index Download PDF
Part I · Chapter 2

Hardware Setup, Audio Connections & First Session

Connecting multi-channel USB and ADAT interfaces, automatic studio interface selection, macOS Direct Download vs. Mac App Store App Sandbox setup (native Open/Save panels, persistent folder bookmarks, native sandbox Google Drive Cloud Sync, and isolated out-of-process Audio Units), locking digital clocks, calibrating roundtrip loopback latency, persistent Hardware Direct Monitoring preferences, connecting 50 FPS / 25 FPS studio cameras with the 3-Second Optical & Audio Flash Latency Calibration modal, connecting and managing full OSC Stageboxes (X-Air UDP 10024 including XR18V2 and X32 UDP 10023 across the 4-tab STAGEBOX workspace and USB-to-Aux-to-Main L/R output routing), configuring bidirectional MIDI Clock, Looper Sync, MIDI Learn footswitches, and 1-click Hardware MIDI Latency Ping calibration, setting up a Dual-Screen Studio Pad Surface (CONTROLLER pill), Cave Recorder Remote desktop host version checks, installing caverec-cli and Studio Engineering Skills, and creating your first Project and Session.

2.1 Connecting Multi-Channel Audio Interfaces (USB, Thunderbolt & ADAT)#

Cave Recorder supports up to 32 simultaneous mono or stereo-linked input tracks (CH01 through CH32), making it an ideal match for rackmount 18-in / 20-out or 32-channel USB and Thunderbolt studio interfaces paired with 8-channel ADAT optical microphone preamp expanders.

A standard 18-channel rehearsal and tracking rig combines three physical input groups into a single unified audio device:

  1. Inputs 1-8 (Primary Interface Onboard Mic/Line Preamps): Eight XLR/TRS combo preamps on the main rack unit, typically dedicated to close drum microphones, guitar cabinet mics, rack and floor toms, and stereo drum overheads.
  2. Inputs 9-10 (Coaxial S/PDIF or Auxiliary Line Return): Two digital coaxial S/PDIF channels or line inputs used for stereo hardware synthesizers, stage pianos, or drum machines (SpdifSynthL and SpdifSynthR).
  3. Inputs 11-18 (8-Channel ADAT Optical Preamp Expander): Eight additional microphone and instrument preamps fed from an external 8-channel ADAT expander into the primary interface's ADAT OPTICAL IN port over a TOSLINK fiber-optic cable, dedicated to BassDi, BassAmp, GuitarL, GuitarR, KeysL, KeysR, LeadVocal, and RoomAmbience.

2.1.1 Studio Signal & Clock Wiring Diagram#

The diagram below illustrates the physical audio, optical ADAT, Word Clock, studio monitor, and loopback calibration connections for an 18-channel tracking room:

STAGE / LIVE ROOM MICROPHONES & DI BOXES
======================================================================
[CH 01..08: Drum Kit & Cab Mics]   [CH 11..18: Band & Room Mics]
Kick, Snare, Toms, Overheads       Bass DI/Amp, Guitars, Keys, Vocal
             |                                      |
     8x XLR Mic Cables                      8x XLR/TRS Cables
             v                                      v
+-------------------------------+  +---------------------------------+
| PRIMARY 18-IN / 20-OUT AUDIO  |  | EXTERNAL 8-CH ADAT MIC PREAMP   |
| INTERFACE (USB / THUNDERBOLT) |  | EXPANDER (OPTICAL LIGHTPIPE)    |
|                               |  |                                 |
| Analog In 1-8    [CH01..CH08] |  | Analog Mic Pre 1-8              |
| S/PDIF Coax In   [CH09..CH10]<+-\|                                 |
| ADAT Optical In  [CH11..CH18]<+--+-- ADAT Optical Out (TOSLINK)    |
|                               | ||                                 |
| Clock: INTERNAL (48.0 kHz)    | || Clock Sync: SLAVE (Word Clock   |
| Word Clock Out (75-Ohm BNC) --+-++-> Word Clock In (75-Ohm BNC)    |
|                               | |+---------------------------------+
| Main Out 1-2  -> Monitors     | |
| Line Out 3-10 -> Headphones   | \-- [CH 09..10: Stereo Synth S/PDIF]
| Line Out 20   -> Patch In 1   |     (Coaxial 75-Ohm RCA Cable)
|                  (Loopback)   |
+-------------------------------+
             |
      USB-C / Thunderbolt
             v
+-------------------------------+
| WORKSTATION RUNNING CAVEREC   |
| Audio Device: 18 in / 20 out  |
| Sample Rate:  48.0 kHz | INT  |
+-------------------------------+

Connecting instruments in a consistent console order allows you to reuse your saved Cave Recorder Session Templates (SAVE TEMPLATE) across every rehearsal without re-patching:

Input & Strip Typical Studio Source & Microphone +48V Phantom Subgroup Bus Gain-Staging Target
IN 01 (CH01 01KickIn) Kick Drum Inside (Dynamic or boundary mic) Off (On for boundary) SUB 1 (DRUM BUS) Peaks at -6 dBFS on hard hits
IN 02 (CH02 02SnrTp) Snare Drum Top (Dynamic cardioid, align Φ + Ø) Off SUB 1 (DRUM BUS) Peaks at -6 dBFS on rimshots
IN 03 (CH03 03OvrhdL) Mono Drum Overhead or Snare Bottom (align Φ) On / Off SUB 1 (DRUM BUS) Peaks at -8 dBFS
IN 04 (CH04 04GtrAmp) Close Guitar Cabinet Mic or Hi-Hat Condenser Off / On MST (MASTER BUS) Average -18 dBFS RMS
IN 05 (CH05 TomRack) Rack Tom Clip-On Dynamic Off SUB 1 (DRUM BUS) Peaks at -6 dBFS on fills
IN 06 (CH06 TomFloor) Floor Tom Dynamic Off SUB 2 / SUB 1 Peaks at -6 dBFS on fills
IN 07 (CH07 OverheadL) Drum Overhead Left (Matched condenser pair) On SUB 1 (DRUM BUS) Peaks at -8 dBFS on crashes
IN 08 (CH08 OverheadR) Drum Overhead Right (Matched condenser pair) On SUB 2 / SUB 1 Peaks at -8 dBFS on crashes
IN 09 (CH09 SpdifSynthL) Stereo Digital Synth Left (Coaxial S/PDIF L) Off SUB 1 / SUB 2 Average -18 dBFS RMS
IN 10 (CH10 SpdifSynthR) Stereo Digital Synth Right (Coaxial S/PDIF R) Off SUB 2 (INST BUS) Average -18 dBFS RMS
IN 11 (CH11 BassDi) Bass Guitar Active/Passive DI Box (Line/Inst) On (Active DI) SUB 1 / SUB 2 Average -18 dBFS, peaks -8 dBFS
IN 12 (CH12 BassAmp) Bass Cabinet Dynamic or FET Condenser (align Φ to CH11) Off / On SUB 2 (INST BUS) Average -18 dBFS, peaks -8 dBFS
IN 13 (CH13 GuitarL) Rhythm Guitar Amp Close Dynamic (Cardioid Dynamic / Ribbon) Off SUB 1 / SUB 2 Average -18 dBFS RMS
IN 14 (CH14 GuitarR) Lead Guitar Amp Close Dynamic or Second Cab Mic Off SUB 2 (INST BUS) Average -18 dBFS RMS
IN 15 (CH15 KeysL) Stage Piano / Keyboard Stereo DI Left Off SUB 2 (INST BUS) Average -18 dBFS RMS
IN 16 (CH16 KeysR) Stage Piano / Keyboard Stereo DI Right Off SUB 2 (INST BUS) Average -18 dBFS RMS
IN 17 (CH17 LeadVocal) Lead Vocal Dynamic or Large-Diaphragm Condenser Off / On MST (MASTER BUS) Peaks at -6 dBFS on loud chorus
IN 18 (CH18 RoomAmbience) Live Room Condenser or Ribbon (Never +48V on passive ribbon) On / Off SUB 1 (DRUM BUS) Average -20 dBFS RMS

2.1.3 Digital Clock Synchronization (INT vs. External ADAT / Word Clock)#

Whenever two or more digital audio devices convert audio simultaneously (such as a primary USB interface and an external 8-channel ADAT optical preamp), every converter in the chain must lock to a single master sample clock. If both units run on their own internal crystal oscillators, slight clock drift causes periodic clicks, pops, and high-frequency distortion across the expanded channels.

Follow one of these two studio clocking topologies:

  1. Topology A: Primary Interface as Master (INT), Expander Slaved via Word Clock or Bidirectional ADAT (Recommended):
    • Set your primary audio interface clock source to Internal (INT) at 48.0 kHz (displayed in the Cave Recorder Top Deck as 48.0 kHz | INT and in the console session bar as 48.0 kHz LOCKED).
    • Run a 75-ohm BNC Word Clock cable from the primary interface WORD CLOCK OUT to the ADAT expander WORD CLOCK IN (switching the expander's rear clock selector to WC IN with 75-ohm termination active), or run a second TOSLINK cable from the primary interface ADAT OUT to the expander ADAT IN and set the expander clock selector to ADAT IN.
  2. Topology B: ADAT Expander as Master, Primary Interface Slaved to ADAT:
    • If your external 8-channel preamp has only an ADAT OUT port and no WORD CLOCK IN or ADAT IN port, set the external preamp to INTERNAL 48 kHz and set your primary audio interface clock source to External ADAT in its hardware control panel.

2.1.4 First-Launch Setup on macOS (Direct Download vs. Mac App Store Edition)#

Cave Recorder is distributed on macOS in two official editions:

  1. Direct Download Edition (caverec-v0.8.0-macos-arm64.zip / Cave Recorder.app): Signed and notarized with an Apple Developer ID certificate (app.caverec.daw) for CoreAudio multi-channel audio input, multi-camera studio video capture, local Wi-Fi Cave Recorder Remote and Bonjour discovery, native resumable Google Drive cloud sync, both .clap and macOS Audio Unit (AU) plugins, the standalone encdr-daemon Dual-Screen Pad Controller helper, and bundled caverec-cli / caverec-headless automation tools.
  2. Mac App Store Edition (Cave Recorder, macOS App Sandbox): Installed directly from the Mac App Store under Apple's App Sandbox security model with four user-facing differences:
    • Native macOS Open/Save Panels & Persistent Folder Bookmarks: Selecting a custom Session Library Root or opening external Session folders uses native macOS Open and Save panels and stores persistent App-Scoped Security-Scoped Bookmarks so your chosen studio drives stay accessible automatically across launches. By default, the Mac App Store edition places its initial Library Root inside its writable app container (~/Library/Containers/app.caverec.daw/Data/Music/caverec).
    • Native App-Sandbox Google Drive Cloud Sync: Google Drive Cloud Sync runs directly through native macOS background networking with zero external command-line helpers. Even in self-built or unconfigured installations, the CLOUD popover and PROJECT browser expose Connect Google Drive… and Configure OAuth Client ID… inline so you can sign in and sync projects inside the App Sandbox.
    • Isolated Out-of-Process Audio Units Exclusively: All macOS Audio Unit effects (aufx), instruments (aumu), and MIDI effects (aumf) are hosted in isolated out-of-process system host processes so a misbehaving third-party plugin can never crash your live recording. Because App Sandbox restricts loading arbitrary unsigned dynamic libraries outside system Audio Unit hosts, the Mac App Store edition hides .clap plugin controls in PLUGINS and hosts macOS Audio Units exclusively.
    • External USB Pad Helper & CLI Binaries: External USB helper executables (encdr-daemon) and bundled CLI binaries are omitted from the sandboxed Mac App Store package. Direct downloads from caverec.app include full Dual-Screen Pad Controller support and bundled caverec-cli / caverec-headless tools, while a running Mac App Store app still accepts loopback 127.0.0.1 connections from an externally installed caverec-cli.

2.2 Configuring Audio Device Settings (AUDIO SETTINGS)#

Click the AUDIO SETTINGS button at the top right of the Top Transport Deck (or press CMD + , on macOS / CTRL + , on Windows and Linux) to open the Audio Device & Latency Settings modal (MODAL: AUDIO DEVICE & LATENCY SETTINGS).

The Audio Device Settings modal showing input/output device selection, sample rate, buffer size, and hardware loopback calibration.
Figure 2.1: The Audio Device Settings modal showing input/output device selection, sample rate, buffer size, and hardware loopback calibration.

2.2.1 Selecting Input and Output Devices & macOS Microphone Permission Diagnostics#

2.2.2 Buffer Size (frames), Sample Rate & Bit Depth#

Buffer Size (frames) One-Way Buffer @ 48.0 kHz Driver Roundtrip (incl. Converter/USB Safety) Recommended Studio Scenario
32 frames 0.67 ms ~4.0 - 5.5 ms Solo vocal or guitar tracking through software effects on fast workstations
64 frames 1.33 ms ~5.5 - 7.5 ms Live overdubbing (OVERDUB) with software cue monitoring and LOW-LATENCY
128 frames 2.67 ms ~8.0 - 10.5 ms General multi-track tracking and rehearsal capture
256 frames 5.33 ms ~13.3 - 14.0 ms 18-channel band rehearsals using hardware direct monitoring
512 frames 10.67 ms ~24.0 - 26.0 ms Full console mixing, Subgroup Bus processing, and heavy CLAP / AU plugin chains
1024 / 2048 frames 21.33 / 42.67 ms ~45.0 - 90.0 ms Mastering, offline Stem Bounce preparation, and high-channel-count archival playback

2.2.3 30-Minute Retroactive Capture Memory (● RETRO)#

While your audio interface is active, the ● RETRO button in the Top Transport Deck controls Cave Recorder's continuous 30-minute retroactive capture memory. When ● RETRO is enabled:

2.2.4 Installing caverec-cli & Studio Engineering Skills from AUDIO SETTINGS#

Direct desktop distributions ship the lightweight caverec-cli command-line client and caverec-headless offline engine for scripted studio control, sample-clocked metering/probing, and AI studio-assistant workflows. Inside AUDIO SETTINGS under CLI & STUDIO SKILLS (CAVEREC-CLI), click INSTALL CAVEREC-CLI & STUDIO SKILLS... to automatically place caverec-cli on your user PATH (~/.local/bin/caverec-cli on macOS and Linux, or your user PATH on Windows) and install the 6 embedded Studio Engineering Skills. Full CLI, Python client, and skills documentation is provided in Section 8.6 in Chapter 8.


2.3 Calibrating Roundtrip Loopback Latency (Measure Latency)#

When a musician records an Overdub Pass (Rec002-OD) while listening to playback of a Base Pass (Rec001), the backing track travels out through the digital-to-analog converter (DAC) to the musician's headphones, and the musician's new performance travels back in through the analog-to-digital converter (ADC) and USB or Thunderbolt bus.

Audio device drivers only report nominal buffer sizes (Estimated roundtrip: 13.33 ms, or 640 samples at 256 frames / 48.0 kHz). They do not account for the additional samples introduced by hardware oversampling filters, optical ADAT connections, and USB or Thunderbolt transport stages (which typically add 16 to 64 extra samples). Without hardware loopback calibration, every overdubbed track lands slightly late relative to the drums.

Cave Recorder includes a built-in hardware impulse loopback analyzer (ROUNDTRIP LOOPBACK CALIBRATION) that measures the exact physical sample delay from output jack to input jack:

  1. Lower Monitor Volume: Turn down your studio monitor controller and headphone amplifiers completely so the calibration test impulse does not play through loudspeakers.
  2. Patch a Physical Loopback Cable: Connect a balanced 1/4-inch TRS or XLR patch cable from your interface's dedicated loopback test output (Out 20 or Out 1) directly into any hardware analog input channel (such as Input 1). Ensure +48V phantom power is turned off on that input channel and set its physical preamp gain knob near unity (roughly 9 to 10 o'clock).
  3. Select the Loopback Test Output: Open AUDIO SETTINGS (CMD + , / CTRL + ,) and locate the ROUNDTRIP LOOPBACK CALIBRATION panel at the bottom. Choose Out 20 (convenient on 20-output interfaces where Output 20 can stay permanently patched to an unused line input) or click Use Out 1 if patching from main Output 1. (For acoustic room delay tests through a speaker and microphone, toggle Acoustic loopback (speaker -> microphone)).
  4. Run the Impulse Measurement: Click Measure Latency. Cave Recorder emits a short, high-precision measurement impulse out the selected output port, automatically detects which hardware input channel received the return signal, and correlates the exact sample arrival offset.
  5. Verify the Measured Offset: Inspect the green confirmation readout at the bottom of the modal and the red badge under Estimated Latency: Auto-detected Input 1 <- Output 20 | Measured: 13.83 ms (664 samples, +24 vs driver, Electrical)
  6. Close Audio Settings: Click CLOSE AUDIO SETTINGS at the top left of the modal.

2.4 Creating Your First Project and Session (PROJECT Modal)#

Press CMD + O on macOS (CTRL + O on Windows and Linux) or click the PROJECT button in the Top Transport Deck to open the Project and Session Browser modal.

The Project and Session Browser modal showing Projects, Templates, and Session history.
Figure 2.2: The Project and Session Browser modal showing Projects, Templates, and Session history.

2.4.1 Configuring the Library Root and Cloud Folder#

At the top of the PROJECT modal, verify your storage paths before creating your first session:

  1. Library Root: Displays the master local disk directory where all Projects, Sessions, and Takes are stored. Click Change Library Folder... to point Cave Recorder at a fast internal NVMe SSD or dedicated external Thunderbolt recording drive.
  2. Cloud Folder & Live Sync Strip: Displays the configured Google Drive folder name (for example, caverec) alongside Connect Google Drive… (or Configure OAuth Client ID… if setting up custom desktop credentials), Sync Library (Full), Sync Library (Mixes), and an inline activity bar showing live UP/DN % progress with PAUSE, RESUME, and CANCEL whenever a transfer is active or paused. Cloud-backed sessions in the table below display explicit directional status badges (UP TO DATE, LOCAL AHEAD, CLOUD AHEAD, or DIVERGED) so you always know which side has newer changes before syncing.

2.4.2 Creating a New Project or Linking a Bandmate's Remote Project#

Every Session belongs to a Project (such as a band name, album project, or client ensemble) identified by an uppercase 1-to-8 character Project Tag (GF, TEST, MISC).

Creating a new Project and Session in the Project Browser modal.
Figure 2.3: Creating a new Project and Session in the Project Browser modal.

2.4.3 Selecting a Session Template and Starting a New Session#

Once your Project pill is selected (highlighted in burgundy):

  1. Choose a Session Template: In the Session Template row, select one of the four built-in studio templates seeded on disk (or any custom template you have saved):
    • Template: MicAndGuitar001 (Built-In Default Template): Pre-selected on startup, MicAndGuitar001 provides a ready-to-record 2-channel singer-songwriter and acoustic rehearsal setup (2 armed mono tracks: Mic on IN 01 with an 80 Hz HPF and -8.0 dB Post-Fader Reverb send, plus Guitar on IN 02 with an 80 Hz HPF), 0 Subgroup Buses, and 2 Aux Returns (AUX 1 REVERB Plate Reverb and AUX 2 TAPE DLY Tape Delay).
    • Template: GuitarBassDrumTrio001: Built-in 11-channel band template with 3 stereo Subgroup Buses (Guitar Bus, Drum Bus, and parallel Drum Crush Bus with 8:1 VCA compression), 2 Aux Returns, stereo guitars (Guitar L / Guitar R), Bass DI, Room Mic, 4-mic drum kit (Kick, Snare Top, Overhead L, Overhead R), and pre-assigned guitar/vocal overdub channels.
    • Template: XR18Base001: Built-in 17-track stagebox tracking template (Ch 1 through Ch 16 mono on IN 01..16 plus stereo-linked Line 17-18 on IN 17+18, unarmed and flat), 0 Subgroup Buses, 0 Aux Returns, and the Master Bus Brickwall Limiter engaged.
    • Template: Empty: Clean slate with 0 Input Tracks, 0 Subgroup Buses, 0 Aux Returns, and the Master Bus Brickwall Limiter only, ready to build a custom console layout via + TRACK, + SUB, and + AUX.
    • Any custom studio setup you save via Save Template… inside PROJECT appears automatically in this list and can be filtered via the Filter templates... search box.
  2. Enter Session Name and Session Tag: Type a descriptive Session Name in the left field (for example, Birthday Studio Session) and a short filesystem-friendly Session Tag in the right field (for example, BirthdayMix).
  3. Verify the Folder Preview: Inspect the Folder Preview line (TEST/TEST_20261020-3_BirthdayMix). Cave Recorder automatically combines the Project Tag, the session date (using the 08:00 local time rollover rule), the daily session sequence number, and your Session Tag.
  4. Launch the Session: Click New Session to initialize the session folder on disk and enter MIXER (CMD + 2 / CTRL + 2, the automatic landing view for new 0-Take sessions). To reopen an existing session instead, locate it in the RECENT SESSIONS table at the bottom (filtering by ALL, AVAILABLE, MISSING, EXTERNAL, or CLOUD) and click Open (sessions with existing Takes open directly into TIMELINE).

2.4.4 Pre-Session Track Naming, Input Routing & Gain Staging#

Before the band starts playing the first song, perform a 60-second console check in MIXER (CMD + 2 / CTRL + 2):

  1. Verify Hardware Input Routing (IN 01 ▾): On each channel strip, confirm the input selector dropdown (IN 01 ▾, IN 02 ▾, ...) matches the physical preamp jack where that microphone or DI box is plugged in.
  2. Name Each Strip Clearly: Double-click any channel strip header (01KickIn, 02SnrTp, ...) to rename it inline. Clear strip names propagate automatically into every recorded .wav stem filename (01-KickIn_Rec001.wav) and Timeline track lane.
  3. Set Analog Preamp Gain and Digital Input Trim (TRM): Have the band play at full rehearsal volume:
    • Adjust your audio interface's physical analog preamp knobs so sustained signals average around -18 dBFS RMS (in the healthy green zone of the channel meter) and the loudest drum hits peak around -6 dBFS (in the lower amber zone, well below 0.0 dBFS hardware clipping).
    • Use each strip's digital TRM slider (-24.0 dB to +24.0 dB) to fine-tune the level feeding the 8-slot processor rack and recorded pre-fader stem.
  4. Engage Record Arm (R) and Input Monitoring (I): Click R on every active input strip so it lights crimson, and confirm the Top Deck ● RETRO indicator is lit green so 30-minute retroactive memory begins capturing immediately.
  5. Save Your Room Template: Open PROJECT (CMD/CTRL + O), click Save Template…, enter a template name for your room setup, and click SAVE AS TEMPLATE so future sessions load this exact configuration in one click.

2.5 Connecting Studio Cameras & 3-Second Camera Latency Calibration#

Cave Recorder includes a sample-accurate Multi-Camera Studio Video Suite that captures multiple USB, UVC, HDMI-to-USB capture-card, built-in studio cameras, and wireless Cave Recorder Remote mobile camera nodes directly into <TakeFolder>/video/ alongside your 32-bit float multitrack audio stems.

2.5.1 Constant Frame Rate (50 / 25 / 30 / 60 FPS) Audio-Clock Lock, Camera Removal & Hardware LED Privacy#

Consumer video recorders and webcams frequently operate at variable frame rates (VFR) or fractional NTSC cadences (29.97 FPS or 59.94 FPS) that produce non-integer audio sample counts per video frame (1601.6 samples/frame at 48.0 kHz) and cause rolling-shutter banding under 50 Hz studio LED lighting. Cave Recorder prefers 50 FPS and 25 FPS Constant Frame Rate (CFR) modes and automatically negotiates exact integer 30 FPS or 60 FPS CFR fallbacks when a USB webcam or capture card does not expose 50 Hz hardware modes:

Video Capture Mode Frame Duration Exact 48.0 kHz Audio Cadence Encoding & GOP Profile Studio Use Case
1080p50 / 720p50 CFR (Default) 20.000 ms 960 samples/frame (exact integer) H.264 .mp4, Zero B-Frames, 0.5 s (25-frame) closed GOP + .vididx index High-motion drum cams, close fretboard angles, and full-band rehearsal video with zero 50 Hz mains lighting flicker
1080p25 / 720p25 CFR 40.000 ms 1,920 samples/frame (exact integer) H.264 .mp4, Zero B-Frames, 0.5 s (12/13-frame) closed GOP + .vididx index Wide room cameras, lower-light rehearsal spaces, or extended multi-hour jam sessions
1080p30 / 720p30 CFR (Fallback) 33.333 ms 1,600 samples/frame (exact integer) H.264 .mp4, Zero B-Frames, 0.5 s (15-frame) closed GOP + .vididx index USB webcams and 60 Hz mains lighting rooms where 50 FPS / 25 FPS modes are unavailable
1080p60 / 720p60 CFR (Fallback) 16.667 ms 800 samples/frame (exact integer) H.264 .mp4, Zero B-Frames, 0.5 s (30-frame) closed GOP + .vididx index High-frame-rate 60 Hz capture cards and fast stick-work angles

Because every video frame maps to an exact integer number of 48.0 kHz audio samples (960, 1,920, 1,600, or 800 samples) and is encoded with zero bidirectional B-frames and a short 0.5 s keyframe interval (GOP), timeline scrubbing in TIMELINE (CMD/CTRL + 1) responds instantaneously without multi-second decoder lag.

2.5.2 Running the 3-Second 4-Pulse Camera Latency Calibration Modal#

Even when a camera's frame cadence is locked to 50 FPS (20.0 ms per frame), USB video capture cards, HDMI converters, and CMOS rolling-shutter image sensors introduce a fixed pipeline delay (typically 35 ms to 120 ms) between the physical moment a drumstick strikes a snare head and the moment that decoded video frame arrives in workstation memory.

To measure and compensate for this optical pipeline delay to sub-frame microsecond accuracy without a mechanical clapperboard, Cave Recorder provides the 3-Second Camera Latency Calibration Modal (CALIBRATE CAMERA LATENCY):

  1. Position the Camera, Select a Calibration Mode & Open Calibration: Click ● CAMERA in Top Deck Row 2, click CALIBRATE CAMERA LATENCY, and select one of the three calibration modes in the mode selector bar:
    • 4-PULSE VERNIER FLASH (External / Companion Cameras Pointed at the Display or Rear LED Torch): Emits a 4-pulse quarter-frame staggered screen/LED flash + studio monitor click sequence for automated sub-frame optical latency measurement.
    • FULL-WINDOW WHITE FLASH (Built-In Laptop Webcams Facing the Musician): Temporarily replaces the entire modal with a full-window #FFFFFF maximum-luminance white flash during each 80 ms pulse so a built-in laptop camera (such as a MacBook FaceTime HD Camera) facing away from the screen captures the reflected room/face illumination jump.
    • INTERACTIVE CLAPPER / HAND CLAP (Visual Hand-Clap Filmstrip Inspector): Records a 3-second audio-video capture while you clap your hands once in front of the camera lens, automatically locates the acoustic clap transient peak, and opens an interactive -5..+5 frame-stepping filmstrip inspector ([◀ PREV FRAME] / [NEXT FRAME ▶]) around the impulse so you can select the exact frame of physical hand contact and save the calibrated camera latency offset.
  2. Execute the 3-Second (34,320-Sample) Calibration Sequence: Click START 3-SECOND CALIBRATION. In 4-Pulse Vernier or Full-Window White Flash mode, Cave Recorder runs an automated 4-phase optical and acoustic measurement spanning 34,320 samples (715 ms active measurement window inside the 3-second sequence) at 48.0 kHz:
    • Vernier Staggered Optical Flash + Studio Monitor Click: Cave Recorder emits 4 synchronized calibration pulses staggered at quarter-frame (5.0 ms / 240-sample) Vernier offsets relative to the 20.0 ms (50 FPS) camera frame grid. Each pulse pairs an 80 ms full-white screen flash (or high-intensity mobile LED Torch flash) with a crisp acoustic calibration click routed through the studio monitors into an active live-room microphone.
    • Direct-Path Acoustic Onset Detector: The audio analyzer identifies the exact direct-path acoustic arrival sample of each monitor click while rejecting late room reflections, establishing the true physical acoustic timestamp on the 48.0 kHz audio clock.
    • Partial-Exposure Luminance Weighting: Because a CMOS sensor integrating light over a 20.0 ms frame window captures a partial-exposure brightness ramp on the exact frame where the 80 ms flash turns on, Cave Recorder weights the rising luminance fraction across the 4 Vernier-staggered pulses to solve the optical arrival time with sub-frame microsecond precision (finer than a single 20.0 ms video frame).
  3. Automatic Per-Camera Calibration Storage: Once the 4-pulse sequence completes, the modal displays the measured optical offset (for example, Measured Camera Latency: +64.25 ms (+64,250 us | 3.21 frames @ 50 FPS)) and stores the calibrated latency offset in the session by hardware camera identifier. Every subsequent Take recorded with that camera automatically stamps its .vididx frame index with the calibrated microsecond offset so drumstick impacts and guitar strums lock visually to the audio waveform.

2.6 Connecting a Digital Stagebox (● STAGEBOX, X-Air OSC UDP 10024 & X32 OSC UDP 10023)#

When tracking, rehearsing, or mixing live through an 18-channel or 32-channel digital stagebox audio interface exposing remote control over Open Sound Control (OSC), Cave Recorder provides a full-featured STAGEBOX workspace (CMD/CTRL + 9) alongside integrated hardware preamp gain (PRE: -12.0 dB to +60.0 dB in 0.5 dB steps), 600 ms hold-to-toggle +48V phantom power, USB -> Aux -> Main L/R output routing, and wireless Cave Recorder Remote MY MONITOR / FULL MIXER stagebox control.

2.6.1 Multi-NIC LAN & Direct-Ethernet (169.254.x.x) Discovery & XR18V2 Recognition#

Click the ● STAGEBOX pill in Row 2 of the Top Transport Deck (or press CMD/CTRL + 9, or click any track strip's SB quick-jump keycap) to open the full STAGEBOX workspace, organized across four tabs (1. MIXER, 2. ROUTING, 3. FX RACK, and 4. SCENES & SETUP):

  1. Multi-NIC Broadcast Discovery (SCAN /xinfo / SCAN NOW): Many rehearsal rooms connect the stagebox's Ethernet control port directly to the recording laptop with a single Cat5e/Cat6 patch cable (operating on a 169.254.x.x/16 link-local address) while the laptop's Wi-Fi adapter remains connected to the studio router (192.168.x.x/24) for Cave Recorder Remote devices and Google Drive sync. Inside 4. SCENES & SETUP, clicking SCAN /xinfo (or SCAN NOW in the auto-detected stagebox banner) probes every active network interface on the workstation simultaneously across both X-Air OSC (UDP 10024) (XR18, XR16, XR12, MR18, X18, and V2 hardware revisions including XR18V2, MR18V2, X18V2, XR16V2, XR12V2, and MR12V2) and X32 OSC (UDP 10023) (X32, X32 Rack, M32) ports, listing discovered stageboxes with their recognized model identifier, firmware version, and network interface IP.
  2. Manual IP & Dialect Selection (CONNECT IP): You can also type an explicit IP:PORT address (such as 192.168.1.60:10024 or 169.254.10.24:10024), choose X-Air OSC (UDP 10024) or X32 OSC (UDP 10023), and click CONNECT IP.
  3. Sample Rate & USB Mode Guardrail: 4. SCENES & SETUP checks the hardware mixer's active sample clock (48 kHz vs. 44.1 kHz) and USB interface mode (18x18 vs. 2x2) against Cave Recorder's audio engine so clock mismatches are flagged before you roll a Take.

2.6.2 Speaker-Safe Hardware-Truth on Connect, Dual Scene Sync & USB Tap Verification#

To prevent sudden feedback blasts or unexpected +48V phantom power pops when connecting to a live PA or rehearsal stagebox, Cave Recorder enforces strict hardware-safety invariants across 2. ROUTING and 4. SCENES & SETUP:

The Stagebox 2. ROUTING 4-domain crosspoint patch matrix showing USB SENDS, CH INPUTS and Virtual Soundcheck presets, ANALOG OUTS, and ULTRANET P16.
Figure 2.4: The Stagebox 2. ROUTING 4-domain crosspoint patch matrix showing USB SENDS, CH INPUTS and Virtual Soundcheck presets, ANALOG OUTS, and ULTRANET P16.

2.6.3 4. OUTPUT / MON Playback Routing (USB -> Aux -> Main L/R) & Hardware Faders#

When tracking or mixing back through a digital stagebox connected to your studio monitors, hearing Cave Recorder's Master Bus output through the stagebox Main L/R jacks requires the stagebox's USB return stereo pair to feed its Aux Return and Main L/R bus. Open the Output & Monitor Routing controls (flagged with !USB whenever USB playback is unrouted or muted):

The Stagebox USB-to-Aux-to-Main L/R output routing view showing stereo USB return pair selection and side-by-side HW AUX RTN and HW MAIN L/R faders.
Figure 2.5: The Stagebox USB-to-Aux-to-Main L/R output routing view showing stereo USB return pair selection and side-by-side HW AUX RTN and HW MAIN L/R faders.

2.7 Connecting Hardware MIDI Gear, Floor Loopers & Hardware Latency Calibration (MIDI SYNC)#

Cave Recorder bridges hardware floor loopers, external drum machines, analog and digital synthesizers, MIDI footswitches, live-played virtual instruments, and tempo-synced console effects without imposing a rigid beat grid on your 00:00:00.000 multitrack timeline.

Click the fixed-width ● MIDI indicator pill in Row 2 of the Top Transport Deck (immediately left of ● CAMERA) to open the MIDI SYNC & HARDWARE CALIBRATION modal. The pill's LED updates live across four synchronization states:

Top-Deck Pill LED Sync State Outbound MIDI Clock (24 PPQN) & Transport Behavior
Dim (● MIDI) Free Time (Default) Outbound 24 PPQN MIDI Clock (0xF8) is muted so external gear stays free-running.
Gold (● MIDI) Freeform Loop Capture Armed Outbound 0xF8 clock remains strictly muted between Stomp 1 and Stomp 2 so AUTO-clock hardware floor loopers never pre-lock to a stale tempo or pitch-warble when closing a loop.
Crimson (● MIDI) 4-Tap Count-In Pre-Roll Streams 23 Beat-4 warmup clock pulses immediately after Tap 4 so external drum machines lock speed cleanly before Start (0xFA) lands on Beat 1.
Emerald (● MIDI) Rational Tempo Locked Streams continuous sample-locked 24 PPQN MIDI Clock (0xF8) derived from an exact rational sample span with zero cumulative drift across multi-hour jams. Hovering the pill (or enabling [?] Studio Coach) shows the locked tempo and samples per bar.

2.7.1 Section 1: Gridless Looper Capture & 4-Tap Count-In Bridge#

The upper deck of the MIDI SYNC & HARDWARE CALIBRATION modal (1. GRIDLESS LOOPER & TAP-TEMPO BRIDGE) gives musicians two instant ways to establish a live studio groove without typing a BPM:

  1. 4-Tap Count-In Tap-Tempo (TAP (T) & AUTO-REC ON BEAT 1):
    • Click the interactive 4-beat Tap Pad, click TAP (T), press T on your keyboard while the modal is open, or tap a MIDI-learned footswitch four times in time with the room.
    • Cave Recorder computes a 4-tap regression tempo and predicts the exact Beat 1 downbeat sample, emitting 23 Beat-4 warmup clock pulses (Crimson LED) before firing Start (0xFA) on Beat 1 (Emerald LED).
    • Latch AUTO-REC ON BEAT 1 if you want Tap 4 to automatically punch the Master Transport into Record on the predicted Beat 1 downbeat.
  2. Freeform Hardware Floor Looper Bridge (ARM LOOP CAPTURE & LOOP STOMP):
    • Select your intended loop length (1 BAR, 2 BARS, 4 BARS, or 8 BARS) and click ARM LOOP CAPTURE (or step on your MIDI-learned looper footswitch, defaulting to CC 80).
    • On Stomp 1 (loop start), the ● MIDI LED illuminates gold and holds outbound MIDI Clock silent while you play your freeform riff.
    • On Stomp 2 (loop close, via footswitch or LOOP STOMP), Cave Recorder locks an exact rational sample span (RATIONAL SPAN) matching your loop length to the single sample, turning the ● MIDI LED emerald so external drum machines, AUX 2 Stereo Delay, 4-Mode Modulation, and the native Groovebox lock tight to your floor looper with zero drift.
  3. Beat-Quantized Rational Tempo Scaling (0.5x, 1.0x, 2.0x) & CLR SYNC:
    • Once locked, click 0.5x (half-time), 1.0x (unity), or 2.0x (double-time) to switch clock speed cleanly on the next beat boundary while preserving exact integer periodicity against your audio loop. Click CLR SYNC at any time to release tempo lock and return to free time.

2.7.2 Section 2: MIDI Inputs & 1-Click [MIDI LEARN] Footswitches#

Section 2 (2. MIDI INPUTS & 1-CLICK [MIDI LEARN] FOOTSWITCHES) lists all connected USB and 5-pin DIN MIDI input ports and lets you bind any incoming MIDI CC or Note message to hands-free studio controls:

2.7.3 Section 3: MIDI Output Ports & 1-Click Hardware Latency Ping (PING)#

External hardware synthesizers and drum machines exhibit a measurable physical delay between receiving a MIDI NoteOn or Start (0xFA) message and delivering audio into your audio interface's analog inputs (typically 3 ms to 18 ms). Section 3 (3. MIDI OUTPUT PORTS & 1-CLICK HARDWARE LATENCY PING) calibrates and compensates each MIDI output port automatically:

  1. Configure Port Medium & Sync Routing:
    • Toggle USB vs. DIN 5-PIN: selecting DIN 5-PIN enables wire-occupancy collision protection across the 5-pin DIN serial link so dense chords or continuous controller sweeps never delay 0xF8 clock ticks.
    • Independently toggle CLOCK (0xF8) (ON/OFF) and START/STOP (ON/OFF) per output port.
  2. Select Return Input & Ping Mode:
    • Click the RETURN ADC button (IN 01..IN 32) to pick the hardware audio input receiving that synth or drum machine.
    • Toggle PING MODE between NOTE (for synthesizers, sending short test notes) and 0xFA STEP 1 (for step-sequenced hardware drum machines with a crisp hit programmed on Step 1).
  3. Run 1-Click Calibration (PING):
    • Click PING. Cave Recorder verifies a quiet noise floor, emits 5 timed test bursts, detects each acoustic onset foot cleanly, computes the median hardware delay, and displays the calibrated offset in microseconds, milliseconds, and samples (for example, 6420us / 6.4ms / 308 smp). Click RESET to clear a stored offset.
    • All calibrated MIDI-to-ADC offsets are saved in microseconds inside device_settings.json so switching between 44.1 kHz and 48.0 kHz preserves physical timing accuracy. Whenever you press Play or Record from standstill with calibrated external MIDI gear active, Cave Recorder automatically executes a brief, silent pre-roll (<= 25 ms) so Beat 1 of your external drum machine lands cleanly on sample 0 with zero transient chopping.

2.8 Connecting a Dual-Screen Studio Pad Surface (● CONTROLLER)#

Cave Recorder supports direct, low-latency USB control of a Dual-Screen Pad Controller (Studio Pad Surface) featuring two 480×272 color displays with exact 1:1 encoder column alignment (E1..E4 under Left screen, E5..E8 under Right screen), 16 velocity- and pressure-sensitive RGB pads, 8 touch-sensitive display encoders (E1..E8), 8 top soft keys (F1..F8), GROUPS A..H, dual 16-LED hardware level meters, and a 30-LED jog wheel ring.

The surface operates in two dedicated hardware personalities that you can switch instantaneously from either the hardware (SHIFT + CHANNEL) or the desktop Top Deck (● CONTROLLER):

  1. [DRUM STUDIO] (Frameless Dark Chassis with Archetype Accent): Full tactile workstation for Cave Recorder's native Groovebox, ANALOG BASS synthesizer, and STUDIO SAMPLER (SAMPLING opens the 4-tab RECORD | EDIT | SLICE | ZONE Sampler view with dual-screen waveform and zero-crossing zoom, while SHIFT + SAMPLING opens STEM & SYNC), plus 16 velocity pads, KEYBOARD melodic mode, 64-step STEP MODE, NOTE REPEAT, ARP, ALL + NOTE REPEAT Beat-Repeat pads, live CRT oscilloscope, and REC for Pattern Overdub only.
  2. [CONSOLE DAW REMOTE] (4 px Console Burgundy Frame, or Warm Preamp Copper in STAGEBOX PREAMPS): Hands-on 8-channel Mix Console fader bridge with universal [M][S][R] Solo Gold tally styling, Stagebox hardware preamp gain and 600 ms guarded +48V phantom power, dual-screen AUX SENDS (AUX 1..4 on Left E1..E4, AUX 5..8 on Right E5..E8), built-in Processor curves and hosted Plugin (CLAP/AU) pages, 16-pad Ranges/Loop/Cue Markers/Pass Lane comping (including direct Range-to-Sampler import and CONSOLE CAPTURE & RESAMPLE), SNAPSHOTS & TAKES, and guarded Disk Take recording.

2.8.1 Dual-Screen Hardware Surface Zone Layout#

+----------------------------------------------------------------------+
|  [F1] [F2] [F3] [F4]                [F5] [F6] [F7] [F8]              |
| +---------------------------+      +---------------------------+     |
| |   LEFT 480x272 DISPLAY    |      |   RIGHT 480x272 DISPLAY   |     |
| |  (Scope / Matrix / EQ /   |      |  (Macros / Step Detail /  |     |
| |   Faders 1-4 / Take Reel) |      |   Faders 5-8 / Snapshots) |     |
| +---------------------------+      +---------------------------+     |
|  (E1) (E2) (E3) (E4)                (E5) (E6) (E7) (E8)   [METERS]   |
|                                                           [LEVEL ]   |
|  [GROUPS A..H]     +-------------------------+            ( JOG  )   |
|  [EDIT 2x4   ]     |  13  14  15  16  (Top)  |            [30-LED]   |
|  [TRANSPORT  ]     |   9  10  11  12         |            [FUNC  ]   |
|   PLAY/REC/        |   5   6   7   8         |            [ENTER ]   |
|   RESTART/SHIFT    |   1   2   3   4  (Bot)  |                       |
+----------------------------------------------------------------------+
  Frame Tally:
  [DRUM STUDIO]        -> Slate / Archetype Accent | REC = [PAT OVR]
  [CONSOLE DAW REMOTE] -> 4px Burgundy (#962836)   | REC = [TAKE REC]
  [STAGEBOX PREAMPS]   -> 4px Copper   (#C85A32)   | F1-F8 = 0.6s +48V

2.8.2 Standalone Helper Distribution & Operating System Setup#

Cave Recorder communicates with the USB controller through a lightweight standalone helper (extras/encdr-daemon/encdr-daemon) packaged alongside the direct desktop release outside Cave Recorder.app/Contents/. Cave Recorder launches and supervises this helper automatically on startup (or you can point the CAVEREC_ENCDR_DAEMON_BIN environment variable to a custom build). Pad strikes, rotary encoder turns, LED feedback, and dual-screen 480×272 display frames stream across a non-blocking real-time controller transport so sustained live performance never stalls the audio engine or the 60 Hz console display.

sudo cp extras/encdr-daemon/60-encdr-maschine.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger

2.8.3 Reading the Top Deck ● CONTROLLER Status Indicator#

Row 2 of the Top Deck displays a dedicated hardware surface indicator pill (● CONTROLLER):