Helpful ReplyExport MIDI with tempo map

Author
fcarosone
Max Output Level: -86 dBFS
  • Total Posts : 241
  • Joined: 2005/03/04 11:26:28
  • Location: Italy
  • Status: offline
2013/04/25 12:09:45 (permalink)

Export MIDI with tempo map

A singer sung without metronome at her place and passed me a wav file. I built a whole arrangement  on her voice, just spending half an hour to contruct first a good tempo map, by aligning the first measure of audio in the voice and then progressing with the "set measure/beat at now time" command. First I guessed the overall tempo (128 bpm) then captured all the slight variations (127.3, 126.6, 127.9, 128.3 etc) every 2-3 measures.
It worked brilliantly  . I recorded the first MIDI instruments with a Sonar metronome following the sliding tempo, then all audio records, and this original little shift really gives breath to the piece.
 
Now I need to export a midi part, but when dragged to the desktop I see it does not retain the tempo variation information, which is stored in the tempo view within the Sonar project. How can i tell Sonar to keep this "sliding tempo info" in the exported MIDI file?
Alternatively, can I set an overall timing info in the midi file (128 bpm) at the beginning, and then write a midi file that goes out of the tempo grid, but stays in time when replayed at that bpm?
 
Please help. I'm working with Sonar since almost 10 years daily and I'm amazed I still get stuck with MIDI!

"Below the realm of the musical note lies the realm of microsound. Sound coalesce, evaporate, and mutate into other sounds" (Curtis Roads)
http://www.carosone.eu/
#1
John
Forum Host
  • Total Posts : 30467
  • Joined: 2003/11/06 11:53:17
  • Status: offline
Re:Export MIDI with tempo map 2013/04/25 12:54:48 (permalink) ☄ Helpful
You might have better results by doing a save as and saving it as a MIDI file.

Best
John
#2
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/25 13:22:55 (permalink)
John


You might have better results by doing a save as and saving it as a MIDI file.


Yes.  I can say with certainty that save-as-MIDI-file does retain the tempo map.  I never noticed one way or the other whether dragging/dropping a MIDI clip kept the tempo information ... something to test next time I fire up SONAR.
#3
fcarosone
Max Output Level: -86 dBFS
  • Total Posts : 241
  • Joined: 2005/03/04 11:26:28
  • Location: Italy
  • Status: offline
Re:Export MIDI with tempo map 2013/04/25 15:58:28 (permalink)
YES!! Thanks a lot, I was stuck.
The only little work was that the save as function under the File menu is conceived for a whole Sonar project and not for a single MIDI clip within a project (although the contextual help in the save as window mention that it could be applied to clips). So when I opened the new mid it had all midi parts in it. But then it was easy to delete all the rest and have a .mid with that only clip starting at measure 1 and retaining the tempo map.
Great!

"Below the realm of the musical note lies the realm of microsound. Sound coalesce, evaporate, and mutate into other sounds" (Curtis Roads)
http://www.carosone.eu/
#4
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/26 16:49:22 (permalink)
fcarosone

The only little work was that the save as function under the File menu is conceived for a whole Sonar project and not for a single MIDI clip within a project (although the contextual help in the save as window mention that it could be applied to clips). So when I opened the new mid it had all midi parts in it. But then it was easy to delete all the rest and have a .mid with that only clip starting at measure 1 and retaining the tempo map.

I suppose if this activity was something I needed to do all the time, I'd be annoyed at Cakewalk for not giving us a little more power and flexibility.  But the extra hassle actually isn't really all that much extra work, and like I said, it's probably not something anyone has to do all that often.
#5
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/27 14:30:02 (permalink)
I put together a small test to check on the behavior of SONAR when dragging a MIDI clip to a folder or the desktop.  The tempo map was included in the resultant MIDI file, but not in a way that anyone would find useful.
 
I created a minimal project with one MIDI track.  I recorded some notes but only after a couple of measures had passed.  Thus, the MIDI clip started in measure 3 and was maybe 3 measures in length.  In the tempo view, I drew in some events before, within and after the measure that the MIDI clip occupied.  I dragged the clip to the desktop and closed the project.  I opened the MIDI file in SONAR and it contained the clip starting immediately at measure 1.  But the tempo map from the original project was there in its entirety.  In other words, the MIDI data and tempo data lost their relationship in time.  I can't think of any situation where this would be useful or desirable.  Is this behavior a bug?  Probably.
 
Saving the project as a MIDI file and reopening it worked perfectly.
#6
John
Forum Host
  • Total Posts : 30467
  • Joined: 2003/11/06 11:53:17
  • Status: offline
Re:Export MIDI with tempo map 2013/04/27 15:14:39 (permalink)
I have always viewed them as two different things for two different purposes . A drag and drop to me is a simple way to have a copy of a clip or track n. I would not think it would include other project settings other than what is contained in the clip itself. Where a save as for the project is meant to create a complete standard MIDI file. One that includes all data for playing back that file on any MIDI player. I look at it from a GM perspective. 

Then we have MIDI groove clips. These are not GM type MIDI files. But they would contain more information then a simple copied MIDI clip. Not sure if they have tempo in them. From my view with MIDI storing tempo with a clip seems silly. If you consider that tempo with MIDI is completely controllable in most any DAW.  A clip will follow the DAWs project tempo. So the rare occasion when tempo for a clip is needed it can be done with the save as command and the right editing. 

I hope this makes some sense.

Best
John
#7
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/28 14:53:44 (permalink)
John

