diff --git a/components/tracks/TrackExtensions.tsx b/components/tracks/TrackExtensions.tsx index 200933a..a4a2026 100644 --- a/components/tracks/TrackExtensions.tsx +++ b/components/tracks/TrackExtensions.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; -import { Plus, ChevronDown, ChevronRight } from 'lucide-react'; +import { Plus, ChevronDown, ChevronRight, Sparkles } from 'lucide-react'; import type { Track as TrackType } from '@/types/track'; import { Button } from '@/components/ui/Button'; import { cn } from '@/lib/utils/cn'; diff --git a/components/tracks/TrackList.tsx b/components/tracks/TrackList.tsx index f655fda..8205569 100644 --- a/components/tracks/TrackList.tsx +++ b/components/tracks/TrackList.tsx @@ -412,13 +412,11 @@ export function TrackList({
{ - const newPoint = createAutomationPoint(time, value); + const newPoint = createAutomationPoint({ time, value, curve: 'linear' }); const updatedLanes = track.automation.lanes.map((l) => l.id === lane.id ? { ...l, points: [...l.points, newPoint].sort((a, b) => a.time - b.time) } @@ -461,7 +459,6 @@ export function TrackList({ automation: { ...track.automation, lanes: updatedLanes }, }); }} - onSeek={onSeek} />
))}