Shotgun marriage of MIDI to audio

For seeking technical help with Digital Performer and/or plug-ins on MacOS.

Moderator: James Steele

Forum rules
This forum is for seeking solutions to technical problems involving Digital Performer and/or plug-ins on MacOS, as well as feature requests, criticisms, comparison to other DAWs.
pjmnash
Posts: 14
Joined: Wed Jan 07, 2009 8:50 pm
Primary DAW OS: MacOS
Location: Arlington, Texas

Shotgun marriage of MIDI to audio

Post by pjmnash »

Hi!
I seem to have a shotgun wedding of MIDI to audio tracks.
MIDI refuses to record unless accompanied by its audio mate, so I accommodate by officially marrying MIDI #1 to audio track #1 and having two tracks of the same data--well, almost.

Then MIDI track #2 refuses to speak unless married to an audio track, so I try to marry it off to audio track #2.

BUT MIDI track #2 wants audio #1's spouse! [naughty, naughty. :roll: ]

And then I get a muddled track because in playback, MIDI #1 and audio #1 are out of sync.
I'm really confused and dealt with this problem for a long while. I'm just not very technically talented.

Please help!
Desparately seeking sanity of sound--and a sound mind!
Thank you for your time and coveted talent & expertise.
pajama nash
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Shotgun marriage of MIDI to audio

Post by FMiguelez »

.

I suppose you're talking about VIs, right? Not external MIDI hardware...

In your MIDI track, you must select an input channel for the corresponding VI. And the VI's output could be, for instance, routed to your main out.

Suppose you have a Bass and a Piano VI:

Piano MIDI track set to Piano VI channel 1
Piano VI track set to main output

Bass MIDI track set to Bass VI channel 1 (or whatever you need)
Bass VI track set to main output

If it's something that simple, that should get you going. Otherwise, be more specific, and give us more details.

Have you tried reading the manual, BTW?

Cheers.
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
grouse
Posts: 487
Joined: Wed Oct 20, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ireland

Re: Shotgun marriage of MIDI to audio

Post by grouse »

pjmnash wrote: MIDI refuses to record unless accompanied by its audio mate, so I accommodate by officially marrying MIDI #1 to audio track #1 and having two tracks of the same data--well, almost.
I've always found it a little strange the way VI's are handled in DP, having to essentially have 2 tracks before you can work. One for the MIDI information and the other holding the instrument. I tend to stay away from "Add Unassigned" (DP 5.13 Project- Add Track- Instrument Track) although I'm sure some find it useful. If you choose "Add Instruments..." from the same spot you get more options.
However, you don't need to record on an audio track at the same time. In fact you don't need an audio track at all so something's not right with your set up.
Be more specific, starting with the version of DP you're using.
I do like your analogy, by the way. :wink:
DP 7.24, Focusrite 18i20, 3.06GHz Intel Core i3, OSX 10.9.5, 4 GB RAM, Reason 10, Kontakt, Motif +++
User avatar
twistedtom
Posts: 4415
Joined: Tue Nov 02, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Between Portland and Mt. Hood Oregon.

Re: Shotgun marriage of MIDI to audio

Post by twistedtom »

I like the way the VI and MIDI are on different track as I can automate each track and put my effects on the VI audio track. A VI's out put is audio so it makes total sense. I think pjmmash must be talking about VI's and if he gives us more info maybe we can set him on course; like buffer settings and your set up, what VI's you are using and are they up dated.
Mac Pro 2.8G 8 core,16G ram, 500GB SSD, 2x2TB HD.s 3TB HD, Extn Backup HDs,Nvd 8800 & ATI 5770 video cards,DP8 on OS 10.6.8 and OS 10.8; MOTU 424PCIe, MOTU 2408; Micro express. Video editing deck on firewire, a bunch of plug-ins and VI's.Including; MX3 and M5-3. FCP, Adobe Production Bundle CS6. PCM88mx, some vintage synths linked by MIDI. Mackie 16-4 is my main mixers
, kelsey and Yamaha mixers, Rack of gear. Guitars, piano, PA and more stuff.
grouse
Posts: 487
Joined: Wed Oct 20, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ireland

