Align Midi Notes End to End

Author
JenksTer
Max Output Level: -88 dBFS
  • Total Posts : 128
  • Joined: 2008/10/30 22:02:51
  • Location: U.K.
  • Status: offline
2015/06/12 14:22:30 (permalink)

Align Midi Notes End to End

Hello all,
 
I'm wanting to align midi notes end to end without having to move each note individually.
 
For example, say I have 20 midi notes on a track and I want to move them so the next note starts as soon as the preceding one finishes. Is there a way this can be done without having to move them individually?
 
I was hoping there was a feature that allows you to lasso select notes and select an option to do this but I can't seem to find anything.
 
Any help greatly appreciated.
 
Thanks
post edited by JenksTer - 2015/06/12 14:42:03
#1

14 Replies Related Threads

    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/12 15:47:43 (permalink)
    I can't think of any way you would accomplish this in one go short of writing a CAL script. I reckon this is no not a very musically useful operation for most workflows. How'd you come upon that need?
     
    There's a LEGATO.CAL that will do the opposite - i.e. lengthen notes so they end at the next note's start time, but that's not what you're after, apparently.
     
     

    SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
    Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
    #2
    Zargg
    Max Output Level: 0 dBFS
    • Total Posts : 10666
    • Joined: 2014/09/28 04:20:14
    • Location: Norway
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/12 16:06:50 (permalink)
    Hi. Is this for your own recordings? You could try quantizing (Q) after selecting notes the notes. This (I believe) can be done during recording as well. I just do not remember how to set it. Some of the others here will certainly know 
    Best of luck.

    Ken Nilsen
    Zargg
    BBZ
    Win 10 Pro X64, Cakewalk by Bandlab, SPlat X64, AMD AM3+ fx-8320, 16Gb RAM, RME Ucx (+ ARC), Tascam FW 1884, M-Audio Keystation 61es, *AKAI MPK Pro 25, *Softube Console1, Alesis DM6 USB, Maschine MkII
    Laptop setup: Win 10 X64, i5 2.4ghz, 8gb RAM, 320gb 7200 RPM HD, Focusrite Solo, + *
     
    #3
    Beepster
    Max Output Level: 0 dBFS
    • Total Posts : 18001
    • Joined: 2012/05/11 19:11:24
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/12 16:14:27 (permalink)
    Do all the notes land right at Snap points and are evenly spaced from each other (like beat/measure increments)? If so you could just lasso them all and use the MIDI Event Inspector and change the note duration appropriately.
     
    If they are all different lengths and don't fall at exact times... well no.... so I probably didn't help.
     
     
    post edited by Beepster - 2015/06/12 16:21:15
    #4
    Bristol_Jonesey
    Max Output Level: 0 dBFS
    • Total Posts : 16775
    • Joined: 2007/10/08 15:41:17
    • Location: Bristol, UK
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/12 16:32:43 (permalink)
    If I'm reading it correctly, he wants to move the start times of notes forward in time i.e. to the left so they fall at the end of the preceding note. Unless the end times fall exactly on a beat measure, I know of no way this can be done.

    CbB, Platinum, 64 bit throughout
    Custom built i7 3930, 32Gb RAM, 2 x 1Tb Internal HDD, 1 x 1TB system SSD (Win 7), 1 x 500Gb system SSD (Win 10), 2 x 1Tb External HDD's, Dual boot Win 7 & Win 10 64 Bit, Saffire Pro 26, ISA One, Adam P11A,
    #5
    matt fresha
    Max Output Level: -87 dBFS
    • Total Posts : 168
    • Joined: 2014/10/01 21:02:50
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/12 23:26:24 (permalink)
    I think he's talking about legato. If that is what you're talking about, there's a legato CAL script.....but it doesn't work well on occasions.
    #6
    jih64
    Max Output Level: -75 dBFS
    • Total Posts : 797
    • Joined: 2014/01/30 20:59:40
    • Location: Studio One 3
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/13 06:08:22 (permalink)
    REAPER will do this for you, if you have REAPER you could export your MIDI, then open in REAPER - PRV/MIDI Editor, select the notes then - Edit - 'Set Note Ends To Start Of Next Note', export your MIDI, then back into Sonar
    post edited by jih64 - 2015/06/13 06:30:49
    #7
    Brando
    Max Output Level: -47.5 dBFS
    • Total Posts : 2776
    • Joined: 2003/11/06 11:47:20
    • Location: Canada
    • Status: offline
    Re: Align Midi Notes End to End 2015/06/13 11:27:59 (permalink)
    jih64
    REAPER will do this for you, if you have REAPER you could export your MIDI, then open in REAPER - PRV/MIDI Editor, select the notes then - Edit - 'Set Note Ends To Start Of Next Note', export your MIDI, then back into Sonar

    I believe that's the same as the Legato Cal, above. He wants the converse of this - he wants to keep durations the same, and move notes back in time to whenever the previous note ended.

    Brando
    Cakewalk, Studio One Pro, Reaper
    Presonus Audiobox 1818VSL
    ASUS Prime Z370-A LGA1151, 32GB DDR4, Intel 8700K i7, 500 GB SSD, 3 x 1TB HDD, Windows 10 Pro 64
    #8
    JenksTer
    Max Output Level: -88 dBFS
    • Total Posts : 128
    • Joined: 2008/10/30 22:02:51
    • Location: U.K.
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/12 11:22:03 (permalink)
    Hello all,
     
    Thanks for your responses.
     
    I gave Legato.CAL a quick spin but I’m looking to move the notes as opposed to change their duration.
     
    For anyone scratching their head in complete wonderment as to why I’d want this feature; I score mainly for film so often find myself abandoning usual time signatures but still need timings to be accurate. Adjusting all notes individually is a real pain and I’m hoping there’s a little used feature somewhere that can achieve what I’m looking for.
     
    Thanks all
    #9
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/12 12:05:34 (permalink)
    I'm afraid it's just not a common enough need for the Bakers to have built it into SONAR or for anyone to have written a CAL script to do it. The best I can suggest is to enable snap to MIDI landmarks to speed the process of doing it manually.
     
    Or you can talk somebody here in to writing the CAL. It would not be hard, especially if it can be counted on that the line is monophonic. I have done one-offs for people in the past, but I'm rusty and too selfish to spend a lot of time on something that would never be of any use to me. 

    SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
    Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
    #10
    Paul P
    Max Output Level: -48.5 dBFS
    • Total Posts : 2685
    • Joined: 2012/12/08 17:15:47
    • Location: Montreal
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/12 12:10:41 (permalink)
    brundlefly
    Or you can talk somebody here in to writing the CAL.



    It would probably be pretty easy if you started with legato.cal (and you've programmed before).

    Sonar Platinum [2017.10], Win7U x64 sp1, Xeon E5-1620 3.6 GHz, Asus P9X79WS, 16 GB ECC, 128gb SSD, HD7950, Mackie Blackjack
    #11
    williamcopper
    Max Output Level: -68 dBFS
    • Total Posts : 1120
    • Joined: 2014/11/03 09:22:03
    • Location: Virginia, USA
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/12 17:34:24 (permalink)
    As Paul P says, it doesn't sound like a difficult CAL program  --- but the syntax is so persnickety that nearly any little program is going to require some time spent tracking down spaces and parens -- otherwise I'd volunteer.
    #12
    Paul P
    Max Output Level: -48.5 dBFS
    • Total Posts : 2685
    • Joined: 2012/12/08 17:15:47
    • Location: Montreal
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/13 01:35:10 (permalink)
     
    I was feeling adventurous and in my haste to look into legato.cal I double clicked on it instead of opening it with notepad.  This popped up :
     
             
     
    Which had me fearful of CAL being dropped from Sonar.  But then I tried it within Sonar and it appears to work proplerly, though I didn't study the result of the operation.
     
    The script is very short.  If you can understand that "(= x y)" really means "x = y" [or "assign y to x"] and
    "if (== x y)" means "if (x == y)"  [or "if x happens to be the same as y"] then you can probably figure out the rest pretty easily.  The nested parentheses are just to define the scope of each operation.
     
    Which reminds me of when I used to program functions in emacs to make my life easier, 30+ years ago.
     
    PS. CAL scripts are invoke by selecting "Process / Run CAL..." from Sonar's main menu.
     

    Sonar Platinum [2017.10], Win7U x64 sp1, Xeon E5-1620 3.6 GHz, Asus P9X79WS, 16 GB ECC, 128gb SSD, HD7950, Mackie Blackjack
    #13
    JenksTer
    Max Output Level: -88 dBFS
    • Total Posts : 128
    • Joined: 2008/10/30 22:02:51
    • Location: U.K.
    • Status: offline
    Re: Align Midi Notes End to End 2015/12/16 13:33:56 (permalink)
    Hello all,
     
    Thanks for the info on the CAL scripts.
     
    Happy to pay a few hundred bucks if someone would be up for writing a CAL script to do this?
     
    Thanks,
     
    Shaun
    #14
    CynicalDude
    Max Output Level: -90 dBFS
    • Total Posts : 7
    • Joined: 2015/11/28 03:17:38
    • Status: offline
    Re: Align Midi Notes End to End 2017/02/12 15:24:02 (permalink)
    I'm feeling with you here  Did you ever come up with a solution?
    #15
    Jump to:
    © 2025 APG vNext Commercial Version 5.1