On Sun, Dec 15, 2019 at 12:37:02PM +0100, Jan Jacob Hofmann wrote: > Dear list, > > for the first time I do have to read a raw soundfile ("bassdrum.raw") > with diskin2. No matter, which setting I do choose for iformat, all I > get is just the same short burst of noise. Is there something general > about dealing with raw soundfiles that I am missing? > If that 'bassdrum.raw' is from the STK 'rawwaves' set, it turns out to be big-endian! (https://github.com/thestk/stk) This isn't going to work in (normally) little-endian Csound. If you have sox, you can fix this with something like: sox -r 16000 -e signed -b 16 --endian=swap bassdrum.raw bassdruml.raw (The 16000 Hz rate is a guess. The README doesn't mention the rate, but the low rate sounds better as the sr than higfher ones when played back. It actually doesn't matter for the raw->raw conversion, as long as something is there.) BTW the manual entry for diskin2 (on the csound.com site) seems not to have been updated for the change in the format specifier. It now requires a negative value like all the other raw filereaders. -- Pete -- Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here