Re: Shotgun marriage of MIDI to audio

Post by grouse »

It definitely is handy to be able to automate and add audio effects there. I suppose what I find odd is that you can't record the audio on that track containing the instrument so it ends up on yet another track.
DP 7.24, Focusrite 18i20, 3.06GHz Intel Core i3, OSX 10.9.5, 4 GB RAM, Reason 10, Kontakt, Motif +++
User avatar
FMiguelez
Posts: 8266
Joined: Sun Oct 24, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Body: Narco-México Soul/Heart: NYC

Re: Shotgun marriage of MIDI to audio

Post by FMiguelez »

grouse wrote:It definitely is handy to be able to automate and add audio effects there. I suppose what I find odd is that you can't record the audio on that track containing the instrument so it ends up on yet another track.
Maybe. But thanks to that, we have MAXIMUM flexibility. If it really bothers you, you can always delete it, put it in a V-Rack, put it (them) in a folder and close it, etc. Really, no big deal. I prefer the flexibility anyday.

Besides, there are ways to have them instantly available, in a matter of 2 seconds (all MIDI, VIs, and any desired aux tracks).
Mac Mini Server i7 2.66 GHs/16 GB RAM / OSX 10.14 / DP 9.52
Tascam DM-24, MOTU Track 16, all Spectrasonics' stuff,
Vienna Instruments SUPER PACKAGE, Waves Mercury, slaved iMac and Mac Minis running VEP 7, etc.

---------------------------

"In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." ― Richard Feynman
User avatar
Shooshie
Posts: 19820
Joined: Sat Oct 16, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Dallas
Contact:

Re: Shotgun marriage of MIDI to audio

Post by Shooshie »

pjmnash wrote:Hi!
I seem to have a shotgun wedding of MIDI to audio tracks.
MIDI refuses to record unless accompanied by its audio mate, so I accommodate by officially marrying MIDI #1 to audio track #1 and having two tracks of the same data--well, almost.

Then MIDI track #2 refuses to speak unless married to an audio track, so I try to marry it off to audio track #2.

BUT MIDI track #2 wants audio #1's spouse! [naughty, naughty. :roll: ]

And then I get a muddled track because in playback, MIDI #1 and audio #1 are out of sync.
I'm really confused and dealt with this problem for a long while. I'm just not very technically talented.

Please help!
Desparately seeking sanity of sound--and a sound mind!
Thank you for your time and coveted talent & expertise.
pajama nash

Hey, Pajamas!

I'm doing my best to figure out what you're talking about, and I think I hear a couple of things going on. Let's start with some basics:

1) MIDI tracks just send notes to instruments. Wherever they are doesn't matter; MIDI just sends notes.
2) When those notes come back as audio is going to depend on a few things:
---is the MIDI instrument an actual box or keyboard in your rack gear? I mean, a hardware instrument, not a virtual instrument in the computer.
-----if the answer to the above is yes, then how is the audio coming out of it?
--------is the audio going straight to an amplifier and speakers?
--------is the audio going into an audio interface, such as a MOTU 2408?
--------is the audio from the 2408 going back into DP?
--------is that audio going back into DP being played as "direct hardware play-through?" Or is it being played through reverb, compressors, or any other plugins?
3) Is the instrument a virtual instrument?
---if so, is the audio from the virtual instrument going to an Aux track or an Audio track?
-----if the virtual instrument is playing through anything other than the Main Out tracks, does it have plugins on its audio track?

