.setChordDuration(beatsPerChord)
            .setBPM(bpm);

        // Update all lines
        currentLines = [];
        Object.entries(currentConfig.lines).forEach(([lineId, settings], index) => {
            const values = getLineValues(lineId);
            if (values.active) {
                // Create MidiInstrumentContext for this line
                const instrumentContext = new MidiInstrumentContext(
                    index,  // channel
                    100,    // velocity
                   