• SONAR
  • Remove duplicate MIDI notes? (p.2)
2006/10/14 10:24:18
Jaybee
Thanks.
2006/10/14 10:30:56
Jaybee

ORIGINAL: bluzgtr

I have a MIDI track that, for some unknown reason, has a lot of duplicate notes. Is there any way to filter these out, or do I have to go through and manually delete every one?

Thanks for your time.

Larry


Under the Process menu, Run Cal and select Undupe. This is included with S6. HTH
2012/01/05 18:07:27
g_randybrown
When I try to run undupe I get a dialogue "windows for time identity"....what does this mean?
Whether I leave it at the default of 0 or enter 100 I get "deleted 0 duplicate events".
I know I have hundreds of duplicated events in the track...what am I missing here?
Thanks very much,
Randy


2016/07/05 21:08:43
rogeriodec
g_randybrown
When I try to run undupe I get a dialogue "windows for time identity"....what does this mean?
Whether I leave it at the default of 0 or enter 100 I get "deleted 0 duplicate events".
I know I have hundreds of duplicated events in the track...what am I missing here?
Thanks very much,
Randy

+1
Anyone?
2016/07/06 04:56:41
jpetersen
It identifies the span of time that defines a duplicated note.
So if two notes are very close to each other, are they to be handled as duplicates?
 
But having said that, I have never managed to get the dupe cal script to work.
Others have had more success, I followed the steps they mentioned, no luck.
 
2016/07/06 06:42:37
tenfoot
I too have had mixed success with undupe.  It seems to work well when the duplicated notes are identical in length etc. If you have notes triggering at the same time but different lengths or velocities, results seem to be less predictable.
 
A remove duplicates with a few options like ignore note length and velocities would be a great new feature for splat.
2016/07/06 07:01:17
Bristol_Jonesey
I also have had mixed luck with UNDUPE.
 
What I've done in the past is to open the track with the duplicates in Staff View.
Any duplicated notes are clearly visible as they will be on both sides of the stalk.
 
It's then a question of identifying them and deleting them. One word of caution, if you do decide to pursue this, when you delete a duplicated it initially removes both notes, but a quick Undo (ctrl + z) will restore just ONE of the notes to it's previous position, which is exactly what you want.
 
It's a very long winded workaround but also guaranteed to work.
2016/07/06 09:40:29
rogeriodec
It's a shame that after so many years Cakewalk continue providing the same scripts that do not work ...
It makes me want to learn the CAL language to do something more decent ...
2016/07/06 14:28:14
rogeriodec
Well, I spent a few hours studying the rare and still existing materials about CAL scripts on the web.
I did some tests and I discovered the cause of UNDUPE.CAL (and other scripts) do not work:
This is a bug in CAL language.
Basically events (notes, controls, etc.) should be read sequentially (by commands like forEachEvent), ie, the events should be read in chronological order.
However, events are read from a TOTALLY RANDOM way.
Thus, it is IMPOSSIBLE to compare a previous note with a later note, because the script simply NOT BRING EVENTS IN CHRONOLOGICAL ORDER.
Certainly these old scripts worked in some older version of Sonar, but after that CAL was abandoned, Cakewalk still managed to spoil it.
As I said, it's a shame Cakewalk still provide CAL if it is no longer supported. Or they correct the CAL or remove it once and for all.

2016/07/06 18:37:31
tparker24
As I recall, the problem occurs if processing multiple clips at one time.  If you work on a single clip, all is well.  So, you'll need to bounce multiple clips into a single clip (or process the clips one at a time).  

I'm not 100% positive on this, but at least, it's something to try.


© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account