NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: Rick G. on 2014-07-23 07:12 pm

Title: Fake Key item not provided to User Tool
Post by: Rick G. on 2014-07-23 07:12 pm
With this clip:
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.51,Single)
|Key|Signature:Bb|Tonic:F
|Note|Dur:Whole|Pos:0
|Bar
|Key|Signature:F#|Tonic:G
|Note|Dur:Whole|Pos:0
!NoteWorthyComposerClip-End
if measure 2 selected, the context provided to a User Tool is:
Quote from: STDIN (snippet)
|Context|Bar:1
IMO, it should be:
Quote
|Fake|Key|Signature:Bb|Tonic:F
|Context|Bar:1
If a Tool inserts item(s) before the bar, it may matter very much what the Key is.
The PHP library function: NWC2PlayContext() will make bad assumptions about the Key and subtle bugs may result.