If you read what I wrote carefully, you'll realize it's all about routing the audio. MIDI occurs instantly. But the audio that comes back from the instrument that receives that MIDI can either be instant (direct hardware playthrough), or it can have anywhere from a slight delay to a lengthy delay (playback through plugins). While plugins can be compensated in time by plugin delay compensation, the picture isn't always that simple. If you've got audio being routed in from an external instrument through an Aux track, with no plugins, then that audio may be out of time with other audio that's being produced inside DP and is playing through tracks with plugins. Each plugin adds some delay, and while DP can match the output of all audio tracks with plugins so that they come out together, it can't do the same for an aux track that is bringing in external audio. At least... I don't THINK it does. It may do that now. I know for a while it didn't. I have all but quit using audio from my external hardware boxes, so I just don't remember now whether it can compensate that audio for the delay in other tracks, or not.

So, you see, this can get confusing.

The idea of having a MIDI and an audio track for each instrument makes sense from a historical perspective: that's ALWAYS the way it happened, and it is still the most flexible way to do it. It may not seem flexible when you've just got one track of MIDI and one track of Audio, but if you start adding a dozen MIDI tracks, all playing to the same instrument, then it makes sense. They can all play on the same audio track, but you don't have to have a dozen instruments to accommodate them. Just one will do. You simply address all your MIDI tracks so that they output to the same instrument, and then that instrument can simply play through a single stereo audio track.

Some (most, in fact) VI's will output to more than one audio track. So, if you have a flute and a guitar, they can each have their own audio track, even if they're using the same basic virtual instrument, such as MOTU's Symphonic Instrument, or Garritan's Personal Orchestra. Real hardware instruments can do this, too. My Kurzweil 2600 has 8 audio output channels. I can treat them individually, or as 4 stereo pairs, or I can combine them all into a single stereo pair. Virtual Instruments like Mach Five2 can output to something like a hundred or more audio tracks; not that you'd necessarily want to do that. But you could if you wanted to. You could load a hundred instruments in a single instance of MachFive2 and output a hundred audio tracks with a hundred MIDI channels running it all. (the actual numbers may vary higher or lower; I'm just making an example)

Now... here's where it gets troublesome: when you've got two instruments outputting audio, but one has a delay from plugins and the other one doesn't. In some cases, DP can compensate automatically for such delays by delaying everything else as long as the longest delay on any track, but that doesn't work in all cases. So, you have to think about your routing. Is there a way to make your audio match up? Sometimes you can just be sure that the non-delayed audio gets routed through a track that has the delays in it, and it will all clear up. The worst case scenario is that you shift your MIDI track 40 or 80 milliseconds later, so that its audio track comes out delayed like other audio tracks. That's a worst-case-scenario when nothing else works.

Oh, and I left out a big factor: in the Hardware Setup window, you can set the buffer for usually multiples of 64: 128, 256, 512, 1024... and that determines the amount of delay that DP automatically builds into ALL its audio (except when it is set to direct hardware playthrough). Setting the buffer higher gives the CPU time to "think" before playing, which is sometimes necessary if there are a lot of plugins to process a lot of audio. Setting the buffer lower creates low-latency so that you can actually record while playing along with other tracks, and you won't hear much delay. A buffer of 64 will make the latency almost negligible.

As you can see, there are lots of variables. It's hard to answer questions about it, because nobody can see exactly what you're doing or talking about, and there are a LOT of things that you can be doing.

Some Digital Audio Workstations are set up differently. Logic, for example, lets you select an instrument from a menu, and suddenly you've got a track which records MIDI and plays back audio. Seems like an easy way to do things until you want a dozen of those instruments. DP lets you set up one instrument, and then drive it with as many MIDI tracks as you desire. For me, that's just a more natural way of working, for that's the way we always did it. And we already talked about the multiple audio channels that even a single VI can output to. Feels perfectly natural for me to set up VI's that way. But yes, you MUST have an audio track set up for a VI before it will allow you to send MIDI to it. Be glad for that; if it wasn't for that, you'd be blaming all sorts of things in DP for your own failure to provide a connected audio-out. It would be that much more to troubleshoot. At least DP doesn't even allow you to get as far as assigning MIDI if you don't plan to listen to it. It MAKES you assign an audio channel. Until there is an audio channel, it's not a virtual instrument!

