#29 Auto correct wave files according to sample rate

0.7.x
open
nobody
Audio (5)
5
2005-07-29
2005-03-06
No

I tried to import a series of waves in various
formats and rates (44100, 48000, mono, stereo,
16, 24 and 32-bit float) in a wave track. Although
the thing works, the pitch of the waves (and their
duration) is changed of about a semitone and
half. A E minor tonality becomes something
imprecise inbetween F minor and G minor. This
is quite annoying, as the waves sampled from
instruments cannot be mixed with the midi
synthesis, that is more or less what muse is for.

I upload one of the files that sounds at correct
pitch with aplay, play and audacity, but whose
pitch is altered in MUSE.

Discussion

  • Robert Jonsson
    Robert Jonsson
    2005-03-10

    Logged In: YES
    user_id=81832

    Hi,
    The setting in Jack regulates which sample rate is currently used. Because
    MusE does not resample files when they are imported you would get this
    behaviour. (44100 <--> 48000 is very close to a semitone)
    The current solution is to resample the files before adding them to MusE,
    use sndfile-resample for instance (program of the libsndfile package..or was
    it libsamplerate).

     
  • Logged In: YES
    user_id=360482

    Ok, thanks. Actually, before posting, I tried to
    resample the waves at 48000 and at 40000, but it
    seemed to me that the pitch that was taken in was
    the same. Now I will try to change the default jackd
    rate.

    However, that could be a problem for Muse, don't you
    agree? From an audio program I would at least
    expect that it fires the wave data at correct pitch, i.e. if
    I have a 48000hz only physical board and some
    sample at 22khz, I expect that the program reading
    those waves internally resamples them at the correct
    output rate. That applies also if the output device is
    logical device as jackd, so if jackd cannot resample
    the waves, you should.

    Resampling waves is not that hard, and doing it at
    load time does not cause live performance
    degradation, so I would recommend to put this in the
    to-do list for version 1.0, at least.

    Anyhow, thnx 10000 and Muse RULEZ :-)

    Gian.

     
  • Robert Jonsson
    Robert Jonsson
    2005-07-29

    Logged In: YES
    user_id=81832

    Changing to a feature request

     
  • Robert Jonsson
    Robert Jonsson
    2005-07-29

    • labels: 579222 --> Audio
    • milestone: 458782 --> 0.7.x
    • summary: Wave pitch changed --> Auto correct wave files according to sample rate