< Return to Video

Send and Receive Audio Effects - Unity Official Tutorials

  • 0:01 - 0:03
    In Unity's audio mixer
  • 0:03 - 0:05
    the send and receive effects
  • 0:05 - 0:07
    give us a great deal of control
  • 0:07 - 0:10
    over how our signals are routed
  • 0:10 - 0:13
    through the mix and particularly to effects.
  • 0:14 - 0:17
    In this scene we have four game objects,
  • 0:17 - 0:20
    each with an audio source and an audio clip
  • 0:20 - 0:23
    loaded that's a loop of a music track.
  • 0:24 - 0:29
    In our mixer we've setup two effect return tracks.
  • 0:29 - 0:33
    These are normal groups which have respectively a reverb
  • 0:33 - 0:36
    on reverb return and an echo effect
  • 0:36 - 0:38
    on echo return.
  • 0:38 - 0:40
    Currently they are not receiving
  • 0:40 - 0:43
    signal from any other the other tracks in the mixer.
  • 0:43 - 0:46
    But if we want to get a signal to them
  • 0:46 - 0:50
    we can do that using the send and receive effects.
  • 0:50 - 0:54
    Let's start with our arpeggio sound,
  • 0:54 - 0:55
    which sounds like this.
  • 1:01 - 1:03
    What we're going to do is that we're going to use
  • 1:03 - 1:07
    a send effect to split the signal so that our
  • 1:07 - 1:08
    arpeggio will continue to be routed
  • 1:08 - 1:10
    through the master output but will
  • 1:10 - 1:13
    also have a duplicate of it's signal
  • 1:13 - 1:15
    with a controllable volume sent
  • 1:15 - 1:18
    in this case to the reverb return.
  • 1:18 - 1:21
    So first we're going to go to our reverb return track
  • 1:21 - 1:24
    and we're going to setup our destination, our receive.
  • 1:24 - 1:26
    We're going to choose Add - Receive.
  • 1:27 - 1:29
    Now it's important to note that the
  • 1:29 - 1:33
    sequence of these effects in the channel strip
  • 1:33 - 1:34
    is very important.
  • 1:34 - 1:37
    In this case the signal from the receive effect is
  • 1:37 - 1:40
    coming in to the chain after the reverb,
  • 1:40 - 1:43
    meaning that it's signal will not be processed
  • 1:43 - 1:44
    by the reverb effect.
  • 1:44 - 1:47
    What we're going to do is move the reverb down
  • 1:47 - 1:50
    so it's in the chain after the receive.
  • 1:50 - 1:52
    Now we're going to go to our arpeggio and we're going to
  • 1:52 - 1:54
    apply a send effect, we're going to choose
  • 1:54 - 1:56
    Add - Send.
  • 1:57 - 1:59
    Now we'll see over in the inspector
  • 1:59 - 2:04
    that we have a choice for what bus to route the send to.
  • 2:04 - 2:06
    The term bus comes from the world of
  • 2:06 - 2:10
    audio mixers in which a bus can be used
  • 2:10 - 2:12
    to route signal from one channel
  • 2:12 - 2:15
    to another or two multiple other channels.
  • 2:16 - 2:18
    In this case the choice is between
  • 2:18 - 2:20
    routing to a receive effect
  • 2:20 - 2:22
    or to a duck volume effect.
  • 2:23 - 2:25
    For more on duck volume effects
  • 2:25 - 2:27
    check out the information linked below.
  • 2:27 - 2:33
    We're going to choose our reverb return receive effect.
  • 2:34 - 2:38
    Now we'll notice that a send level becomes visible.
  • 2:38 - 2:41
    This is how much duplicated signal
  • 2:41 - 2:43
    is being routed to the receive effect.
  • 2:44 - 2:46
    We're going to start playing and turn that up
  • 2:46 - 2:48
    so we can hear the effect happen.
  • 3:10 - 3:12
    And you can hear when I stop it we get
  • 3:12 - 3:14
    that nice reverb tail
  • 3:14 - 3:18
    tailing off there because now the arpeggio sound
  • 3:18 - 3:20
    has been routed through the receive effect,
  • 3:20 - 3:23
    through the SFX reverb plugin
  • 3:23 - 3:27
    and that's creating that nice cycle acoustic impression
  • 3:27 - 3:30
    of our sound being played in a large space.
  • 3:31 - 3:34
    What reverb effects do is they simulate
  • 3:34 - 3:37
    the reflections of sound
  • 3:37 - 3:40
    bouncing off of surfaces and returning to the listener
  • 3:40 - 3:42
    in an acoustic space.
  • 3:42 - 3:44
    Our synthesiser sound never occurred in an acoustic
  • 3:44 - 3:47
    space so it has no natural reflection
  • 3:47 - 3:50
    and we're adding those using the reverb effect.
  • 3:50 - 3:52
    It's worth noting when we work with
  • 3:52 - 3:55
    reverb effects via sends and receives
  • 3:55 - 3:58
    that the dry level should be turned all the way down
  • 3:58 - 4:02
    so that we don't duplicate the unaffected signal.
  • 4:02 - 4:05
    It's also worth noting that the order
  • 4:05 - 4:11
    of the attenuation and the send in our group is important.
  • 4:12 - 4:15
    Currently the attenuation effect is before the send,
  • 4:15 - 4:18
    meaning if we turn down volume
  • 4:18 - 4:21
    using the attenuation effect the signal will stop
  • 4:21 - 4:23
    passing to the send, let's give that a try.
  • 4:26 - 4:29
    We can hear the trail trails off
  • 4:30 - 4:31
    and the sound ends.
  • 4:31 - 4:35
    If we reorder these effects we'll get a different effect.
  • 4:35 - 4:37
    We're going to place the attenuation after the end
  • 4:37 - 4:40
    and what you'll hear is that by
  • 4:40 - 4:44
    placing the send before the attenuation effect
  • 4:44 - 4:48
    the send is not going to have it's volume turned down,
  • 4:48 - 4:50
    it will still receive volume
  • 4:50 - 4:54
    before the attenuation turns the signal down.
  • 4:54 - 4:56
    The result is that the send is going to continue sending
  • 4:56 - 5:01
    signal out even though the main channel is turned off.
  • 5:11 - 5:14
    What we can hear in this case is that whether or not
  • 5:14 - 5:17
    the volume is turned down the send is still
  • 5:17 - 5:20
    getting it's volume out to the reverb return
  • 5:20 - 5:22
    and not what we're hearing is only
  • 5:22 - 5:24
    the wet signal of the reverb
  • 5:24 - 5:27
    coming back in to the main mix via the reverb return.
  • 5:27 - 5:30
    This can be interesting for some non-traditional effects
  • 5:30 - 5:32
    but typically you're going to prefer
  • 5:33 - 5:36
    attenuation followed by your send.
  • 5:36 - 5:39
    It's also worth noting as I mentioned earlier
  • 5:39 - 5:42
    that if the receive effect is after,
  • 5:42 - 5:44
    for example the reverb in this case,
  • 5:53 - 5:56
    we're going to receive no effect, so it's important for any effects
  • 5:56 - 5:58
    that you want to process your signal to be
  • 5:58 - 6:01
    placed in the chain after the receive effect.
  • 6:02 - 6:04
    Now one of the other major uses of sends
  • 6:04 - 6:07
    is that we can use it to process
  • 6:07 - 6:09
    multiple channels with the same effect.
  • 6:09 - 6:11
    So in this track we also have
  • 6:11 - 6:14
    a percussion element.
  • 6:15 - 6:17
    And what we can do, by adding a send
  • 6:17 - 6:21
    to that and routing that also to the reverb,
  • 6:21 - 6:24
    we can add reverb, the same reverb
  • 6:24 - 6:26
    to both of our tracks.
  • 6:38 - 6:41
    So we can hear this gives us a very
  • 6:41 - 6:43
    consistent psycho-acoustic impression,
  • 6:43 - 6:46
    which is especially important if we're aiming for realism.
  • 6:46 - 6:49
    To have things passing in to the same reverbs
  • 6:49 - 6:52
    so that they feel like they're emanating in the same environment.
  • 6:52 - 6:55
    It's also possible to use send and receive effects
  • 6:55 - 6:58
    to route one signal to multiple effects.
  • 6:59 - 7:01
    What we're going to do is we're going to send our
  • 7:01 - 7:05
    arpeggio additionally to our
  • 7:05 - 7:08
    echo effect on our echo return group.
  • 7:08 - 7:10
    We're going to add a receive effect
  • 7:10 - 7:13
    to the echo return and move it up in the
  • 7:13 - 7:16
    chain so that it's signal will pass through the echo.
  • 7:16 - 7:19
    Then on the arpeggio we're going to add a send
  • 7:20 - 7:22
    and assign it's output to
  • 7:23 - 7:25
    the echo return receive.
  • 7:25 - 7:27
    once that's assigned we can test.
  • 7:47 - 7:50
    And you can hear with that nice tail
  • 7:50 - 7:54
    that our arpeggio is now being passed to both
  • 7:54 - 7:58
    the reverb return and the echo return
  • 7:58 - 8:01
    groups that we've created here via the two receive effects.
  • 8:01 - 8:03
    What's great about this setup is that we can
  • 8:03 - 8:07
    control the levels individually using the send volumes
  • 8:07 - 8:09
    and we can really achieve a lot of flexibility
  • 8:09 - 8:11
    in our mix this way.
  • 8:11 - 8:15
    It's also worth noting that this is a common
  • 8:15 - 8:18
    audio industry best practice because
  • 8:19 - 8:22
    processing audio signals, especially with reverb can
  • 8:22 - 8:25
    be very processor intense.
  • 8:25 - 8:28
    Having a reverb on each of these tracks
  • 8:28 - 8:33
    could have a serious CPU resource cost at run time.
  • 8:33 - 8:35
    So minimising our use of effects
  • 8:35 - 8:38
    by sending multiple effects to the same
  • 8:38 - 8:40
    reverb on a return track
  • 8:40 - 8:43
    is going to save us some CPU
  • 8:43 - 8:46
    resources that we'll probably need elsewhere in our game.
Title:
Send and Receive Audio Effects - Unity Official Tutorials
Description:

more » « less
Duration:
08:47

English subtitles

Revisions