HYDRA SANITY (v7.67 THE APEX ENGINE)
Safe MIDI Routing + PAD Bridge | Hybrid Intent Execution | Absolute Math
0. SYSTEM PHILOSOPHY & PURPOSE
HYDRA SANITY is not a simple automation recorder. It is a deterministic real-time signal processor for human input.
This tool is designed to make working with GRAPH automation easier, specifically when using HYDRA. You can control multiple MIDI coders at once and your graphs are written safely and cleanly using extended functions for encoders, faders, and endless coders. It acts as an extended command center for recording and working with multiple HYDRA elements at the same time. Instead of simply overwriting points, the engine analyzes the signal, calculates momentum, and writes only actual value changes, keeping the curves perfectly clean and smooth.
1. INSTALLATION & QUICK START
- Installation: Simply drag and drop the downloaded
.xrnxfile anywhere into the Renoise window. The application will prompt you to install the tool. - Launch: Open the GUI via the top menu:
Tools > Zorgan > HYDRA SANITY. - Shortcuts: You can assign a global keyboard shortcut (
Preferences > Keys > Global > Hydra Sanity > Show GUI) or a MIDI trigger to instantly toggle the tool window. - Auto-Start: The monitoring engine starts automatically the moment the GUI is invoked.
2. CUSTOM MIDI MAPPING & OSC SERVER (Critical!)
Hydra Sanity uses its own dedicated MIDI mapping environment to intercept and process hardware data before it reaches the DAW sequencer.
- The Golden Rule: Do NOT rely on Renoise’s native
CTRL+MMIDI mapping for parameters controlled by Hydra Sanity. You must assign your faders and knobs ONLY via theL(Learn) buttons inside the Hydra Sanity interface. - Shared Hardware (Playing Notes + Automation): Because Hydra intercepts the selected MIDI port, Renoise normally stops receiving MIDI notes from that device.
- The OSC Solution: To use the same MIDI device for playing instruments in Renoise AND recording automation in Hydra, the tool bridges the gap using a local network connection.
- Setup: You must enable the OSC server in Renoise (
Preferences > OSC > Enable OSC Server). Ensure the port matches theOSC Portin Hydra’s GUI (default is8000).
3. GLOBAL CONTROLS & MULTI-RECORDING
The tool automatically scans your project and lists every Hydra device instance across all tracks. You can arm (REC ON) multiple Hydra devices simultaneously, allowing you to record complex multi-fader performances live.
Global Interface
- MIDI Port / OSC Port: Select your hardware controller and the internal OSC routing port.
- START / STOP ENGINE: The main power switch. If it is not glowing red, the engine ignores MIDI input.
- RESCAN: Click this to update the list if you add or remove a Hydra device in your project.
- MIDI ENC / MIDI DEC: Enables Absolute Encoder Sync (MIDI Feedback) for motorized faders and endless encoders with LED rings to sync their physical position with the DAW.
- RESET ALL CC: A global safety override. Safely unmaps every single CC routing in the tool to prevent hardware configuration collisions.
- SMOOTH PULL: Adjusts the inertia/elasticity of the curve when returning to its baseline state (the “ironing” strength).
Seamless Transport Modes
Switch between these modes on the fly during live playback without audio dropouts:
- REC PLAY NOTE & Automation: Toggles native Renoise Edit Mode and playback to record both notes and curves.
- REC PLAY Automation: Starts playback but explicitly disables Edit Mode. This safety feature ensures you only write automation without accidentally overwriting pattern notes.
- PLAY / PAUSE (Safe Listen): Temporarily disables all active Hydra REC states. Safely preview your track; once paused, your previously armed recording states are instantly restored.
- FOLLOW ON / OFF: A bi-directional toggle for Renoise’s native “Follow Song Position”.
Per-Device Controls
- REC ON/OFF: Arms the specific Hydra for recording.
- Learn Buttons (W / L): Click
Lto arm (turns into a redW), then move your hardware controller to map it. You can map three distinct actions per track:- REC CC: Toggles REC ON/OFF remotely.
- LATCH CC: Activates LATCH mode remotely.
- Encoder CC: The main fader/knob used to draw the graph.
- LATCH: When the fader is released, the curve does not snap back but retains its trajectory, freezing on the spot (Hold) or creating a smooth fade into future points.
- ◄◄◄ (Focus): Instantly jumps the Renoise lower frame to the automation lane of this specific Hydra.
(Return): Instantly restores your previous track/device selection after editing.
4. THE SIGNAL SYNTHESIS ENGINE (Under the Hood)
- Sparse Automation Engine: Writes points only when a real value or directional change occurs. The result is a minimal point count and massive performance savings.
- IRON Mode (Smoothing): An intelligent mode that, when
REC ONis active but the fader is untouched, gently “irons” the existing automation, creating cleaner, more musical curves without manual rewriting. - Smart Mute/Solo Protection (New in v7.67): The engine natively observes Track and Group Mute/Solo states. If you mute a track with a Hydra, the engine automatically drops its
REC ONstate to prevent invisible background overwrites, and intelligently restores it when unmuted. - Quadratic Bezier Smoothing: Provides organic, fluid automation curves that respect motion momentum instead of harsh linear extrapolation.
- Project State Saving: No external config files. All active ports, armed REC states, and CC mappings are safely saved directly inside your
.xrnssong file.
5. THE ZORGAN ECOSYSTEM
Hydra Sanity is designed to work perfectly in tandem with the MIDI PADS to Controll Tracks tool.
Clicking the PADs tool button in the main GUI instantly launches this sister tool. Together, they utilize an invisible, lightning-fast IPC Event Bus that ensures instantaneous state synchronization (Track Select, Mute, Solo) between both tools without freezing the GUI or losing data. This synergy creates the ultimate hands-free live electronic music production environment.
📜 6. COMPLETE CHANGELOG
6. COMPLETE CHANGELOG
HYDRA SANITY v7.67 THE APEX ENGINE - IPC EVENT BUS & MUTE MEMORY
(Changelog v7.65 ➔ v7.67)
- Ecosystem (IPC Event Bus): Engineered a robust, real-time Inter-Process Communication (IPC) bridge between Hydra Sanity and the MIDI PADs to Controll Tracks tool using a non-destructive
renoise.song().tool_dataduplex channel. This allows instant, bidirectional synchronization for track selection, focus, and arm states. - Logic (Smart Mute/Solo Protection): The engine now natively observes Track and Group Parent Mute/Solo states. When a track is muted or out-soloed, Hydra dynamically disarms its active recording state to prevent accidental invisible automation writes, safely storing the original intent in memory. Upon unmuting, the previous active state is intelligently restored.
- Architecture (Performance Throttling): Deprecated the unstable
tool_data_observablein favor of a highly optimized, 20Hz throttled event polling mechanism natively integrated into the masterapp_idle_observableloop. This prevents UI freezing, eliminates heavy string parsing overhead, and fixes API crashes on project initialization. - Architecture (Lexical Scope Hoisting Fix): Executed a massive structural refactor utilizing strict forward declarations for all core local functions (e.g.,
set_intent,check_all_mutes). This definitively eradicates elusive Lua runtime crashes caused by cyclic dependencies when the engine is triggered before the GUI is fully instanced. - Failsafe (Deterministic Parsing): Implemented an anchored greedy regex layer (
.*ZORGAN_EVT|...$) for processing incoming cross-tool events. This guarantees the engine strictly resolves the absolute latest event, explicitly ignoring malformed trailing string garbage, and future-proofs the system for potential batch-event queues. - Failsafe (MIDI Device Validation): Engineered a robust fallback validator (
get_valid_midi_device) for MIDI hardware. If a previously saved MIDI device is disconnected or unavailable upon project load, the engine intelligently falls back to a safe state (“None” or the first available port) instead of throwing missing port errors, ensuring seamless cross-studio project sharing.
Older Key Updates
- v7.65 (The Great Purge): Implemented a global
RESET ALL CCsafety override button to instantly wipe the entire tool’s MIDI CC routing map during hardware collisions. Purged memory leaks from dead “Hold” phases. - v7.64 (Zombie State Purge): Fixed an issue where unexpectedly toggling off recording mid-fader movement trapped the engine in a visual/data loop. The engine now guarantees a pristine reset to the neutral IRON mode.
- v7.63 (Clean Start): Solved initialization anomalies. The tool now guarantees all parameters boot with a clean slate independently of the last saved wild performance.
- v7.62 (Hybrid Intent): Integrated “Race Condition” protection (thread collision safeguards) and advanced visual GUI indications (dynamic color changes for LATCH and REC states).












