Stretch MIDI?
Moderator: James Steele
Forum rules
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."
- bkshepard
- Posts: 1093
- Joined: Sun Aug 14, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: Setúbal, Portugal
- Contact:
Stretch MIDI?
Is there a way to select a group of MIDI notes on a track and stretch them similarly to what you can do with a soundbite on an audio track? I know I can do it with the Scale Time tool, but it takes a bunch of trial and error to get the right result. I’d like to be able to select the notes, have the first note stay where it is and drag the final note to the correct point in time with the other notes adjusting their timing to maintain the contour of the original rhythm. Is that possible? Thanks!
-Brian
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Re: Stretch MIDI?
Grab the group of notes velocities at bottom of MIDI editor page, and then just hold control key down while you drag left to right whether you want shorter or longer phrases. Hold shift key down too, if you dont wanna have the notes velocities accidentally move while dragging.
AMPGUI themes - Andy rocks!, 3 macs, MacPro 768GB ram, 16core OS12.7.5, DP11.32, all Waves, all SLATE,PSP, IK multimedia & Audioease plugs, all PAlliance, Softube, most all Orchestral Tools, tons of NI VI's all air Spitfire, all Audiobro, all Berlin, EW PLAY, LLizard, MachFive3, Kontakt5, Omnisphere, RMX, LASS, all Soundtoys, Lexicon AU's, melodyne and others I know am forgetting, cause I'm old...Also mucho outboard rigs, MTPs, DTP, antelope WC, and 4 control surfaces with Raven.
Re: Stretch MIDI?
Holding the control key down brings up the local right click menu here. What are you doing differently?
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- stubbsonic
- Posts: 5149
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: Stretch MIDI?
WOW!! This is a super cool trick!! Add this to the tips sheet!! I never would have guessed that selecting the velocities from that lower pane was the key!!
Here's how I got it working:
1. Go to the lower pane of the MIDI Editor (Dragging up the dotted pane divider below the vertical keyboard).
2. I was tinkering with the "Show Only..." and "insert event type" but I don't think it was necessary.
3. I lasso-selected the note velocities within the lower pane.
4. Hover over any selected velocity so you get the Finger-shaped cursor. Now press-and-hold CONTROL and it will switch to a different cursor (a small circle with bits sticking out on top/bottom/sides.)
5. Now you can drag left/right. A box will appear surrounding the selection from the start of the first note to the START of the last note. If you (like me) always have the grid snap on, you can also hold down command to drag more freely without snapping. If Grid Snap is off, you're good to go.
FUN FACT: If you don't hold shift, it doesn't drag the velocities, it scales them; giving you nice visual feedback about the resulting velocities before you release the button
50 points for @labman!! Congratulations!!
Here's how I got it working:
1. Go to the lower pane of the MIDI Editor (Dragging up the dotted pane divider below the vertical keyboard).
2. I was tinkering with the "Show Only..." and "insert event type" but I don't think it was necessary.
3. I lasso-selected the note velocities within the lower pane.
4. Hover over any selected velocity so you get the Finger-shaped cursor. Now press-and-hold CONTROL and it will switch to a different cursor (a small circle with bits sticking out on top/bottom/sides.)
5. Now you can drag left/right. A box will appear surrounding the selection from the start of the first note to the START of the last note. If you (like me) always have the grid snap on, you can also hold down command to drag more freely without snapping. If Grid Snap is off, you're good to go.
FUN FACT: If you don't hold shift, it doesn't drag the velocities, it scales them; giving you nice visual feedback about the resulting velocities before you release the button
50 points for @labman!! Congratulations!!
M1 MBP; OS 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com
Re: Stretch MIDI?
Thanks for the step by step. It’s odd that you can drag the velocities to time stretch, but you can’t just do the same wth the notes in the main part of the MIDI editor, or in the Sequence editor. Also odd that you can’t do this by dragging the edge of a packed clip.
Note that if you select the notes, the usual Region > Scale Time … command will let you choose a percent change, a new start time, a new end time, or a new length. So is trial and error really required?
Note that if you select the notes, the usual Region > Scale Time … command will let you choose a percent change, a new start time, a new end time, or a new length. So is trial and error really required?
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- bkshepard
- Posts: 1093
- Joined: Sun Aug 14, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: Setúbal, Portugal
- Contact:
Re: Stretch MIDI?
Wow! Silly me, I was trying to drag the notes, not their velocities. Thank you for that, labman!
I could never get it to work properly. I think it uses the time/length as calculated from the start of the first note to the end of the last note, not the start of the last note, so I had to trial-n-error it to get the start of the last note placed where I wanted it.
-Brian
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Re: Stretch MIDI?
I don't recall having this problem, so I did some tests. With Labman's solution, it's probably all academic, but I think this will work.
1. New project
2. Pencil in a series of 6 quarter notes starting at 1-1-0
3. Range select (I Tool) from 1-1-0 to 7-1-0 (the range of the notes)
4. Open Region Scale time.
5. Enter 200 in the percent box and Apply
The notes go from 1-1-0 to 13-1-0
6. Undo
7. Enter 150 in the percent box and Apply
The notes go from 1-1-0 to 10-1-0
8. Undo
9 Enter 5 as the new end time and Apply
The notes go from 1-1-0 to 5-1-0
That does what I want.
So I guess what you want is something that defines where the late note starts, not where it ends. I suppose you could select all but the last note, going up to the start of the last note but not including it, and put in a new end time that defines where the last note should start. That will change the percent time in the dialog box, but Apply will not move the last note. You could just drag it to the end of the new range. But you could also do the operation selecting all the notes, and use the computed percent from the earlier step.
Now, going back to Labman's solution, I couldn't get it to work until I got the step by step in the earlier post, but I notice that when you drag the velocities to the right to increase the time range, it's the end of the last note that ends up where you pointed to, not the end of the last note, so I don't see how this works any better.
1. New project
2. Pencil in a series of 6 quarter notes starting at 1-1-0
3. Range select (I Tool) from 1-1-0 to 7-1-0 (the range of the notes)
4. Open Region Scale time.
5. Enter 200 in the percent box and Apply
The notes go from 1-1-0 to 13-1-0
6. Undo
7. Enter 150 in the percent box and Apply
The notes go from 1-1-0 to 10-1-0
8. Undo
9 Enter 5 as the new end time and Apply
The notes go from 1-1-0 to 5-1-0
That does what I want.
So I guess what you want is something that defines where the late note starts, not where it ends. I suppose you could select all but the last note, going up to the start of the last note but not including it, and put in a new end time that defines where the last note should start. That will change the percent time in the dialog box, but Apply will not move the last note. You could just drag it to the end of the new range. But you could also do the operation selecting all the notes, and use the computed percent from the earlier step.
Now, going back to Labman's solution, I couldn't get it to work until I got the step by step in the earlier post, but I notice that when you drag the velocities to the right to increase the time range, it's the end of the last note that ends up where you pointed to, not the end of the last note, so I don't see how this works any better.
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- stubbsonic
- Posts: 5149
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: Stretch MIDI?
There's something wonky in your last paragraph. See step 5 of my description above.
I agree that it works better, because you can drag the box to a specific point (say the playback wiper position) and basically set the last note of the selection to start where the wiper (or other visual landmark) is. Not to mention being able to scale velocities in the same gesture.
I agree that it works better, because you can drag the box to a specific point (say the playback wiper position) and basically set the last note of the selection to start where the wiper (or other visual landmark) is. Not to mention being able to scale velocities in the same gesture.
M1 MBP; OS 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com
Re: Stretch MIDI?
I thought the objective in the OP was to set the last note of the selection to end where the wiper is.stubbsonic wrote: ↑Sat Mar 08, 2025 2:00 pm set the last note of the selection to start where the wiper is.
The scale time dialog box deals with setting the start time of the last note.
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- stubbsonic
- Posts: 5149
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: Stretch MIDI?
In my example, I was just saying that if I wanted to visually drag to a specific spot-- I could use the wiper, or a marker as a visual destination for my drag. As opposed to typing a measure, beat, tick for where the last note will end-- which may have been an arbitrary release.bayswater wrote: ↑Sun Mar 09, 2025 9:11 amI thought the objective in the OP was to set the last note of the selection to end where the wiper is.stubbsonic wrote: ↑Sat Mar 08, 2025 2:00 pm set the last note of the selection to start where the wiper is.
The scale time dialog box deals with setting the start time of the last note.
Also, the time scale dialog box does not deal with the start time of the last note, but rather then end of the last note. If I lasso select a range of notes, you can see that time-scale defaults to showing from the start of the first note to the END (not the start) of the last note: (BTW, can you name that tune?)
M1 MBP; OS 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com
- bkshepard
- Posts: 1093
- Joined: Sun Aug 14, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: Setúbal, Portugal
- Contact:
Re: Stretch MIDI?
No, I wanted to move the start of the last note to a specific location while leaving the start of the first note at its same location.
-Brian
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Mac M1 Ultra 20-core, OS 14.6.1, 128 GB RAM, DP 11.3.2, UA Apollo x6
Re: Stretch MIDI?
That’s what the command does. So I’m even more confused now.
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- stubbsonic
- Posts: 5149
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: Stretch MIDI?
I noticed that when I did this velocity-selection-type of stretching, that the notes' durations didn't change. Is that true for you all as well?
M1 MBP; OS 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com
Re: Stretch MIDI?
Using the Scale Time command, note lengths did change in the same proportion as the stretch.stubbsonic wrote: ↑Mon Mar 10, 2025 12:57 pm I noticed that when I did this velocity-selection-type of stretching, that the notes' durations didn't change. Is that true for you all as well?
2018 Mini i7 32G macOS 12.7.6, DP 11.33, Mixbus 10, Logic 10.7.9, Scarlett 18i8, MB Air M2, macOS 14.7.6, DP 11.33, Logic 11
- stubbsonic
- Posts: 5149
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: Stretch MIDI?
Yea, and in that zone below, I didn't see an obvious way to include note-release-velocities in the selection-- which might have provided stretch of durations.
Also, I noticed that there seemed to be some special way of selecting, because sometimes I was unable to drag horizontally; but I could make it work if I tried selecting and dragging a few times.
Also, I noticed that there seemed to be some special way of selecting, because sometimes I was unable to drag horizontally; but I could make it work if I tried selecting and dragging a few times.
M1 MBP; OS 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com