Chord Mapping
Click for details
The Chord Mapping script in this repository is a working example demonstrating:
- Chord event scraping from the Chord Track
- JSON file output using
Host.IO.createTextFile()andJSON.stringify() - Data extraction from chord events (name, type, root/bass pitches, timing)
- File I/O operations with
Host.Url()path construction
Source Code Files:
Key features:
- Processes selected chord events in EventEdit context
- Saves chord data to
Chord_Mapping.jsoninlocal://$USERCONTENT/ - Creates both JSON and text output files
- Demonstrates proper error handling for file operations
Overview
Scrapes selected chord events from the Chord Track, extracts data (name, type, root/bass pitches, timing), saves Chord_Mapping.json & Chord_Mapping_Results.txt to local://$USERCONTENT/.
Usage
- Open Chord Track in Arrangement View, select desired chords (or Edit > Select All).
- Run "Chord Mapping" from Action menu (API Tests > EventEdit).
- Check
local://$USERCONTENT/Chord_Mapping.json&Chord_Mapping_Results.txt(e.g.,~/Library/Application Support/Studio Pro/on macOS).
Tips
- Processes only selected chords (no auto-select).
- Use in EventEdit context on Chord Track.
- JSON includes: name, type, root/bass, pitches, start/end times, isLydian.