Commit Graph

648 Commits

Author SHA1 Message Date
Skyler Lehmkuhl e97dc5695f draw midi input indicator 2025-11-06 09:12:48 -05:00
Skyler Lehmkuhl 5320e14745 midi hotplug 2025-11-03 09:48:38 -05:00
Skyler Lehmkuhl 06314dbf57 Add MIDI input 2025-11-03 06:16:17 -05:00
Skyler Lehmkuhl f6a91abccd shift virtual keyboard 2025-11-03 05:08:34 -05:00
Skyler Lehmkuhl 3b0e5b7ada fix save/load bugs 2025-11-03 04:38:31 -05:00
Skyler Lehmkuhl 1ee86af94d File save/load for audio projects 2025-11-03 02:46:43 -05:00
Skyler Lehmkuhl 9702a501bd add BPM detection 2025-11-02 09:53:34 -05:00
Skyler Lehmkuhl 66c4746767 use nodes for audio tracks 2025-11-02 06:33:10 -05:00
Skyler Lehmkuhl 988bbfd1a9 Add automation and drag nodes into connections in the graph 2025-11-02 01:27:22 -05:00
Skyler Lehmkuhl 0ae168cbca Add bit crusher, constant, math, envelope follower, phaser, ring modulator, sample and hold, and vocoder nodes 2025-10-29 03:14:01 -04:00
Skyler Lehmkuhl dc32fc4200 MIDI recording 2025-10-29 01:50:45 -04:00
Skyler Lehmkuhl 6e7e90fe57 Lay out preset instruments better 2025-10-28 21:00:27 -04:00
Skyler Lehmkuhl d496d796dd Add CV visualizer to oscilloscope node 2025-10-28 20:19:25 -04:00
Skyler Lehmkuhl d7dc423fe3 Remove old SimpleSynth and effect system 2025-10-28 20:19:08 -04:00
Skyler Lehmkuhl 2cdde33e37 Add minimap and node search to node graph 2025-10-28 10:27:54 -04:00
Skyler Lehmkuhl a379266f99 Add undo/redo support for node graph editor 2025-10-28 09:53:57 -04:00
Skyler Lehmkuhl 9d6eaa5bba Node graph improvements and fixes 2025-10-28 08:51:53 -04:00
Skyler Lehmkuhl d2354e4864 Fix sampled instrument loading 2025-10-28 05:50:44 -04:00
Skyler Lehmkuhl e426da0f5b Update README 2025-10-28 04:19:20 -04:00
Skyler Lehmkuhl 8e6ea82f92 Load factory preset instruments 2025-10-28 04:19:05 -04:00
Skyler Lehmkuhl f1bcf16ddc Add preset instruments 2025-10-28 04:18:18 -04:00
Skyler Lehmkuhl 2e9699b524 Add sampler nodes and startup screen 2025-10-28 01:32:51 -04:00
Skyler Lehmkuhl e57ae51397 Fix preset loading, add LFO, noise, pan and splitter nodes 2025-10-25 07:29:14 -04:00
Skyler Lehmkuhl 139946fb75 Add presets and make graph follow selected layer/track 2025-10-25 05:31:18 -04:00
Skyler Lehmkuhl 16f4a2a359 Add audio node graph editing 2025-10-25 03:29:54 -04:00
Skyler Lehmkuhl 19e99fa8bf Update piano roll icon 2025-10-24 01:37:21 -04:00
Skyler Lehmkuhl 6b8679fa87 fix pane split/join menu 2025-10-24 00:28:24 -04:00
Skyler Lehmkuhl 4b1d9dc851 Fix UI selection when dragging pane borders 2025-10-23 23:25:22 -04:00
Skyler Lehmkuhl 976b41cb83 Add piano roll track editing 2025-10-23 23:10:56 -04:00
Skyler Lehmkuhl 3de1b05fb3 Add custom layouts, piano pane, midi file import 2025-10-23 21:15:17 -04:00
Skyler Lehmkuhl c46c28c9bb Add timestamp window 2025-10-23 06:21:02 -04:00
Skyler Lehmkuhl 9649fe173b Rename views to keyframe, curve and segment and update defaults 2025-10-23 05:38:10 -04:00
Skyler Lehmkuhl 5e1a30d812 add timeline markings 2025-10-23 05:00:13 -04:00
Skyler Lehmkuhl 8be10b8213 send playback events from backend to use as time reference 2025-10-23 04:30:52 -04:00
Skyler Lehmkuhl d2fa167179 use tauri events instead of polling to fix race condition in recording stop 2025-10-23 03:59:01 -04:00
Skyler Lehmkuhl 20c3b820a3 Record audio tracks 2025-10-23 01:08:45 -04:00
Skyler Lehmkuhl 48ec738027 add recording and reset function 2025-10-22 20:06:02 -04:00
Skyler Lehmkuhl 9699e1e1ea Migrate from frame-centric to AnimationData system
Replaces legacy Frame-based object positioning and shape management with
AnimationData curves throughout the codebase. This enables time-based
animation instead of discrete frame indices, providing smoother playback
and more flexible keyframe editing.

