summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
6 daysImplement procedural audio generation, spectral effects, and WebGPU particle ↵skal
system
6 daysadd notesskal
6 daysenforce code styleskal
6 daysmore style rulesskal
6 daysadd mini_math.h header-only vector libskal
8 daysremove shader.wgslskal
8 dayssimplify shaderskal
8 daysfix the audioskal
8 daysfix the spec editor a bitskal
8 daysfeat(project-context): Document spectrogram generation moduleskal
Add details about the new spectrogram generation module (NoteParams, core functions, data flow, future work) to PROJECT_CONTEXT.md. Update Incoming tasks list to include implementing the add_note function.
8 daysfeat(gemini): Add .geminiignore fileskal
Propose and add a .geminiignore file to exclude build artifacts, dependency build outputs, archives, temporary files, and IDE configurations from Gemini's analysis and operations.
8 daysfix(editor): Correct CSS formatting issuesskal
Cleaned up CSS formatting in style.css to resolve potential parsing errors and ensure proper styling of elements, including buttons and layout.
8 daysrefactor(editor): Complete rewrite of script.js for stability and correctnessskal
Addressed all reported errors by completely restructuring script.js to ensure correct function definition order, fixing the 2x vertical scaling issue in frequency mapping, and confirming SDF logic and audio playback dependencies. - All global variables, constants, utility functions, element declarations, event listeners, and main logic functions are now correctly ordered. - and corrected to use for proper frequency mapping.
8 daysfix(editor): Resolve all scoping, ordering, and scaling issuesskal
Completely restructured script.js to guarantee correct function definition order and fixed the 2x vertical scaling issue in frequency mapping. - Moved all utility functions (audio, SDF, coordinate/frequency mapping) to be defined before their use. - Corrected and to use for accurate frequency scaling. - Ensured all button element declarations and event listeners are correctly placed at the top of the script to prevent initialization errors.
8 daysfix(editor): Final resolution of initialization and scoping errors in script.jsskal
Completely restructured script.js to place all global variables, constants, button declarations, and event listeners at the top of the file. This definitively resolves 'Uncaught ReferenceError: Cannot access ... before initialization' errors and ensures proper scoping for all functions, including .
8 daysfix(editor): Resolve button initialization errorsskal
Restructured script.js to move all button element declarations and their event listeners to the top of the script, immediately after global constants. This resolves the 'Uncaught ReferenceError: Cannot access 'button' before initialization' errors by ensuring elements are initialized before being accessed.
8 daysfeat(editor): Implement SDFs for drawing primitives and fix spectrogram clearingskal
Refactored drawing primitives in the spectrogram editor to use Signed Distance Functions (SDFs), providing smoother and more flexible shape generation. - : Now stores shape parameters in SDF-friendly world coordinates (frame and log-scaled frequency) and includes a parameter for each shape. - : Completely rewritten to utilize SDFs (, , ) for applying shape effects to the spectrogram data, including attenuation with . - Fixed an issue where the generated spectrogram was not being cleared to zero, ensuring a blank canvas for new drawings.
8 daysfix(editor): Resolve 'canvasToSpectrogramCoords is not defined' error (final ↵skal
attempt) Moved all spectrogram coordinate and frequency mapping utility functions to the top of to ensure they are defined before any other functions attempt to use them. This is a crucial scoping fix.
8 daysfix(editor): Resolve 'canvasToSpectrogramCoords is not defined' errorskal
Moved all spectrogram coordinate and frequency mapping utility functions to the top of to ensure they are defined before any other functions attempt to use them. This resolves the 'canvasToSpectrogramCoords is not defined' error caused by incorrect function scoping.
8 daysfeat(editor): Full ellipse support and minor fixesskal
This commit finalizes the ellipse drawing and application logic within the spectrogram editor. - : Implemented robust ellipse creation and with correct logarithmic frequency mapping. - Fixed several issues related to state synchronization and button management. - Minor styling and HTML updates for consistency.
8 daysfeat(editor): Implement ellipse drawing and application logicskal
Adds full support for drawing and applying ellipse shapes to the spectrogram data, correctly handling logarithmic frequency mapping. - : Refined ellipse creation to use accurate logarithmic frequency calculations for minBin and maxBin. - : Implemented the algorithm to draw an ellipse on the spectrogram data, ensuring correct placement and amplitude application. - Uses and for precise frequency mapping.
8 daysfix(editor): Resolve duplicate variable declarations in script.jsskal
Consolidated all button element declarations into a single block to prevent 'Identifier has already been declared' errors.
8 daysfeat(editor): Implement logarithmic frequency scaleskal
Enhances spectrogram visualization by mapping frequency bins to a logarithmic Y-axis, providing better perceptual uniformity. - : Renders frequency data using a logarithmic scale. - Coordinate mapping utilities (, ): Updated to support logarithmic frequency mapping. - : Shape creation now uses the logarithmic mapping for accurate placement in frequency space.
8 daysfeat(editor): Add audio playback and redo functionalityskal
Enhances the spectrogram editor with audio playback capabilities and a redo button. - : Added 'Listen Original' and 'Listen Generated' buttons, and a 'Redo' button. - : Added styling for the new buttons. - : Implemented JavaScript IDCT, Hanning window, and for audio synthesis. - Connected playback buttons to audio functionality. - Fully implemented logic.
8 daysfeat(editor): Implement drawing tools and advanced undo/redoskal
This commit significantly enhances the web spectrogram editor by implementing core drawing tools (line, ellipse, noise) and a robust undo/redo system. - and : Added redo button and styling. - : Implemented canvas event handling, dynamic shape previews, and the logic for lines and noise rectangles. - : Now reconstructs the spectrogram from a clean base, allowing proper undo/redo. - : Uses an improved color gradient for better visualization. - : Stores original spectrogram data for persistent state management.
8 daysfeat(editor): Implement basic undo/redo functionalityskal
Adds the core logic for managing an action history stack and an undo button. - Initializes undoStack, redoStack, and MAX_HISTORY_SIZE. - Implements addAction to record operations and clear redoStack. - Implements handleUndo to revert actions and manage stacks. - Adds placeholder for redrawCanvas and updateUndoRedoButtons.
8 daysdocs: Finalize project state synchronizationskal
Updates all relevant Markdown files to reflect the completed asset system and build pipeline. - Updates PROJECT_CONTEXT.md with latest architectural decisions. - Updates GEMINI.md with the full list of relevant files. - Adds initial scaffolding for the web editor. - Cleans up any lingering issues with asset generation paths.
8 dayschore(scripts): Update gen_assets.sh to include test asset generationskal
Ensures that test assets are also generated when the production pipeline is run.
8 daysfeat(editor): Scaffold web spectrogram editorskal
Initial setup for the spectrogram editor tool. - Created tools/editor/index.html, script.js, and style.css. - Added basic structure for WAV loading, visualization, and tool controls.
8 daysfeat(spectool): Optimize .spec file size by trimming trailing zerosskal
Implements logic to remove unused trailing zero frames from spectrogram data before saving, reducing file size and improving loading efficiency.
8 daysstyle updateskal
8 daysperf(synth): Optimize Hamming window generationskal
Moves the Hamming window initialization from synth_render to synth_init() to ensure it's generated only once, improving performance.
8 daysdocs(contributing): Add rule for newline at end of fileskal
Enforces a newline at the end of all source files to prevent linting errors and ensure consistent file formatting.
9 daysdocs: Synchronize project state for Asset System milestoneskal
Updates documentation and context to reflect the completed Asset Management System, production build pipeline, and visual improvements. - Updated PROJECT_CONTEXT.md with detailed architectural and build system decisions. - Added milestone summary to SESSION_NOTES.md. - Expanded GEMINI.md context file list.
9 daysupdate NOTESskal
9 daysfeat(build): Finalize production assembly pipelineskal
This commit ensures the 'final' assembly target is robust and works across all build configurations. - Updated CMakeLists.txt to always include the asset_packer tool and use generator expressions for its path. - Refactored main.cc to use the new drum assets and removed debug prints. - The 'make final' command now correctly re-generates all assets and performs binary crunching.
9 daysfix(build): Robust asset tool invocation using generator expressionsskal
Switched to using in to ensure CMake correctly resolves the tool path regardless of the build environment.
9 daysfeat(visuals): Add rotation, color shifts, and improved beat-syncskal
Implements a more dynamic and reactive visual system. - Updated synth.cc: Faster peak decay for better response. - Updated gpu.cc: Added time-based rotation and Hue shifting; implemented reactive clear-color flashes. - Updated main.cc: Corrected peak scaling (8x multiplier) and integrated time-based animation.
9 daysfeat(visuals): Enhance colors and add background flashesskal
Improves the audio-visual synchronization by increasing peak amplification and adding dynamic background flashes. - src/gpu/gpu.cc: Updated fragment shader with more vibrant hue calculation and implemented reactive clear color for flashes. - src/main.cc: Increased peak multiplier to 150x and added non-linear boost for strong peaks.
9 dayschore(assets): Clean up demo_assets.txtskal
Removed dummy and test assets from the main demo list, leaving only the required drum samples.
9 dayschore: Update .gitignore for generated assetsskal
Ignore generated C++ asset sources and spectral data files.
9 dayschore(assets): Remove obsolete assets.txtskal
This file has been replaced by 'demo_assets.txt' and 'test_assets_list.txt'.
9 daysfeat(assets): Add auto-generation comment to packer outputskal
Updates to prepend a warning comment to the generated and files, indicating they are auto-generated and should not be manually edited.
9 daysdocs: Document gen_assets.sh usageskal
Adds instructions to HOWTO.md for re-generating assets from source audio using the provided script.
9 daysfix(assets): Update gen_assets.sh pathsskal
Synchronizes scripts/gen_assets.sh with the current project structure: uses 'demo_assets.txt' and outputs to the 'src/' directory.
9 daysfeat(assets): Separate demo and test asset listsskal
Renamed demo assets to 'demo_assets.txt' and created 'test_assets_list.txt' for AssetManagerTest to prevent interference. - Updated CMakeLists.txt to generate separate headers for demo and test. - Updated test_assets.cc to conditionally include the test-specific header. - Incorporated gen_assets.sh into the 'final' target.
9 daysfeat(demo): Add drum sequence using embedded assetsskal
Incorporates kick1.spec, snare1.spec, and hihat1.spec into the demo sequence. - Updated assets.txt with new drum identifiers. - Implemented register_spec_asset helper in main.cc to load spectral data. - Added 8th-note sequencer triggering a simple drum and bass pattern.
9 daysfeat(build): Add 'final' CMake target for production assemblyskal
Introduces a 'final' target that automates the entire production pipeline: building the stripped binary, generating assets, and performing final compression (crunching). - Updated CMakeLists.txt to define the 'final' target. - Updated HOWTO.md with instructions for running 'cmake --build build --target final'.
9 daysrefactor(assets): Optimize asset retrieval using array lookupskal
This refactors the asset management system to be more efficient and cleaner. - Moved common GetAsset/DropAsset logic to src/util/asset_manager.cc. - Changed retrieval to use an array of records (AssetRecord) for O(1) lookups instead of a switch statement. - Updated asset_packer to generate only raw data and the record array.
9 daysupdate asset systemskal