Skip to content

Moar re structure#54

Open
MAMware wants to merge 12 commits intodevelopingfrom
moarReStructure
Open

Moar re structure#54
MAMware wants to merge 12 commits intodevelopingfrom
moarReStructure

Conversation

@MAMware
Copy link
Owner

@MAMware MAMware commented Dec 5, 2025

No description provided.

MAMware and others added 9 commits August 6, 2025 06:00
…proved button text updates and vibration handling
…e names and improve error handling in context and dispatcher modules
…cessing and UI responsiveness with oscillator pooling and debounced updates (GPT misaligned to the architectural paradigm so this will modified audio-processor.js)
…ic oscillator pooling and modular synthesis engines

- Implemented dynamic engine loading in playAudio function, allowing for modular synthesis engine integration.
- Replaced static oscillator management with a reusable oscillator pool to optimize resource usage.
- Updated FM synthesis and sine wave synthesis functions to utilize the new oscillator pool, improving performance and maintainability.
- Added error handling for missing synthesis engines and play functions.
- Cleaned up oscillator management in cleanupAudio function to ensure proper resource deallocation.
…activation with fade-out to prevent clicks in FM and sine wave synthesis
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR represents a major architectural restructuring aimed at improving modularity and separation of concerns. The codebase is reorganized from a flat structure into distinct functional directories (audio/, video/, core/, utils/, ui/).

Key Changes:

  • Reorganization of code into domain-specific directories (audio, video, core, ui, utils)
  • Introduction of a centralized constants module for shared configuration
  • Enhanced logging with IndexedDB persistence and safe circular reference handling
  • New async utilities for error boundaries and throttling
  • Refactored event dispatcher with improved event handling

Reviewed changes

Copilot reviewed 27 out of 31 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
package.json Removed - likely consolidated elsewhere or no longer needed
future/web/video/video-capture.js New module for video stream setup and cleanup
future/web/video/grids/* Grid mapping modules moved and updated with configurable thresholds
future/web/video/frame-processor.js Core frame processing logic with enhanced error handling
future/web/utils/* Utility modules for async operations, logging, and translations
future/web/ui/* UI-related modules with refactored event handling
future/web/core/* Core application logic including dispatcher, state, and constants
future/web/audio/* Audio processing modules with improved pooling
future/web/test/* Updated test files with new import paths
README.md Updated documentation with minor spelling corrections needed

Critical Issues Found: Multiple import path errors and missing imports that will cause runtime failures. The LOG_LEVELS constant definition is incompatible with its usage, and there are syntax errors in the dispatcher module that need immediate attention before this PR can be merged.

Comments suppressed due to low confidence (3)

future/web/audio/audio-processor.js:92

  • Incorrect import path. The code imports from ../synths/${engine.id}.js but the actual directory structure shows the synths are in ./audio/synths/. This will cause a module not found error at runtime.
    future/web/state.js:2
  • Unused import addIdbLog.
    future/web/state.js:5
  • Unused variable originalConsole.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,31 @@

Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing imports for audioContext, oscillatorPool, modulators, and getOscillator. These variables and functions are referenced but not imported, which will cause ReferenceErrors at runtime.

Copilot uses AI. Check for mistakes.
MAMware and others added 3 commits December 5, 2025 14:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Owner Author

@MAMware MAMware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant