• SONAR
  • Eradicating duplicated notes with different lengths
2007/01/31 09:19:34
Twigman
In the PRV I had a piece with several crotchet and quaver notes with several crotchet rests between.
I needed these stretching to at least minims but rather than pulling the end of the notes, I drew new notes over the top of the old notes.
Sometimes these new notes play and other times the old notes play.

Is there an easy way to isolate the old notes so that they can be erased as they are no longer visible in the PRV?

Thanks.

And I truly don't mind how you spell the responses.
2007/01/31 09:28:18
Keith Albright [Cakewalk]
One way, you can use the Event Viewer.

Another way staying in the PRV, select by time or lasso select and then control click to remove the visible note from selection, then delete or move first then delete.

Keith
2007/01/31 09:35:27
Twigman
Thanks

I realised I could do it in the Event Viewer but as there are a large number of notes involved I hoped there might be a more graphical solution.

I'm not sure I understand the effect of Ctrl-Click in the PRV, I shall experiment futher.

2007/01/31 12:53:35
Keith Albright [Cakewalk]
Ctrl (key) + (Left Mouse Button) Click removes a selected event from the selection. Conversely, it can also add an unselected event to already selected events.

Since I am assuming the visible one is the one to keep, Ctrl+Clicking on it will unselect it and leave the invisible event still selected thereby allowing one to remove it.

Keith
2007/01/31 13:36:02
tyronehowe
Hi

Not sure if this will help but here is a link to a "Remove Duplicates CAL" programme:

ftp://ftp.cakewalk.com/pub/CAL/

2007/01/31 13:41:20
Twigman

ORIGINAL: tyronehowe

Hi

Not sure if this will help but here is a link to a "Remove Duplicates CAL" programme:

ftp://ftp.cakewalk.com/pub/CAL/





I already have that but with that I cannot tell Sonar which of the duplicates to remove
2007/01/31 13:45:00
tyronehowe
Are the old notes all the same length? or always smaller than a particular length?

If so, tell me the length and I will try to update the CAL Script.

No promises, but I'll try!
2007/01/31 18:20:32
tyronehowe
Hi Twigman

Here is the CAL program. Just copy the following into notepad and save it as whatever name you like, with a .CAL extension.

Select the part you want to check and run the CAL (Ctrl+F1). First dialog asks for the maximum distance between notes that are considered duplicates (0 is a good default meaning notes must be exactly on top of each other). Second dialog asks for the maximum size of note that will be deleted. So in you case choose a crochet size which is most likely 960 - but you cancheck this in Options/Project/Clock.

Have fun!

; DELSMALLDUPES.CAL
; Modified by Tyrone Howe (info@tyronehowemusic.com)


(do
(dword lastTime 0)
(int lastKey 0)
(int nDeleted 0)
(int timeWindow 0)
(int longestDuration 480)

(getInt timeWindow "Furthest notes can be apart but still considered duplicates (in ticks):" 0 TIMEBASE)
(++ timeWindow)
(/= timeWindow 2)

(getInt longestDuration "Longest duration for removal (in ticks):" 480 3840)
)


(do
(if (== Event.Kind NOTE)
(if (== lastKey Note.Key)
(do
(if (&& (>= Event.Time (- lastTime timeWindow)) (<= Event.Time (+ lastTime timeWindow)))
(if (&& (== Note.Key lastKey) (<= Note.Dur longestDuration ))
(do
(delete)
(++ nDeleted)
)
NIL
)
NIL
)
NIL
)
(= lastKey Note.Key)
) NIL
)
(= lastTime Event.Time)
)

(do
(pause "Deleted " nDeleted " duplicate events.")
)

hmmmm - posting here seems to eliminate all the TABs - I'll PM you the file as well.
2007/02/01 03:31:48
Twigman
thanks I'll give it a try
2012/09/23 04:30:57
g_man_7489
hi guys, I hope u guys help me for this proplems. How to remove them easily? I heard that using CAL to solve the problem. I used UNDUPE.CAL but it cannot remove Hyphens. I have to remove one by one :( There are some problems: duplicate notes --> hyphen sentences; note hide below note (when open the PRV, u'll see Duration is "0" or "1")  I attached two file, check them, thanks a lot!! 

http://www.mediafire.com/?1y8ma1kk9rpe9a7   (duplicate notes --> hyphen sentences
http://www.mediafire.com/?wiqrc8dn9xubwgg   (note hide below note) 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account