samples to milliseconds conversion

Discussion in 'General Chat' started by Frank, Oct 5, 2003.

  1. Frank

    Frank Guest

    Hi,
    Is there a calculator or easy math equation that I could use for this? I'm
    working at 44.1kHz. Specifically, I'm looking to find out how many msecs is
    1030 samples at 44.1kHz.

    Thanks,
    Frank
     
    Frank, Oct 5, 2003
    #1
  2. Rather than kilohertz, think of samples per second. At 44.1 KHz there are:

    44,100 samples
    --------------
    second

    You're interested in time per sample rather than samples per time, however,
    so you invert:

    second
    --------------
    44,100 samples

    Further, you're interested in milliseconds rather than seconds, so:

    second 1000 miliseconds
    -------------- X ----------------
    44,100 samples second

    The seconds divide out leaving:

    1000 miliseconds
    ---------------- = 0.0226757 milliseconds per sample
    44,100 samples

    The time in milliseconds for 1030 samples is therefore:

    1030 X 0.0226757 = 23.356009 millisconds

    Note that the apparant precision of the result exceeds that of the input
    values, so it's better to express the result as 23.356 or perhaps just
    23.36 milliseconds.

    And you thought you would never use that high school algebra, didn't you!
     
    Michael R. Kesti, Oct 5, 2003
    #2
  3. Frank

    Joe Boerst Guest

    Frank-
    one formula you can use:

    1000 / (sample rate / number of samples) = milliseconds

    for your example: 44100 / 1023 = 43.1085044

    1000 / 43.1085044 = 23.19727891 milliseconds
     
    Joe Boerst, Oct 5, 2003
    #3
  4. Frank

    Sean Conolly Guest

    If your calculator has a 1/X key, it's simply 44.1 / 1030 followed by the
    1/X key.

    Sean
     
    Sean Conolly, Oct 5, 2003
    #4
  5. Frank

    Scott Dorsey Guest

    If there are 44,100 samples in every second, there are 44.1 samples in every
    millisecond.

    If there are 44.1 samples in every millisecond, how many milliseconds are
    in 1030 samples?
    --scott
     
    Scott Dorsey, Oct 5, 2003
    #5
  6. Frank

    Frank Guest

    Thanks everyone for the help! I'm a drummer, so you can imagine how good my
    math skills are ;-)
     
    Frank, Oct 5, 2003
    #6
  7. Frank

    EnJneer Guest

    Or, you can forgoe the equations and download the excellent freeware music
    calculator, Freequency. I believe the URL is: www.freequency.com
     
    EnJneer, Oct 6, 2003
    #7
  8. Frank

    Brian Takei Guest

    Err, I think it's a big mistake to forgo the ability to solve such the
    problem. It's well worth the effort to solve that basic one, which
    shouldn't be too hard for someone really interested in life with a DAW,
    especially after Scott's rephrasing.

    - Brian
     
    Brian Takei, Oct 6, 2003
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...