FREE!! Two New CAL for SONAR X1!

Author
Freddie H
Max Output Level: -39 dBFS
  • Total Posts : 3617
  • Joined: 2007/09/21 06:07:40
  • Status: offline
2012/04/25 07:25:20 (permalink)

FREE!! Two New CAL for SONAR X1!

Random Velocity CAL & Delete Double CAL for SONAR X1.
 
CAL 1 -RANDOM Velocity-
 
Make a new Notepad document. Save it (Encoding = ANSI) as "RANDOM Velocity.cal"
Copy and paste the following Code string
____________________________________
 
;;; RANDOM Velocity.CAL                                 Freddie Hogblad     2012
;;;
;;
;;                           RANDOM Velocity CAL
;;
;;     Creates variations on any musical Midi-Velcoity.
;;
;;
;; Prolog
;;
;
(do
(int max 127)
(getInt max "Enter max. velocity value:" 0 127)
(int min 0)
(getInt min "Enter min. velocity value:" 0 127)
(int ofs (random max min))
(forEachEvent
(do
(= ofs (random max min))
(if (== Event.Kind NOTE) ; Is it a NOTE
(= Note.Vel ofs))
)
)
)
;; Epilog
NIL
 
 
___________________________________________________
 
Save it!
 
*******************************
 
CAL 2 -Delete Double-
Make a new Notepad document. Save it (Encoding = ANSI) as "Delete Double.cal"
Copy and paste the following Code string
____________________________________
 
 
; Delete Double.CAL
;
; Remove duplicated Midi Events
; Made by Freddie Hogblad 2012
; prolog expression
(do
 (int  lastKind 0)
 (dword lastTime 0)
 (int  lastKey 0)
 (int  nDeleted 0)
 (int  timeWindow 0)
 (getInt timeWindow "Window for time identity:" 0 TIMEBASE)
 (++ timeWindow)
 (/= timeWindow 2)
)
; body expression - evaluated once for each selected event
(do
 (if (== lastKind Event.Kind)
  (if (== Event.Kind NOTE)
   (do
    (if (&& (>= Event.Time (- lastTime timeWindow)) (<= Event.Time (+ lastTime timeWindow)))
     (if (== Note.Key lastKey)
      (do
       (delete)
       (++ nDeleted)
      )
      NIL
     )
     NIL
    )
    (= lastKey Note.Key)
   ) ; do
   NIL
  )
  NIL
 )
 (= lastKind Event.Kind)
 (= lastTime Event.Time)
)
; epilog expression
(do
 (pause "Deleted " nDeleted " duplicate events.")
)
 
 
________________________________________________
 
Save it!
 
 
Now move the two new CAL's to the SONAR CAL-library so SONAR can find them! Hope it helps!  
 


-Highly developed spirits often encounter resistance from mediocre minds. -It really matters!
#1

6 Replies Related Threads

    The Maillard Reaction
    Max Output Level: 0 dBFS
    • Total Posts : 31918
    • Joined: 2004/07/09 20:02:20
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 07:27:43 (permalink)

    Thanks Freddie!!!


    #2
    twaddle
    Max Output Level: -55.5 dBFS
    • Total Posts : 1967
    • Joined: 2004/07/28 15:46:48
    • Location: Bristol UK
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 08:13:12 (permalink)

    Not wishing to belittle your efforts Freddie but X1 already has a CAL called "Undupe" that works perfectly well and as for the random velocities CAL this can be done using the, "real time" Midi plug in called "velocity" that does this.
    It's a great thing to be able to use it in real time and not have to commit them as midi edits too.
    Are there any advantages I'm missing in using your method?
    It looks a bit complex and protracted to me.

    Sorry just saying 

    Steve


    soundcloud  SoundClick  Myspace
    Gigabyte GA-X58A-UD3R, 
    Intel i7 930, 3.40Ghz, 
    12GB Corsair DDR3 
    1TB WD  SATA 6Gb X 2 
    Emu- 0404 PCIe 
    Sonar X1d Expanded
    BFD3 + BFD2 + BFD Eco
    Dual boot windows 7, 32 & 64bit
    #3
    Jonbouy
    Max Output Level: 0 dBFS
    • Total Posts : 22562
    • Joined: 2008/04/14 13:47:39
    • Location: England's Sunshine South Coast
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 08:20:24 (permalink)
    Thanks Freddie.

    Hey, I replaced your name with mine on the ones I saved.

    I swear they sound better as a result....

    "We can't do anything to change the world until capitalism crumbles.
    In the meantime we should all go shopping to console ourselves" - Banksy
    #4
    LANEY
    Max Output Level: -64 dBFS
    • Total Posts : 1350
    • Joined: 2010/12/11 20:27:13
    • Location: USA
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 09:34:35 (permalink)
    Thanks Freddie!



    i7/16GB ram
    Win 7 x64
    SONAR Platinum Producer x64
    VS-700 C&R

    Octa-Capture and VS-100 for live recording
    #5
    Wookiee
    Rrrrugh arah-ah-woof?
    • Total Posts : 13306
    • Joined: 2007/01/16 06:19:43
    • Location: Akahaocwora - Village Yoh Kay
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 10:48:28 (permalink)
    Thanks Freedie I will give them a try.

    I tried changing the name as suggested JB and you may be right.

    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 
    #6
    Wookiee
    Rrrrugh arah-ah-woof?
    • Total Posts : 13306
    • Joined: 2007/01/16 06:19:43
    • Location: Akahaocwora - Village Yoh Kay
    • Status: offline
    Re:FREE!! Two New CAL for SONAR X1! 2012/04/25 10:53:13 (permalink)
    Not wishing to belittle your efforts Freddie but X1 already has a CAL called "Undupe" that works perfectly well

     
    I also note that the code is identical to Undupe.cal by  Miguel Ratton.
     
    You may wish to check that Freddie.

    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
    Jump to:
    © 2025 APG vNext Commercial Version 5.1