  track.instrument.number = INSTRUMENT_PROGRAMS[type.id] || 0;
            
            // Get notes with absolute timing
            const notes = line.generateNotes(0);
            
            // Add notes to track
            notes.forEach(note => {
                track.addNote({
                    midi: note.getMidiNoteValue(),
                    time: (note.getStartTime() / currentTimeManipulator.ppq) * secondsPerBeat,
                    duration: (note.getLength() / currentTimeManipulator.ppq) * 