Helpful ReplyDeprecated: "UNDUPE.CAL" Bug: I created a revised version

Author
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
2018/08/28 22:06:24 (permalink)

Deprecated: "UNDUPE.CAL" Bug: I created a revised version

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.
 
post edited by rogeriodec - 2018/09/10 16:29:07

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#1
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/29 13:52:02 (permalink) ☄ Helpfulby rogeriodec 2018/08/29 14:48:36
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. 


All else is in doubt, so this is the truth I cling to. 

My Stuff
#2
bitman
Max Output Level: -34 dBFS
  • Total Posts : 4105
  • Joined: 2003/11/06 14:11:54
  • Location: Keystone Colorado
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/29 14:50:38 (permalink)
Thank you.
 
Are you implying that undupe2.cal does indeed work as expected?
#3
fresh101
Max Output Level: -75 dBFS
  • Total Posts : 772
  • Joined: 2004/01/12 15:15:59
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/29 15:03:17 (permalink)
Thanks
#4
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/29 15:31:32 (permalink)
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.

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#5
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/29 22:50:16 (permalink) ☄ Helpfulby rogeriodec 2018/08/29 23:13:51
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 :)


All else is in doubt, so this is the truth I cling to. 

My Stuff
#6
Wookiee
Rrrrugh arah-ah-woof?
  • Total Posts : 13306
  • Joined: 2007/01/16 06:19:43
  • Location: Akahaocwora - Village Yoh Kay
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/30 13:10:20 (permalink) ☄ Helpfulby rogeriodec 2018/08/30 16:14:52
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..

Life is not about waiting for the storm to pass, it's about learning to dance in the rain.
Karma has a way of finding its own way home.
Primary, i7 8700K 16Gigs Ram, 3x500gb SSD's 2TB Backup HHD Saffire Pro 40. Win 10 64Bit
Secondary  i7 4790K, 32GB Ram, 500Gb SSD OS/Prog's, 1TB Audio, 1TB Samples HHD AudioBox USB, Win 10 64Bit
CbB, Adam's A7x's - Event 20/20's, Arturia V6, Korg Digital Legacy, Softube Modular, Arturia Keylab-88, USB-MidiSport 8x8 
#7
chris.r
Max Output Level: -86 dBFS
  • Total Posts : 206
  • Joined: 2014/12/20 20:18:15
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/30 18:58:01 (permalink)
Thanks for keeping CAL alive, Rogerio :)
#8
ZincTrumpet
Max Output Level: -73 dBFS
  • Total Posts : 891
  • Joined: 2014/12/02 13:30:11
  • Location: UK
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/08/30 19:20:55 (permalink)
Thanks Rogerio! I still use CAL quite often so a bug free version of undupe will come in very handy.

ZincT

Cakewalk by BandLab 2018.11 Bld 31, Windows 10 Home 1803, Intel Core i5 3570K 3.40 GHz, Gigabyte Z77 HD3 mobo, 16 GB RAM, Nvidia GTX 750 Ti Fanless, Steinberg UR242 Audio Interface (F/W 1.01), Yamaha Steinberg USB Driver 1.10.3
Latest music: Click Here
#9
Rbh
Max Output Level: -52 dBFS
  • Total Posts : 2349
  • Joined: 2007/09/05 22:33:44
  • Location: Indiana
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/01 14:45:14 (permalink)
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.

I7 930 2.8 Asus PDX58D
12 Gig
Appollo
CbB, Sonar Pro, Reaper, Samplitude, MixBuss
 Win7 Pro

http://www.soundclick.com/bands/default.cfm?bandID=902832
#10
BRainbow
Max Output Level: -83 dBFS
  • Total Posts : 399
  • Joined: 2004/03/14 01:39:12
  • Location: Honolulu, Hawai'i
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/02 08:22:04 (permalink)
Undupe is my most most used used CAL.  Thanks for making it work better better.

Cakewalk (forever), Two WIN10 64-bit DAWs: home-brew ASRock x299 Taichi / i7 7820x w/ 64GB RAM and ASUS X99A-II / i7-5820K w/ 32GB RAM, ZOOM UAC 8, Mackie ONYX 1640i FW Mixer/Interface, Mackie ONYX 1200F, Avalon U5 PreAmp, NI Komplete 11 Ultimate, EastWest Composer CloudX, Yamaha MOTIF XS8, Ensoniq SD-1 and ESQ-1, Korg M1rEX, Yamaha TX-81Z, Roland D110, Line6 HELIX Rack and Native, POD HD-Pro, POD Farm 2.5, Yamaha NS-10 and Presonus Eris E8 monitors, Yamaha Disklavier Upright Piano, mics, guitars, basses, and the cutest little tambourine.
#11
rcklln
Max Output Level: -82 dBFS
  • Total Posts : 421
  • Joined: 2004/07/02 13:59:32
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/02 15:31:13 (permalink)
Thank you rogeriodec for sharing
#12
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 16:02:43 (permalink)
Thank you all for the kind words. You can also get the improvement I made on LEGATO.CAL.
I'm actually getting to know CAL Scripts. It's tremendously limited, but unfortunately, it's the ONLY real option to a script within Cakewalk.
I say it's the ONLY option because either AZ Lua or other MFX scripts (eg Frank's MIDI plugins) cannot work inside a selection, ie they just work within the entire track. I have been talking about this in this post.
This greatly limits its use.
So I have dedicated a great time to learn CAL.
I am currently developing a much more powerful midi HUMANIZE (including a complex POLYNOMIAL BICUBIC INTERPOLATION algorithm for events).
As soon as I get the first version ready, I'll show you.

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#13
msmcleod
Max Output Level: -72 dBFS
  • Total Posts : 920
  • Joined: 2004/01/27 07:15:30
  • Location: Scotland
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 17:10:36 (permalink)
rogeriodec
Thank you all for the kind words. You can also get the improvement I made on LEGATO.CAL.
I'm actually getting to know CAL Scripts. It's tremendously limited, but unfortunately, it's the ONLY real option to a script within Cakewalk.
I say it's the ONLY option because either AZ Lua or other MFX scripts (eg Frank's MIDI plugins) cannot work inside a selection, ie they just work within the entire track. I have been talking about this in this post.
This greatly limits its use.
So I have dedicated a great time to learn CAL.
I am currently developing a much more powerful midi HUMANIZE (including a complex POLYNOMIAL BICUBIC INTERPOLATION algorithm for events).
As soon as I get the first version ready, I'll show you.


 Just a thought... what happens if you add AZ Lua as a clip effect? Does this still affect the entire track?

