< Return to Video

Sonic Visualizer Tutorial

  • 0:00 - 0:05
    One of the many more important parts of
    being a sound designer is to be able to
  • 0:05 - 0:11
    find a way to dig deep into analysing
    digital sound, so there are many programs
  • 0:11 - 0:17
    out there which allow for composers or
    sound artists or musicologist, even people
  • 0:17 - 0:22
    who are interested in discovering what is
    happening in sound and music to analyze
  • 0:22 - 0:28
    that. So, we'll be looking at a top of the
    spectrum analyzer. This is a program which
  • 0:28 - 0:33
    dissects the sound and breaks it down into
    understanding all the different overtones,
  • 0:33 - 0:37
    the, the different frequencies that are
    resonating as part of its spectrum. So
  • 0:37 - 0:41
    when we do that, we can use that for
    creating the basis for our composition by
  • 0:41 - 0:46
    working on that analysis or you can use it
    for musicological or theoretical goals,
  • 0:46 - 0:51
    where you want to discover some of the
    internal patterns that are happening in,
  • 0:51 - 0:56
    in the sound. So, what I have here is a
    website, sonicvisualizer.org. This is a
  • 0:56 - 1:01
    program, it's a free program for
    Macintosh, Windows, and Linux that is a
  • 1:01 - 1:07
    spectrum analysis program but it has many
    more features to it that, that can be used
  • 1:07 - 1:13
    for all sorts of applications. It's a
    design at the Center for Digital Music at
  • 1:13 - 1:19
    Queen Mary University of London. And these
    researchers are looking at broadly, the
  • 1:19 - 1:24
    questions of analysis of sound and audio
    files for musicologists, for archivists,
  • 1:24 - 1:28
    for signal processing researchers,
    composers, anybody who would like to find
  • 1:28 - 1:32
    more about what's happening inside the
    sound of audio files. So, you can see here
  • 1:32 - 1:37
    from their site the opening page gives you
    information about where funding for this
  • 1:37 - 1:41
    comes from. Over here, these are, are
    important links, there's some great
  • 1:41 - 1:45
    tutorials here. So, if you go into the
    documentation and then take a look here,
  • 1:45 - 1:49
    you will see there's a reference manual
    which is really a very thorough manual
  • 1:49 - 1:53
    which takes you through all the different
    components of that and then if there are
  • 1:53 - 1:57
    tutorials that you're looking at
    specifically for musicologists guide to
  • 1:57 - 2:02
    Sonic Visualizer, which is many of the
    applications that people at the CHARM
  • 2:02 - 2:06
    Center used as well. But then, there' s
    some brief tutorials on individual
  • 2:06 - 2:10
    sections in that. So, I suggest as you
    learn this, take a look at this page
  • 2:11 - 2:15
    because there's quite a bit of references
    here. If you click on the reference menu
  • 2:15 - 2:19
    for a second, we would see then this whole
    list of options, which take us through
  • 2:19 - 2:24
    very throughly all the different aspects
    of this program and what it can do. So
  • 2:24 - 2:28
    lots of good information here. the first
    thing in this tutorial is, is
  • 2:28 - 2:32
    understanding the difference between panes
    and layers, which I'll come back to in
  • 2:32 - 2:36
    just a second so very good tutorial
    information here. So, let's go to the
  • 2:36 - 2:41
    program. When you go to the Download page
    here if we click on Download, then you'll
  • 2:41 - 2:45
    see the options here. You can download the
    Linux, or the Macintosh, or the Windows
  • 2:45 - 2:50
    version of this. You can also go for the
    source code, if you prefer. the important
  • 2:50 - 2:54
    part of this program is you will download
    the Sonic Visualiser application and
  • 2:54 - 2:59
    whatever platform that is appropriate for
    you. But then, the next thing you'll need
  • 2:59 - 3:03
    to do is to download a lot of the analysis
    and effects plugins. These are the, in
  • 3:03 - 3:07
    some ways, the most important part of this
    program, which allows us to, to get
  • 3:07 - 3:11
    involved with certain kind of analysis
    detail in coming from these plugins. So,
  • 3:12 - 3:16
    and if we go over here, we will see this
    other category of Vamp plugins. So, when
  • 3:16 - 3:20
    you click on this and we open that, we
    will see this other page which describes
  • 3:20 - 3:25
    what these plugins are doing and so forth,
    what the Vamp process is. if we click on
  • 3:25 - 3:31
    here, then get some plugins, find links to
    downloadable Vamp plugins, it takes us to
  • 3:31 - 3:36
    a page where we can now download various
    Vamp plugins for whichever architecture we
  • 3:36 - 3:41
    have. And I would suggest whichever
    version platform you're working on, go
  • 3:41 - 3:45
    ahead and download all of these because
    the will all be useful in giving
  • 3:45 - 3:49
    flexibility for how to use this program.
    As you can see, there are quite a few of
  • 3:49 - 3:54
    these. Generally, when you download these,
    you will install them by copying the
  • 3:54 - 3:58
    plugins, put, putting them into the files
    that you download, putting them into
  • 3:58 - 4:03
    various locations on your computer and
    you'll see here the various places where
  • 4:03 - 4:07
    you would put those. So, for example, I'm
    using a Macintosh, if I go to the Main
  • 4:07 - 4:13
    Library folder on the hard drive, open up
    the Audio folder and the plugins and
  • 4:13 - 4:18
    there's not one already created, create a
    Wamp plugin, and then just copy all the
  • 4:18 - 4:22
    files into that and then when you reopen
    the Sonic Visualiser application, they
  • 4:22 - 4:27
    will all be accessible from that. So, it's
    not that difficult to install them but
  • 4:27 - 4:30
    this, this extra step of getting the
    plugins is, is important for using this,
  • 4:31 - 4:34
    this program. So now, let's go to the
    program. Once you've installed the
  • 4:34 - 4:39
    program, and you open it up, you will get
    something like this. This is the a blank
  • 4:39 - 4:43
    screen. So, you'll see here the commands
    at top, which we'll talk, take lot, take a
  • 4:43 - 4:48
    survey. over here, we'll have various
    layers and panes that we can pull up and
  • 4:48 - 4:53
    then, you'll have an output volume here.
    So, the first thing we might want to do is
  • 4:53 - 4:58
    to load in an audio file. And so, see that
    laid out across our screen here. So
  • 4:58 - 5:03
    obviously, there's some standard kind of
    transport and file functions that at the
  • 5:03 - 5:07
    top of here, plus we can change the
    function of our cursor from a Grab to a
  • 5:07 - 5:12
    Select, to Edit, and so forth. So, we'll
    come back to those. So, the first thing
  • 5:12 - 5:17
    would be, be to, to load some audio file.
    I'm going to load one that I've just
  • 5:17 - 5:23
    recently did. This is an audio file of an
    excerpt of a composition of my own called
  • 5:23 - 5:28
    Sundial, which was a piece written for
    digital audio with a solo dancer a few
  • 5:28 - 5:33
    years ago. And this was constructed using
    a Kyma system primarily where, where the
  • 5:34 - 5:39
    sounds I used in this using some granular
    synthesis and some patches. So what I'm
  • 5:39 - 5:43
    going to do is we'll listen to one, I
    think it's about one minute and twenty
  • 5:43 - 5:46
    seconds.
    We'll just listen to this and then I'll
  • 5:46 - 5:51
    take some excerpts from this and we'll try
    to transform them through going through
  • 5:51 - 5:54
    some of these categories. You will see
    here, under transform, we can have
  • 5:54 - 5:58
    categories of, these are the effects
    processors that you put into the Va mp
  • 5:58 - 6:03
    folder. So, whatever you put in there will
    show up under this transformed list. So,
  • 6:03 - 6:07
    under classification different kind of
    similarity features here. If you want to
  • 6:07 - 6:11
    look at the ones that are giving us
    information about key internality, these
  • 6:11 - 6:16
    are the different analysis programs that
    will affect that or we can go under sort
  • 6:16 - 6:21
    of the more low level features such as
    amplitude or frequency coefficient and so
  • 6:21 - 6:25
    forth. Now, if we wanted to try to
    identify notes in a chord or harmonic
  • 6:25 - 6:31
    changes information this would be routines
    for that. time onset, for example, simple
  • 6:31 - 6:35
    percussion onset, which maybe we'll run in
    just a second, so you can sort of find out
  • 6:35 - 6:39
    where there are beats in the piece, where
    there are a certain kind of energy points
  • 6:39 - 6:43
    that we want to detect. And then different
    ways of visualizing it, through. through a
  • 6:43 - 6:47
    spectrogram or a chromogram, different
    kind of tools that are here. You can also
  • 6:47 - 6:50
    access the same ones here just by plugging
    in a name, if you know what it is, you
  • 6:50 - 6:55
    need to get to quicker. So, it's the same
    list, but just a different category or by
  • 6:55 - 6:59
    where these, if you know that it came from
    a particular maker, such as from Queen
  • 6:59 - 7:04
    Mary, here is the list of ones they, they
    made themselves. So different ways of
  • 7:04 - 7:08
    finding those. So, let's listen to the
    following first and then, we will apply
  • 7:08 - 8:02
    some of these analysis effects to it.
    Okay.
  • 8:02 - 8:38
    So, the file is a stereo file here. Once
    again, we can Zoom in or out with this
  • 8:38 - 8:45
    button scroll down here or we can just
    click and drag the center down here in the
  • 8:45 - 8:49
    Scroll command. We can also, if you want
    to see more of the amplitude of various
  • 8:49 - 8:53
    spectrums, we can increase the, the size
    of that so we can see a little bit more of
  • 8:53 - 8:57
    what's happening within the wave form.
    maybe if I want to scroll out a little bit
  • 8:57 - 9:06
    more. And then let's go back, maybe
    towards the beginning and just pull up
  • 9:06 - 9:14
    only a part of this. So, if I go back and
    start at the beginning of this for a
  • 9:14 - 9:20
    second. Okay, I'm just going to randomly
    select a part of this wave form. So, up
  • 9:20 - 9:24
    here, we can change to the Select tool an
    d then, let's say, if we start dragging
  • 9:24 - 9:29
    about here, select all the way maybe down
    here. I don't know where that is. And if
  • 9:29 - 9:34
    we want to listen to this loop, just this
    section, we go up here to the Playback. We
  • 9:34 - 9:38
    can now turn on the loop Playback, and
    also turn on the constrained Playback to
  • 9:38 - 9:43
    selection. You can do this with just the L
    or the S command on your keyboard. so if
  • 9:43 - 9:48
    we do that, turn that on. So now, when I
    hit Play or hit my Space bar, hit Play, it
  • 9:48 - 9:57
    will just continually loop this section.
    Okay. So, if, if you want to find out more
  • 9:57 - 10:06
    what's going on inside this section, now
    let's Zoom in a little more. And we can
  • 10:06 - 10:12
    sort of hear what, let me get that
    centered. So now, if I want to slow it
  • 10:12 - 10:20
    down, to hear it more individually, we can
    keep hitting the slow down. [MUSIC] Do it
  • 10:21 - 10:33
    again to even slow it down further. So,
    we're getting a little bit more to
  • 10:33 - 10:47
    understanding what each articulation it
    sounded like. Alright, now, let's apply
  • 10:47 - 10:51
    some of the analysis of this to see what
    we can discover more that's inside here.
  • 10:51 - 10:55
    So, one of the first things would be to go
    to the Pane window and we're looking at
  • 10:55 - 11:00
    the wave form now, but if I wanted to go
    to a spectrogram the spectrogram will
  • 11:00 - 11:04
    analyze the, obviously, the spectrum of
    each of the sounds and put it into a
  • 11:04 - 11:09
    second chart below that so I click on
    that. We then get to see what are the
  • 11:09 - 11:14
    content of the various spectrum of sounds
    occurring here. Now, on, on the left side
  • 11:14 - 11:19
    here, we do see the frequency range from
    86 Hertz which we're seeing at the bottom
  • 11:19 - 11:24
    all the way up to 21 on the scale, but
    we're probably topping out in our spectrum
  • 11:24 - 11:28
    around 18,000 is where this particular
    recording was. Now, you'll notice as I
  • 11:28 - 11:33
    move my mouse over the various spectral
    points, we do get to see an analysis of
  • 11:33 - 11:38
    what that's pointing to in the spectrum.
    So, we can see what pitch it is or, or a
  • 11:38 - 11:44
    small range of where the pitch might be,
    and then the frequency then the decibel
  • 11:44 - 11:49
    level of that as well. So, you're getting
    a lot of information here. If I want to
  • 11:49 - 11:53
    maybe scroll into this a little bit
    tighter and then, pull down to go down to
  • 11:53 - 11:58
    the bottom of the spectrum. Now, we can
    see all the way down to 43 Hertz, we start
  • 11:58 - 12:04
    to see where the fundamental pitches are,
    if we just put our mouse over, say, a
  • 12:04 - 12:10
    fundamental like that, we can start to see
    its -thirteen db, it's at a frequency of
  • 12:10 - 12:16
    215 to 258, we're still pretty wide. If I
    Zoom in more, I would be able to isolate
  • 12:16 - 12:22
    that to a closer range. but now, we're
    getting more information. If I wanted to
  • 12:22 - 12:26
    Zoom in even further and, you know, pull
    down, so now, when I start to look at this
  • 12:26 - 12:31
    particular spectrum here, I can see all
    the overtones that are present in that or
  • 12:31 - 12:35
    all the parts of the spectrum and I can
    start to identify where the amplitude and
  • 12:35 - 12:39
    the frequencies are for that, for example.
    So, the, the spectrogram gives you a lot
  • 12:39 - 12:44
    of information about what is happening
    inside the wave form that's, that's going
  • 12:44 - 12:49
    to report it for analysis purposes later.
    let me kind of continue on with this. So,
  • 12:49 - 12:53
    as you get through these analysis forms,
    you can click the X and that will, that
  • 12:53 - 12:57
    will go away. We could be adding other,
    other kinds of panes I'll, I'll let you
  • 12:57 - 13:01
    explore that level, I was actually going
    to skip around a little bit. If I do the
  • 13:01 - 13:05
    peak frequency spectrogram as next now,
    I'll get rid of the spectrogram for a
  • 13:05 - 13:11
    second. Let's just look at, this is
    another analysis of the, the spectrum but
  • 13:11 - 13:17
    it shows us where the peaks of, of, which
    are the loudest partials in the spectrum.
  • 13:18 - 13:24
    So here, we start to get a little bit more
    clear information about exactly what is
  • 13:24 - 13:28
    going on in these various points. And over
    here, we can see a little a piano stuff,
  • 13:28 - 13:33
    which will help us understand where are
    the pitches and partials are. So, if this
  • 13:33 - 13:38
    was close to, looks like an A, is that
    what it is? No, that is like a G here. So,
  • 13:38 - 13:43
    we've got a G fundamental on the bottom
    here but we're not really hearing anything
  • 13:43 - 13:48
    coming out of that point. The closest
    loudest partial maybe starting here at 75
  • 13:48 - 13:55
    Hertz. Or if we look up there we can get a
    clean indication of where that is. So
  • 13:55 - 14:02
    here, as I put my cursor over certain
    ones, let me scroll a little b it more on
  • 14:02 - 14:09
    this. So now, we can start to really
    pinpoint in as to where these markers are
  • 14:09 - 14:15
    and start to see where they 86 Hertz what
    pitch it is, the, the decibel range. So
  • 14:15 - 14:20
    now, we're getting much more specific
    information about the, where the peaks of
  • 14:20 - 14:24
    the spectrum are occurring. so, let's
    listen to this once again to see if we
  • 14:24 - 14:36
    can. So, you can tell where the pitched
    parts are, where you hear the, the female
  • 14:36 - 14:43
    voice, and then a lot of the sort of
    granular noise sound, we can then identify
  • 14:43 - 14:47
    where those, it's, it's a spread of
    different frequencies that are causing
  • 14:47 - 14:49
    that sort of noise sweep sound that's,
    that's coming through it. So, we're, we're
  • 14:49 - 14:53
    getting a little bit different picture of
    what's happening within the sound by, by
  • 14:53 - 14:57
    doing this kind of analysis. let's
    continue on for a second. If we go over to
  • 14:57 - 15:02
    the transform, as I mentioned here, we can
    get a lot more information about the
  • 15:02 - 15:07
    structure by looking at the transform. And
    I can close this pane for a second so we
  • 15:07 - 15:13
    would see the information put on top of
    this in a different layer. if I look
  • 15:13 - 15:17
    around and look for perhaps can we
    identify a key in this maybe at this
  • 15:17 - 15:23
    point, if it runs a key, we can estimate
    the key of the music. If there is all that
  • 15:23 - 15:28
    fitting into one particular key, then it
    gives us sort of parameter, we can start
  • 15:28 - 15:32
    out with a tuning of a 440. And so, if we
    click okay, then you start to see here, it
  • 15:32 - 15:36
    quickly analyzes these very sections and
    see it says, you know, I was going to, I
  • 15:36 - 15:40
    was zooming in we have, right through
    here, something that is an F sharp. It
  • 15:40 - 15:44
    maybe moves up to a G tonality here and
    then down to a C sharp minor. So, it's
  • 15:45 - 15:50
    estimating whatever pitches are, are most
    prevalent there and then trying to put
  • 15:50 - 15:55
    them into some key relationship. So, a
    very useful kind of understanding for it
  • 15:55 - 16:01
    or figuring out is there a particular
    modulation or a particular relationship of
  • 16:01 - 16:05
    keys in this section? Obviously, this
    section, in my mind when I composed it,
  • 16:05 - 16:10
    was not written with any particular key
    relationship but they do group themselves
  • 16:10 - 16:15
    into these sections. So, let's li sten to
    this again with those, that information.
  • 16:17 - 16:29
    So, you can hear the C sharp change keys
    from the G major here when we added one
  • 16:29 - 16:35
    more pitch into the, the vocalozation
    there. So, we created a different kind of
  • 16:35 - 16:40
    a relationship. So, that's, that's a very
    useful tool for figuring out key
  • 16:40 - 16:44
    relationships. So, there are many more out
    here. I will let you do your own in
  • 16:44 - 16:49
    playing through with this. So, when you
    download it let's go quickly maybe to one
  • 16:49 - 16:53
    of the on the time onset, for example. If
    I pick, pick up the simple precussion
  • 16:53 - 16:58
    onset protector detector what it is going
    to do is try and figure out are there
  • 16:58 - 17:02
    energy points that would identify beats
    within this so we can then set some
  • 17:02 - 17:07
    threshold for that, but let's just leave
    it fall for a second and see what it
  • 17:07 - 17:11
    discovers. And then, you'll see here that
    it identifies peak points and, and, and
  • 17:11 - 17:16
    labels them with certain demarkations of
    where the peak energies were and there are
  • 17:16 - 17:20
    quite a few on this one, obviously. And
    then, we can start to look at each one
  • 17:20 - 17:24
    individually, the time value they occur is
    of worth. But we can also move into
  • 17:25 - 17:32
    another kind of understanding where we do
    say, note onsets or tempo, try to figure
  • 17:32 - 17:38
    out can it detect beats where the beats
    are in this, and it will estimate a beat
  • 17:38 - 17:47
    and beat locator. And so, it does give us
    some beats here. What I like about this
  • 17:47 - 17:56
    one it does give you a little percussive
    sound on where it identified beats and
  • 17:56 - 18:05
    which allows you to, at a layer of
    figuring out where those structures are.
  • 18:06 - 18:12
    So, we're getting more information about
    the rhythmic structure of this particular
  • 18:12 - 18:18
    section, if I continue on into this, for
    example, and go to see if it can estimate,
  • 18:18 - 18:24
    let's see, let's try another one. maybe it
    can do let's try at bars or in beat
  • 18:24 - 18:31
    estimate locations and see what it gives
    us on that. [MUSIC] So, I didn't really
  • 18:31 - 18:40
    find any bars identified in this category.
    let's, moving them down to, how about if
  • 18:40 - 18:47
    it does maybe a tempo. Can it tell us
    tempo on this? So, how fast is the tempo
  • 18:47 - 18:57
    moving through? So, once we get tempo
    markings here. I don't see wh ere it gives
  • 18:57 - 19:03
    any information there. so you, you can
    explore this where, there are all sorts of
  • 19:03 - 19:09
    other information, sometimes it will be
    able to find that, sometimes not on that.
  • 19:09 - 19:16
    But there are tons of interesting kind of
    information that you can pull out, extract
  • 19:16 - 19:21
    from these various kinds of tools that
    you, you can pull into it. so I would, I
  • 19:21 - 19:25
    would really encourage you to work with
    this program and to use it for many times,
  • 19:26 - 19:30
    for starting a composition. You may want
    to start a composition where you take
  • 19:30 - 19:34
    another audio file or another musical
    example and use that as the basis for your
  • 19:34 - 19:38
    sound design. But then, do extensive
    analysis on that to pull out information
  • 19:38 - 19:42
    about your tempo, your, your rhythmic
    units key signatures. different kind of
  • 19:42 - 19:46
    timbres that you want to focus on which
    you can extract the information from the
  • 19:46 - 19:49
    spectrum and then use them in other
    compositions. And then, if you want to
  • 19:49 - 19:54
    analyze other compositions and sort of to
    see how other composers and other sound
  • 19:54 - 19:58
    designers have put together works, this is
    a great program for unveiling that. So,
  • 19:58 - 20:02
    it's one that I suggest, you go through
    the Reference Manual and go through all
  • 20:02 - 20:07
    the different units. But it does give you
    a lot of great tools for doing sound
  • 20:07 - 20:11
    analysis. The proceeding program is
    copyrighted by Emory University.
Title:
Sonic Visualizer Tutorial
Video Language:
English
jngiam edited English subtitles for Sonic Visualizer Tutorial
jngiam added a translation

English subtitles

Revisions