.makeLineGenerator(projectData.lines.length - 1),
                    notes: projectData.makeLineGenerator(projectData.lines.length - 1).generateNotes(0)
                });
            }
        });

        // Update previews
        updatePreviews();
        
        // Update Strudel code
        updateStrudelCode();
        
        // Log if project data has changed
        if (projectData.hasChanged()) {
            console.log("Project updated:", projectData.toString());
        }
    }

    // Modi