Re: Development of Rubato User Tool
Reply #3 –
I guess the code delver would be me.
The heart of the script is in lines 54-67, the playOne script--it returns a number from a gaussian distribution (bell shaped curve). Mostly the numbers it returns will be near 1; numbers higher or lower than 1 are less likely; and the further from 1 numbers are rare. The script prompts for a percentage with a default of 10. A small percentage creates a thin bell and most generated tempi will be near the base while a large percentage will create a wide bell with generated tempos all over the place.
For reference: Gaussian Distribution
There is a bug in line 119 after looking for !NoteWorthyComposerClip-End
{ EndProc = i - 1; break; } // Added break 2023/11/15
Please replace the existing line 119 with the above if it contains "EndProc = i - 1;".
That bug comes into play if there is only one tempo marking in the part of the staff passed to the script.
This was the file created, look for "|Visibility:Never".
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|TimeSig|Signature:4/4
|Text|Text:"use 5 in rubato"|Font:StaffItalic|Pos:-12.5
|Tempo|Tempo:120|Pos:9.5
|Tempo|Tempo:115|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:121|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:116|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:106|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:128|Pos:8|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:128|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:116|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:117|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:125|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:126|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Text|Text:"use 50 in rubato"|Font:StaffItalic|Pos:-12.5
|Tempo|Tempo:120|Pos:9.5
|Tempo|Tempo:122|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:93|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:4|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:218|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:124|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:210|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:9|Pos:8|Visibility:Never
|TempoVariance|Style:Accelerando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:188|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Tempo|Tempo:180|Pos:8|Visibility:Never
|TempoVariance|Style:Ritardando|Pos:-7|Visibility:Never
|Rest|Dur:Whole
|Bar
|Rest|Dur:Whole
!NoteWorthyComposerClip-End
I'll try to get this updated as soon as possible and Thanks In Advance to Rick.