- Remove reference to deleted README_Shakuhachi.txt - Expand custom calligraphy symbol migration steps - Add detailed ManuScript code example for symbol mapping - Clarify fallback handling for incremental adoption - Correct line number reference (line 145, not ~145)
170 lines
6.1 KiB
Markdown
170 lines
6.1 KiB
Markdown
# Sibelius Shakuhachi Kinko Notation Plugin
|
||
|
||
Bidirectional plugins for adding shakuhachi Kinko notation to Sibelius scores.
|
||
|
||
## Features
|
||
|
||
- **Forward direction**: Convert staff notation to Kinko characters
|
||
- **Reverse direction**: Update staff notes from edited Kinko text
|
||
- **10 shakuhachi lengths**: 1.3 to 2.4 shaku (G to A)
|
||
- **Extended symbols**: chu meri (中), dai meri (大), alternative fingerings
|
||
- **Unicode text**: Works immediately with system Japanese fonts
|
||
- **Bidirectional editing**: Manual text editing with reverse synchronization
|
||
- **Extensible architecture**: Migrate to custom calligraphy symbols
|
||
|
||
## Installation
|
||
|
||
1. Copy `ShakuhachiKinko.plg` and `ShakuhachiKinkoReverse.plg` to your Sibelius plugins folder:
|
||
- **Windows**: `C:\Users\[username]\AppData\Roaming\Avid\Sibelius\Plugins`
|
||
- **macOS**: `~/Library/Application Support/Avid/Sibelius/Plugins`
|
||
2. Restart Sibelius or run **Plug-ins > Rescan Plug-ins**
|
||
|
||
## Usage
|
||
|
||
### Forward (Staff → Kinko)
|
||
|
||
1. Select measures containing notes
|
||
2. Run **Plug-ins > Text > Add Shakuhachi Kinko Notation**
|
||
3. Choose shakuhachi length (default 1.8 shaku)
|
||
4. Choose position (above or below staff)
|
||
5. Click OK
|
||
|
||
### Reverse (Kinko → Staff)
|
||
|
||
1. Edit Kinko text directly in score (double-click text, type new characters)
|
||
2. Select measures containing edited Kinko text
|
||
3. Run **Plug-ins > Notes and Rests > Update Notes from Kinko**
|
||
4. Choose shakuhachi length (must match original)
|
||
5. Click OK
|
||
|
||
### Bidirectional Workflow
|
||
|
||
1. Create staff notation, run forward plugin to add Kinko text
|
||
2. Edit Kinko text directly in score (double-click, edit)
|
||
3. Select edited measures, run reverse plugin to update staff notes
|
||
4. Optionally run forward plugin again to verify synchronization
|
||
|
||
## Supported Lengths
|
||
|
||
| Shaku | Key | Semitone Offset |
|
||
|-------|-----|-----------------|
|
||
| 1.3 | G | +5 |
|
||
| 1.4 | F♯ | +4 |
|
||
| 1.5 | F | +3 |
|
||
| 1.6 | E | +2 |
|
||
| 1.8 | D | 0 (baseline) |
|
||
| 1.9 | C♯ | -1 |
|
||
| 2.0 | C | -2 |
|
||
| 2.1 | B | -3 |
|
||
| 2.3 | B♭ | -4 |
|
||
| 2.4 | A | -5 |
|
||
|
||
## Kinko Notation
|
||
|
||
### Basic Notes
|
||
- **ロ** (ro) = D4
|
||
- **ツ** (tsu) = F4
|
||
- **レ** (re) = G4
|
||
- **チ** (chi) = A4
|
||
- **リ** (ri) = C5
|
||
- **ウ** (u) = B4
|
||
|
||
### Meri Notation (Pitch Lowering)
|
||
- **中** prefix (chu meri): lowers by ~half step
|
||
- Example: **中ロ** (chu ro) = D♯ for 1.8 shaku
|
||
- **大** prefix (dai meri): lowers by ~whole step
|
||
- Example: **大ロ** (dai ro) = E for 1.8 shaku
|
||
|
||
### Extended Symbols
|
||
- **ウ₃** (san no u): alternative fingering for B (same pitch as ウ)
|
||
- **カ** (kari): raises pitch, rarely used in traditional scores
|
||
- Ornaments (ori, suri, atari, keshi): phrase-ending techniques, add manually
|
||
|
||
### Valid Range
|
||
- MIDI 62–86 (D4–D6, three octaves)
|
||
- Notes outside range are skipped
|
||
- Chords: notation added to top note only
|
||
|
||
## Adding Subscripts
|
||
|
||
To add Unicode subscript 3 for san no u:
|
||
- **Windows**: Type u followed by Alt+2083
|
||
- **macOS**: Character Viewer > search "subscript 3"
|
||
- **Copy/paste**: ₃ (Unicode U+2083)
|
||
|
||
The reverse plugin normalizes subscripts (strips them) before pitch lookup.
|
||
|
||
## Troubleshooting
|
||
|
||
- **"No notes in shakuhachi range found"**: All selected notes are outside D4–D6 range
|
||
- **Japanese characters not displaying**: Install system Japanese font support
|
||
- Windows: MS Mincho, MS Gothic, or Yu Mincho
|
||
- macOS: Hiragino Kaku Gothic (included by default)
|
||
- Linux: Install `fonts-noto-cjk` or equivalent
|
||
- **Tied notes showing duplicate notation**: Enable "Update existing notation" checkbox
|
||
- **Octave ambiguity in reverse**: Duplicate characters (ロツレチリウ appear in multiple octaves) default to first octave; manually adjust pitch if needed
|
||
|
||
## Future Enhancement: Custom Calligraphy Symbols
|
||
|
||
The plugin architecture supports migration from Unicode text to custom calligraphy symbols:
|
||
|
||
### Migration Steps
|
||
|
||
1. **Prepare calligraphy images**: Create SVG or PNG files for each symbol:
|
||
- `ro.svg`, `tsu.svg`, `re.svg`, `chi.svg`, `ri.svg`, `u.svg`
|
||
- `chu_ro.svg`, `dai_ro.svg`, `u_san.svg`, etc.
|
||
- Ensure consistent size and baseline alignment
|
||
|
||
2. **Install as Sibelius symbols**:
|
||
- Edit > Symbols > New Symbol
|
||
- Import each image
|
||
- Name with prefix: `kinko_ro`, `kinko_tsu`, `kinko_chu_ro`, `kinko_u_san`, etc.
|
||
|
||
3. **Modify forward plugin** (line 145):
|
||
- Replace: `text = bar.AddText(position, kinkoChar, "Technique");`
|
||
- With: `text = bar.AddSymbol(position, GetSymbolName(kinkoChar));`
|
||
- Add symbol name mapping function:
|
||
```manuscript
|
||
GetSymbolName "(kinkoChar) {
|
||
if (kinkoChar = "ロ") { return "kinko_ro"; }
|
||
if (kinkoChar = "中ロ") { return "kinko_chu_ro"; }
|
||
if (kinkoChar = "大ロ") { return "kinko_dai_ro"; }
|
||
if (kinkoChar = "ツ") { return "kinko_tsu"; }
|
||
// ... etc for all characters
|
||
}"
|
||
```
|
||
|
||
4. **Modify reverse plugin**:
|
||
- Change iteration from Text objects to SymbolItem objects
|
||
- Reverse lookup: symbol name → Kinko character → pitch
|
||
- Add fallback: check `Sibelius.SymbolExists(symbolName)` before AddSymbol
|
||
|
||
5. **Fallback handling**:
|
||
- If symbol not installed, fall back to Unicode text with user warning
|
||
- Allows incremental adoption without breaking existing functionality
|
||
|
||
### Reference Implementation
|
||
|
||
[shakuhachi-ro](https://github.com/chrisrauh/shakuhachi-ro) - SVG-based rendering with similar modifier/note separation architecture
|
||
|
||
## Requirements
|
||
|
||
- Sibelius Ultimate (version 7+) with ManuScript support
|
||
- Not compatible with Sibelius First or Student editions
|
||
|
||
## Technical Details
|
||
|
||
- **Architecture**: On-demand synchronization via explicit plugin execution
|
||
- **Synchronization**: Position-based object lookup (Text.Position = NoteRest.Position)
|
||
- **Text style**: Uses built-in "Technique" style
|
||
- **Transposition**: Baseline 1.8 shaku (D), all other lengths offset accordingly
|
||
- **Normalization**: Unicode subscript stripping for robust reverse lookup
|
||
|
||
## License
|
||
|
||
This plugin is provided as-is for shakuhachi notation purposes. No warranty expressed or implied.
|
||
|
||
## Version
|
||
|
||
1.0 - Initial release with bidirectional Unicode text notation
|