Mark McLeod
Cakewalk by BL | ASUS P8B75-V, Intel I5 3570 16GB RAM Win 10 64 + Win 7 64/32 SSD HD's, Scarlett 18i20 / 6i6 | ASUS ROG GL552VW 16GB RAM Win 10 64 SSD HD's, Scarlett 2i2 | Behringer Truth B2030A / Edirol MA-5A | Mackie MCU + C4 + XT | 2 x BCF2000, Korg NanoKontrol Studio
#14
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 17:47:09 (permalink)
msmcleod
 
Just a thought... what happens if you add AZ Lua as a clip effect? Does this still affect the entire track?




That was what I was thinking when I first read (several thread ago) something similar to
rogeriodec

I say it's the ONLY option because either AZ Lua or other MFX scripts (eg Frank's MIDI plugins) cannot work inside a selection, ie they just work within the entire track. I have been talking about this in this post.
This greatly limits its use.




I have not messed with AZ Lua until just now. It seems it can process a clip. At least it did in this simple example

Don't know Lua syntax but managed to copy an example from the AZ forum page and make a couple of trivial changes creating script to lower notes by an octave. Above it the result of selecting part of lane to create a clip, selecting AZ Lua from Process Effects > MIDI Effects, pasting my test program into the plug-in and processing the plug-in.
#15
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 18:17:03 (permalink)
scook
Don't know Lua syntax but managed to copy an example from the AZ forum page and make a couple of trivial changes creating script to lower notes by an octave. Above it the result of selecting part of lane to create a clip, selecting AZ Lua from Process Effects > MIDI Effects, pasting my test program into the plug-in and processing the plug-in.




Unbelievable! 
The AZ Lua administrator himself said it was not possible. Look: http://www.azslow.com/index.php?topic=399.new;topicseen#new
And neither did he know ...
 
Scook and Mark: you are a genius! 
 
With this approach, everything changes!

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#16
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 18:21:58 (permalink)
Yeah, I saw that thread when I was looking for the plug-in. It may not work for more complicated scripts IDK.
 
Don't want to start a language war. I am just too lazy to bother learning yet another language. If the dev had elected to use Tcl instead of Lua, I would have been glad to give the plug-in a workout. Now if AZ Tcl comes along or someone makes it worth my while to learn Lua....
#17
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 19:05:41 (permalink)
BTW Process Effects > MIDI Effects works on selected notes (notice I did not bother to load AZ Lua in the clip FX bin in the example above) and AZ Lua appears to work like any other MFX. Here is an example selecting notes and raising them an octave.

#18
jimfogle
Max Output Level: -81 dBFS
  • Total Posts : 463
  • Joined: 2007/03/14 10:08:19
  • Location: North Carolina USA
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/03 19:33:34 (permalink)
There is a message thread under the "Software" forum section titled SONAR & Cakewalk by Bandlab (CbB) Resources and Utilities.  It would be great if you posted your link there so it doesn't get lost in the shuffle of new messages.
 
http://forum.cakewalk.com...tilities-m3392713.aspx

Jim F
Cakewalk by Bandlab (CbB)
Sonar Home Studio V23.9.0 build 32
Music Creator 6
Band-in-a-Box, Audacity, ChordPulse
Win 7, i3 cpu, 8Gig ram, 480 Gig Dell Laptop
http://fogle622.wix.com/fogle622-audio-home
 
 
#19
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/04 00:55:53 (permalink)
scook
BTW Process Effects > MIDI Effects works on selected notes (notice I did not bother to load AZ Lua in the clip FX bin in the example above) and AZ Lua appears to work like any other MFX. Here is an example selecting notes and raising them an octave.





This is absolutely FANTASTIC. 
This discovery changes the whole previous paradigm, where the application of MFX would only be possible within the whole track.
Now, just by selecting notes and, in track view, right-clicking and selecting Process -> MIDI Effects, you can now apply ANY MFX to a selection.
 
Thank you very much Scook!

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#20
rogeriodec
Max Output Level: -75 dBFS
  • Total Posts : 753
  • Joined: 2004/04/09 13:55:04
  • Location: Brazil
  • Status: offline
Re: "UNDUPE.CAL" Bug: I created a revised version 2018/09/10 16:29:22 (permalink)
This script becomes deprecated from the improved "CleanTrack.cal" script developed by sping

rogeriodec.com.br


* Cakewalk By Bandlabs (always lastest versions), Window 10 x64
* Focusrite Scarlett Solo Audio Interface
* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo
* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb
* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz
* 3 LCD Monitors
* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
#21
Jump to:
© 2024 APG vNext Commercial Version 5.1