• SONAR
  • Deprecated: "UNDUPE.CAL" Bug: I created a revised version
2018/08/28 22:06:24
rogeriodec

This script becomes deprecated from the improved "CleanTrack.cal" script developed by sping


I noticed that the UNDUPE.CAL script has a lot of logic faults, where it does not correctly eliminate duplicate notes.
To confirm this, download this MIDI file, open it with Sonar, activate the Event List (Alt + 8), select the entire track and run UNDUPE.CAL (Ctrl + F1).
You will see that some duplicate notes still remain.
 
In this way, I created a revised version.
 
You can download the script at Github.
 
2018/08/29 13:52:02
bitflipper
Thanks for sharing!
 
An excellent example of how even very simple programs can harbor elusive logical errors that are obscured by the fact that they work most of the time but not in every scenario. 
2018/08/29 14:50:38
bitman
Thank you.
 
Are you implying that undupe2.cal does indeed work as expected?
2018/08/29 15:03:17
fresh101
Thanks
2018/08/29 15:31:32
rogeriodec
bitman
Thank you.
 
Are you implying that undupe2.cal does indeed work as expected?


I think so. 


You can download the midi file and make a test.
2018/08/29 22:50:16
bitflipper
I haven't tested it yet, but the change Rogerio made was completely logical and I can't think of any scenario under which it wouldn't work. (Of course, the original script author would have said the same thing :)
2018/08/30 13:10:20
Wookiee
Thank you Rogerio, I give this test at some point but I appreciate your efforts as I have notice that the current undupe.cal does have a habit of missing some duplicate events..
2018/08/30 18:58:01
chris.r
Thanks for keeping CAL alive, Rogerio :)
2018/08/30 19:20:55
ZincTrumpet
Thanks Rogerio! I still use CAL quite often so a bug free version of undupe will come in very handy.
2018/09/01 14:45:14
Rbh
I really appreciate your interest and willingness to update CAL routines. I use them  when dealing with the occasional public downloaded midi files that are quantized and velocity compressed to smitherines. They get me going in the right direction to undo a lot of crappy midi programming.
© 2025 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account