 values.gateLength,  // gate length
                    values.octave * 12  // transpose (convert octaves to semitones)
                );
                
                // Add line to project data with instrument context
                projectData.addLine(values.pattern, instrumentContext);
                
                // Add to currentLines immediately
                currentLines.push({
                    type: { id: lineId, name: getInstrumentName(lineId) },
                    line: projectData