Restored Standard Beat Tools to the working 'perfect normal sounding beat' build (inline self-contained Gradio synth with kicks/hats/bass/melody, using globals + prompt for text-to-audio). Fixed 'float no write' and scoping by avoiding complex helpers/nesting. Batch, stems, MIDI, style, seed, filter, bpm all wired. No LYGO code in this path. References the bench that worked. LYGO Protocol untouched.
Fixed 'float' object has no attribute 'write' in Standard Beat Tools: forced image_path to str early, set out_path early as str before any sf.write, removed duplicate assignment, added safeguards for audio array to never be scalar. This prevents any float being passed as file arg to sf.write in the pure Gradio factory. Benchmark preserved.
Fixed Standard Beat Tools: removed old nested function causing 'free variable out_path' and 'float no write' errors. Now uses clean top-level standard_beat_tools_generate helper. All text prompt (text-to-audio), globals, batch, exports, webcam wired correctly for pure Gradio factory. Benchmark logging preserved. LYGO untouched.
Fixed scoping error in Standard Beat Tools by using clean top-level helper. All global settings + prompt_text (text-to-audio) now properly linked and working for the pure Gradio factory. Batch, stems, midi, webcam supported. No LYGO code in default path. Based on standard Gradio templates.
Standard Beat Tools fully hooked: all global settings now control the pure Gradio synth (style, seed, filter, bpm, prompt for text-to-beats, stems, midi, batch). Webcam enabled. Batch + exports implemented using Clawhub skill patterns + internet Gradio examples. Rich BENCHMARK logging. LYGO side untouched. This is the working bench.
MAJOR: Standard Beat Tools is now 100% pure self-contained Gradio factory synthesis. No imports or calls to factory_engine, resonance_engine, or any LYGO/LDQ code in this path. Built from standard Gradio Blocks + Audio patterns (official examples style). LYGO Protocol and Creative tabs left completely untouched.
ISOLATION: Standard Beat Tools now exclusively calls FactoryResonanceEngine from the new separate factory_engine.py. LYGO Protocol and Creative untouched (per user request). Different tabs = different engines = different outputs.
Factory tune: added musical preset defaults + noise lowpass + volume boosts in Standard Beat Tools path (first build step from the new REBUILD_PLAN to fix static noise, restore historical nice music output).
HARDEN: Standard Beat Tools is now pure factory default. LDQ fully isolated via lazy imports inside use_ldq branch only. No more leakage into _synthesize_standard or sidechain path.