Re: [Csnd] [EXTERNAL] [Csnd] MP3 playback grainy in Csound WASM (@csound/browser 6.18.7)

yes, I can hear something wrong in the playback. I think this is a problem with
libsndfile on wasm (it needs to be investigated).

As a solution, you could load the mp3 file onto a table and then read it with
an oscillator etc. This doesn’t use libsndfile so it sounds OK.

<CsoundSynthesizer>
  <CsOptions>
  -odac
  </CsOptions>
  <CsInstruments>
    0dbfs=1
    nchnls=2
    instr 1
      a1 poscil 1, sr/ftlen(1), 1
      outs a1, a1
    endin
  </CsInstruments>
  <CsScore>
    f1 0 88200 49 "beats.mp3" 0 1
    i1 0 10
  </CsScore>
</CsoundSynthesizer>

Alternatively you could use mp3in but for some reason this is excluded in the published
version of 6.18 wasm (?). It is there in version 7.0.0-beta