Key changes:
- Remove currentFrame getter and frame.keys lookups
- Replace setFrameNum() with setTime() for continuous time navigation
- Add Layer.addShape()/removeShape() with AnimationData integration
- Migrate actions (move, group, delete, z-order) to use animation curves
- Update keyboard shortcuts and drag operations to modify curves directly
- Leave "holes" in shapeIndex values for proper undo/redo support

Rendering now fully driven by AnimationData curves (exists, zOrder,
shapeIndex for shapes; x, y, rotation, scale for objects).
2025-10-20 01:56:53 -04:00
Skyler Lehmkuhl 5a72743209 UI tests 2025-10-20 00:44:47 -04:00
Skyler Lehmkuhl 97b9ff71b7 Fix curve issues 2025-10-19 18:45:17 -04:00
Skyler Lehmkuhl a8c81c8352 fix volume 2025-10-18 23:59:44 -04:00
Skyler Lehmkuhl 5e91882d01 Use buffer pool 2025-10-18 23:45:27 -04:00
Skyler Lehmkuhl d4fb8b721a better time stretching 2025-10-18 23:28:20 -04:00
Skyler Lehmkuhl f9e2d36f3a add metatracks 2025-10-18 22:56:38 -04:00
Skyler Lehmkuhl 242f494219 fix clicking 2025-10-18 21:55:28 -04:00
Skyler Lehmkuhl 7ef562917a midi import in daw backend 2025-10-18 21:46:40 -04:00
Skyler Lehmkuhl e45659ddfd Work on timeline 2025-10-18 21:32:59 -04:00
Skyler Lehmkuhl 9414bdcd74 Work on daw backend 2025-10-18 18:09:07 -04:00
Skyler Lehmkuhl 87d2036f07 Complete Phase 5: Timeline curve interaction and nested animation support
Phase 5 adds interactive curve editing, proper interpolation visualization,
and automatic segment keyframe management for nested animations.

Timeline curve interaction features:
- Add keyframe creation by clicking in expanded curve view
- Implement keyframe dragging with snapping support
- Add multi-keyframe selection (Shift/Ctrl modifiers)
- Support constrained dragging (Shift: vertical, Ctrl: horizontal)
- Add keyframe deletion via right-click context menu
- Display hover tooltips showing keyframe values
- Respect interpolation modes in curve visualization:
  * Linear: straight lines
  * Bezier: smooth curves with tangent handles
  * Step/Hold: horizontal hold then vertical jump
  * Zero: jump to zero and back

Nested animation improvements:
- Add bidirectional parent references:
  * Layer.parentObject → GraphicsObject
  * AnimationData.parentLayer → Layer
  * GraphicsObject.parentLayer → Layer
- Auto-update segment keyframes when nested animation duration changes
- Update both time and value of segment end keyframe
- Fix parameter ordering (required before optional) in constructors

Bug fixes:
- Fix nested object rendering offset (transformCanvas applied twice)
- Fix curve visualization ignoring interpolation mode
2025-10-15 19:08:59 -04:00
Skyler Lehmkuhl 1936e91327 Implement Timeline V2 Phase 2: Track hierarchy with selection and scrolling
Phase 2 Implementation:
- Added TrackHierarchy class to build and manage hierarchical track structure
- Track display with expand/collapse triangles for layers and groups
- Hierarchical indentation for visual hierarchy
- Track selection syncs with stage selection (shapes, objects, layers)
- Vertical scrolling for track area when many tracks present
- Horizontal scrolling in ruler area for timeline navigation

Timeline Integration:
- Set TimelineV2 as default timeline on app load
- Timeline automatically updates when shapes added or grouped
- Trigger timeline redraw in renderLayers() for efficient batching

Selection System:
- Clicking tracks selects corresponding objects/shapes on stage
- Selected tracks highlighted in timeline
- Updates context.selection and context.shapeselection arrays
- Stores oldselection/oldshapeselection for undo support
- Calls updateUI() and updateMenu() to sync UI state

Visual Improvements:
- Use predefined colors from styles.js (no hardcoded colors)
- Alternating track background colors for readability
- Selection highlighting with predefined highlight color
- Type indicators for tracks: [L]ayer, [G]roup, [S]hape

Mouse Interactions:
- Click ruler area to move playhead
- Click track expand/collapse triangles to show/hide children
- Click track name to select object/shape
- Scroll wheel in ruler area for horizontal timeline scroll
- Scroll wheel in track area for vertical track list scroll
- Adjusts hit testing for vertical scroll offset
2025-10-15 01:47:37 -04:00