Re: Another flow control issue
Reply #11 –
Hmm,
some extended examples...
Basic flow exactly as in source work, ignoring several sets of master repeats along the way AFTER the DC:
!NoteWorthyComposerClip(2.0,Single)
|Clef|Type:Treble
|Key|Signature:C
|Tempo|Tempo:200|Pos:13
|TimeSig|Signature:Common
|Bar|Style:MasterRepeatOpen
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Bar
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar|Style:MasterRepeatClose
|Note|Dur:4th|Pos:4
|Note|Dur:4th|Pos:3
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Ending|Endings:1
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Flow|Style:DaCapo|Pos:7|Justify:Right|Placement:AtNextNote
|Bar|Style:Double
|Flow|Style:Segno|Pos:13
|Ending|Endings:2,D
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar|Style:Double
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Flow|Style:ToCoda|Pos:11|Justify:Right|Placement:AtNextNote
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Flow|Style:DSalCoda|Pos:11|Justify:Right|Placement:AtNextNote
|Bar|Style:Double
|Flow|Style:Coda|Pos:11
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:Whole|Pos:1
!NoteWorthyComposerClip-End
As above but using hidden master repeats to force the first and second time bars to function:
!NoteWorthyComposerClip(2.0,Single)
|Clef|Type:Treble
|Key|Signature:C
|Tempo|Tempo:200|Pos:13
|TimeSig|Signature:Common
|Bar|Style:MasterRepeatOpen
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Bar
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar|Style:MasterRepeatClose
|Bar|Style:MasterRepeatOpen|Visibility:Never
|Note|Dur:4th|Pos:4
|Note|Dur:4th|Pos:3
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Ending|Endings:1
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Flow|Style:DaCapo|Pos:7|Justify:Right|Placement:AtNextNote
|Bar|Style:MasterRepeatClose|Visibility:Never
|Bar|Style:Double
|Flow|Style:Segno|Pos:13
|Ending|Endings:2,D
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar|Style:Double
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Flow|Style:ToCoda|Pos:11|Justify:Right|Placement:AtNextNote
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Flow|Style:DSalCoda|Pos:11|Justify:Right|Placement:AtNextNote
|Bar|Style:Double
|Flow|Style:Coda|Pos:11
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:2
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:Whole|Pos:1
!NoteWorthyComposerClip-End
Please note that further into the work there are several sets of master repeats with special endings PRIOR to the coda that never execute because of the way NWC ignores master repeats once a DC or DS has been encountered unless they are in the coda...
I realise that NWC can't read minds (nods to Rick) but flow control could be a little more (or is that less?) prescriptive...
Managing loops properly when programming can be a pain (from the days when I did any kind of amateur coding at all), and what is sheet music if not a "program" for the musician, so I understand that getting this to work as an intelligent and intuitive musician would is a challenge, but I have faith in Eric - he cuts good code (witness how NWC doesn't crash).