I hope this makes some sense.
Sure, it makes a lot of sense and I mostly agree.  However, if the DAW is going to copy both MIDI and tempo events to create a standard MIDI file, some consistency would make sense.  There's no situation I can think of where anyone would want it to work the way it's actually working.  If the tempo is to be included, then the software should just include those tempo change events that are in the region of the clip being copied, IMO.  It's possible there are some situations in which this would be useful.
 
#8
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/29 13:44:55 (permalink)

I did an experiment, dragging a MIDI file onto the desktop (something I'd never done before). The resulting file was a type 1 MIDI file (meaning the tempo map is in a separate track). Then I dragged the file into an empty project. All of the original tracks were recreated as expected, but there were no tempo changes

I opened the file in a hex editor to see if there were any tempo meta-events in it (FF 51 03 xx xx xx for the nerds out there) and there was indeed tempo data included in the file.

I then opened the MIDI file using SONAR's File->Open. This time, the project contained all the tempo information.

My theory is this: when you drag a MIDI file into an existing project, SONAR ignores the tempo data. This, I believe, is how it should be. When you have an existing project it already has a tempo map, and you wouldn't want to replace it every time you dragged a new track into it.


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

My Stuff
#9
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/29 14:11:33 (permalink)
Thanks for thinking of testing this ... the picture grows ever more complete.
 
I could be mistaken, but if I recall correctly, when you open a MIDI file with only tempo events, SONOR presents a project with no tracks but the tempo map is there.  Not unusual but maybe not what you'd be expecting.  Why would you even have such a file?  Well here's how it could happen ...
 
I have written a utility to convert a MIDI click track into a MIDI file that has tempo events per beat.  Shortly (as in later this month hopefully), some friends around the world (who I have never met in person) will be announcing a new free on-line computer sound magazine, and one of the articles, written by me, will talk about DAW tempo issues.  The utility will be available as a free download.  I'll be announcing it here, so hopefully all those interested in tempo issues will check it out.
#10
cliffr
Max Output Level: -80 dBFS
  • Total Posts : 539
  • Joined: 2010/02/19 21:44:43
  • Location: Wellington, New Zealand
  • Status: offline
Re:Export MIDI with tempo map 2013/04/30 05:20:24 (permalink)
bitflipper


I did an experiment, dragging a MIDI file onto the desktop (something I'd never done before). The resulting file was a type 1 MIDI file (meaning the tempo map is in a separate track). Then I dragged the file into an empty project. All of the original tracks were recreated as expected, but there were no tempo changes

I opened the file in a hex editor to see if there were any tempo meta-events in it (FF 51 03 xx xx xx for the nerds out there) and there was indeed tempo data included in the file.

I then opened the MIDI file using SONAR's File->Open. This time, the project contained all the tempo information.

My theory is this: when you drag a MIDI file into an existing project, SONAR ignores the tempo data. This, I believe, is how it should be. When you have an existing project it already has a tempo map, and you wouldn't want to replace it every time you dragged a new track into it.
Sheesh Dave,
 
you read hex too - you must be as big a nerd as me :-)
 
You are right on the money.
I took a look when I saw the title and was going to answer, but you've already done that perfectly.
I remember having to do my own little tests to figure it out when I first got Sonar.
Another one of those things that's mysterious if you don't already know.
 
Cheers - Cliff

i7-950 24 GB, GTX 580, W7/64 Ultimate, Sonar Platinum, Alesis MasterControl, KRK Rokit RP8g2s
Some Real piano, basses, and guitars, Komplete 8Ultimate, Ibanez guitars, MusicLab RG/Strat/LPC, Trilian, Omnisphere, RMX, EWQL SO Platinum, Pianos, Choirs, VOP, Gypsy, Goliath, SD2, MOR, Ra, HS, HB, too many plugs, Midi controllers, and all kinds of weird gadgets
My Soundclick Page 
#11
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/30 10:39:54 (permalink)
...you must be as big a nerd as me :-)

Guilty. Always glad to find another nerd here. We need all we can get, to balance out the pixie-dust crowd.


David: cool idea. It's not immediately obvious to me how it might be used, but it's a nifty concept.


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

My Stuff
#12
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
Re:Export MIDI with tempo map 2013/04/30 11:33:26 (permalink)
Well some of us remember having to refer to the SYS EX list in the back of our sound module owner manuals if you wanted to do certain functions.. 
And yep, I figured out from day one you always OPEN a MIDI file to retain tempo and the sys. ex. data. Importing or drag and drop only brings in the basic note info. 

Even though I never have done this I would imagine this works in reverse and you need to SAVE  a MIDI file to retain all the goodies. This is done when we save a CWP. 



Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#13
dmbaer
Max Output Level: -49.5 dBFS
  • Total Posts : 2585
  • Joined: 2008/08/04 20:10:22
  • Location: Concord CA
  • Status: offline
Re:Export MIDI with tempo map 2013/04/30 13:17:33 (permalink)
bitflipper

David: cool idea. It's not immediately obvious to me how it might be used, but it's a nifty concept.
Think of SONAR's fit-to-improv.  Now, think of a more surgically precise fit-to-improv, one in which you could construct a tempo map for just a portion of a piece and one which you could "conduct" in eighth notes or triplets or whatever seemed appropriate.  This thing will probably be of little interest to those doing dance music, for example, but may be of considerable use to those doing jazz or "classical" music production.

#14
Jump to:
© 2025 APG vNext Commercial Version 5.1