I'm not saying it's easy to figure all this out, but I AM saying that until you do, it's going to be tough to use DP. You must have a basic idea of what's going on. And that, in its simplest form, is that a MIDI track is playing MIDI instantly, while an Instrument (somewhere) is receiving that MIDI, then that MIDI instrument is outputting audio to either an amplifier, or it's going back into DP, or it never actually LEFT DP, and then either through automatic delay compensation or through your own careful routing and understanding of the situation, all the audio tracks eventually come out of DP in sync with each other. The things which affect delay are: direct hardware play-through, playing through effects (plugins, reverb, compressors, EQ, etc.), plugins themselves (some like Waves L3 Limiter have a fixed delay of something like 80 milliseconds), and most of all, the BUFFER settings in the Hardware Setup dialog (Menu found under Setup/Configure Audio System/Configure Hardware Driver).

Just start asking yourself, where does your audio come from? How is it routed to where you want it to go? (Check you BUNDLES WINDOW for the answer). The virtual instruments included in DP do not have multiple outputs. One instrument = one audio output. But you can send as many MIDI tracks to them as you want, as long as they all are intended to play the same instrument. Want two or three different instruments sounding at the same time on that Modulo plugin? Then add another instance of Modulo. If you were using MachFive2, then you could add as many instruments as you wanted to the same plugin, and assign them different MIDI channels.

I've written pages, and I don't know if I've answered any of your questions or made things worse, but I hope you know more about it now. It's all in the manual, though it's not always the easiest thing to understand. But they have to be concise when writing manuals, so sit and let it absorb until you understand what each word is talking about.

Good luck with it!

Shooshie
|l| OS X 10.12.6 |l| DP 10.0 |l| 2.4 GHz 12-Core MacPro Mid-2012 |l| 40GB RAM |l| Mach5.3 |l| Waves 9.x |l| Altiverb |l| Ivory 2 New York Steinway |l| Wallander WIVI 2.30 Winds, Brass, Saxes |l| Garritan Aria |l| VSL 5.3.1 and VSL Pro 2.3.1 |l| Yamaha WX-5 MIDI Wind Controller |l| Roland FC-300 |l|
User avatar
monkey man
Posts: 14081
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Re: Shotgun marriage of MIDI to audio

Post by monkey man »

Note to self: Coerce Shooshie into sharing typing tips when I eventually visit him.

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
grouse
Posts: 487
Joined: Wed Oct 20, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ireland

Re: Shotgun marriage of MIDI to audio

Post by grouse »

FMiguelez wrote:
grouse wrote:It definitely is handy to be able to automate and add audio effects there. I suppose what I find odd is that you can't record the audio on that track containing the instrument so it ends up on yet another track.
Maybe. But thanks to that, we have MAXIMUM flexibility. If it really bothers you, you can always delete it, put it in a V-Rack, put it (them) in a folder and close it, etc. Really, no big deal. I prefer the flexibility anyday.

Besides, there are ways to have them instantly available, in a matter of 2 seconds (all MIDI, VIs, and any desired aux tracks).

I suppose because I don't use VI's that often in DP I prefer to just have one track for the instrument and the audio output (like the way Ableton Live does it).
I make more mistakes with VI's in DP than any other area, with track selection and the like. It's probably besed on my own shortcomings! And it's just a preference.
As far as V-Racks go, I spent a week one time incorporating them into my set up, reading the manual and the extensive posts on them here and afterwards...never used them again! I have no idea why. I may revisit them again but they just don't seem to suit the way I work.

Hmmmm, I wonder have we lost Pajama Nash.....
DP 7.24, Focusrite 18i20, 3.06GHz Intel Core i3, OSX 10.9.5, 4 GB RAM, Reason 10, Kontakt, Motif +++
User avatar
Shooshie
Posts: 19820
Joined: Sat Oct 16, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Dallas
Contact:

