Re: Nwctxt webpages to work on dynamics and tempo
Reply #1 –
Nice code. Easy to follow.
A few problems with the tempo page:
- When I click on "Submit Factor", sometimes it triggers the conversion for both mouse down and mouse up.
- It doesn't work for any 'Base:' other than the default 'Base:Quarter'.
- The result needs to be limited to a range of 4 - 32767. If not, NWC2 will not paste, export and/or save it correctly.
- All MPC's get modified, not just 'Controller:tempo'
I have written a similar User Tool. I never published it because its use requires too many caveats. If the resulting tempo falls outside the range of 4 - 32767, it is not reversible. If there is no tempo at the beginning of the input, it is difficult to know what the starting tempo is.
My regular expression for extracting the 'Controller Value(s):' from MPC's is this returns an array which I can simply iterate and not have to fool with indexes. I'm in a different language, so YMMV
Edit:
The tempo page doesn't respond well to:
!NoteWorthyComposerClip(2.0,Single)
|Text|Text:"\|MPC\|Pt1:0,64"|Font:StaffBold|Pos:8
|MPC|Controller:pan|Style:Absolute|TimeRes:Quarter|SweepRes:1|Pt1:0,64|Pos:8
!NoteWorthyComposerClip-End
I have found though painful experience that I need to check object types and take extra care when dealing with objects that contain quoted text.