Chordlock

🎡 Chordlock v2.0

Revolutionary MIDI chord detection engine with key-context awareness

Chordlock provides intelligent chord detection that considers musical key context for accurate harmonic analysis. Unlike traditional systems, it understands that the same notes can represent different chords depending on the musical context.

✨ Key Innovation

# Same notes, different interpretations based on key
./build/chordlock -N 52,60,64,67,74 -k C   # β†’ C/E [I] in C major
./build/chordlock -N 52,60,64,67,74 -k Em  # β†’ Em7(addβ™­6) [i7] in E minor

πŸš€ Quick Start

# Install
git clone https://github.com/kurogedelic/Chordlock.git
cd Chordlock && make build

# Use CLI
./build/chordlock -N 60,64,67 -k C         # Detect chord with key context
./build/chordlock -d "V7" -k C             # Generate V7 chord in C major
./build/chordlock -c "Cmaj7"               # Convert chord name to MIDI notes

πŸ“š Documentation & Demos

πŸ“– Full Documentation

🎹 Interactive Web Applications:

🎯 Core Features

πŸ—οΈ Architecture

src/          # Core C++ engine
build/        # CLI application  
web_app/      # Interactive demos
chordlock-mcp/ # AI integration
docs/         # Documentation site
benchmark/    # Performance testing suite

⚑ Performance

Chordlock v2.0 delivers exceptional performance with comprehensive benchmarking:

πŸš€ Key Metrics:

πŸ“Š Benchmark Coverage:

πŸ“ˆ Performance Breakdown: | Operation Type | Time Range | Quality | |β€”β€”β€”β€”β€”-|β€”β€”β€”β€”|β€”β€”β€”| | Basic chord detection | 2-4ms | Excellent | | Complex jazz chords | 3-5ms | Very Good | | Key context analysis | 3-4ms | Excellent | | Degree analysis | 3-6ms | Very Good |

πŸ”§ Run Benchmarks:

# Quick performance test
python3 benchmark/quick_test.py

# Full benchmark suite  
python3 benchmark/benchmark.py

# Compare results
python3 benchmark/compare_results.py before.json after.json

See benchmark/README.md for detailed performance analysis.

πŸ€– AI Integration

Works with Claude via Model Context Protocol:

npm install -g @kurogedelic/chordlock-mcp

Ask Claude: β€œGenerate a jazz ii-V-I progression in Bb major”

πŸ“„ License

MIT License - see LICENSE for details.

Β© 2024-2025 Leo Kuroshita (@kurogedelic)