Re: Shotgun marriage of MIDI to audio

Post by Shooshie »

Well, it IS rather late here. Or early. Depending on how you look at it. Maybe she'll catch it later this morning. She's probably given up on us.

BTW: V-Racks are worthy of a long look. They work great if you're using more than one sequence in a file. They're almost necessary for film cues and multi-movement works, not to mention playlists of entire sets of live music. Of course, I can understand the preference to use a single instance of a VI in the sequence itself as opposed to a V-Rack if there is only one sequence.

Shoosh
|l| OS X 10.12.6 |l| DP 10.0 |l| 2.4 GHz 12-Core MacPro Mid-2012 |l| 40GB RAM |l| Mach5.3 |l| Waves 9.x |l| Altiverb |l| Ivory 2 New York Steinway |l| Wallander WIVI 2.30 Winds, Brass, Saxes |l| Garritan Aria |l| VSL 5.3.1 and VSL Pro 2.3.1 |l| Yamaha WX-5 MIDI Wind Controller |l| Roland FC-300 |l|
grouse
Posts: 487
Joined: Wed Oct 20, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Ireland

Re: Shotgun marriage of MIDI to audio

Post by grouse »

Shooshie wrote: BTW: V-Racks are worthy of a long look. They work great if you're using more than one sequence in a file. They're almost necessary for film cues and multi-movement works, not to mention playlists of entire sets of live music. Of course, I can understand the preference to use a single instance of a VI in the sequence itself as opposed to a V-Rack if there is only one sequence.

Shoosh
Yes, I think I'll try to incorporate them a bit more as I work. It's been a while since I messed around with them but I think the problem I had was that when I have a new sequence I tend to change the sounds and parameters of the VI and effects so if they're in a V-rack all the sequences will be alterred and I won't be able to get the original back.
I'm sure there must be circumstances where they would come in handy so I'll revisit them at some point.
DP 7.24, Focusrite 18i20, 3.06GHz Intel Core i3, OSX 10.9.5, 4 GB RAM, Reason 10, Kontakt, Motif +++
pjmnash
Posts: 14
Joined: Wed Jan 07, 2009 8:50 pm
Primary DAW OS: MacOS
Location: Arlington, Texas

Re: Shotgun marriage of MIDI to audio

Post by pjmnash »

pajama nash [Shooshie's truly funny moniker for my pjmnash user name], like Winston Churchill does NOT quit! Patricia Jean Nash has a shotgun wedding with her physical therapist today but she printed out everyone's reply and takes it with her to read and reread. She is amazed at the knowledge others have to offer and truly duly appreciates,
Ya 'all!
She will try everything you suggest before she has an intelligent answer.
Thnk you,
pajama nash (AKA the stroke survivor-aliver in the DFW--the Dallas-Ft. Worth, Texas area)
User avatar
monkey man
Posts: 14081
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Re: Shotgun marriage of MIDI to audio

Post by monkey man »

Punjabi Rash? Is that you? LOL

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
pjmnash
Posts: 14
Joined: Wed Jan 07, 2009 8:50 pm
Primary DAW OS: MacOS
Location: Arlington, Texas

Re: Shotgun marriage of MIDI to audio

Post by pjmnash »

monkey man wrote:Punjabi Rash? Is that you? LOL
Don't be rash--and don't monkey around!
User avatar
monkey man
Posts: 14081
Joined: Fri Apr 22, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Melbourne, Australia

Re: Shotgun marriage of MIDI to audio

Post by monkey man »

Doh! I guess you're not him after all; he lacked your sense of humour. Poor chap - all that heat/curry-rash scratchin'...

Mac 2012 12C Cheese Grater, OSX 10.13.6
MOTU DP8.07, MachFive 3.2.1, MIDI Express XT, 24I/O
Novation, Yamaha & Roland Synths, Guitar & Bass, Kemper Rack

Pretend I've placed your favourite quote here
Post Reply