Csound Csound-dev Csound-tekno Search About

[Csnd] Distorted Mono inputs with sounding, diskin, diskin2 and sndwarp

Date2018-03-20 23:29
FromRuben Sverre Gjertsen
Subject[Csnd] Distorted Mono inputs with sounding, diskin, diskin2 and sndwarp
AttachmentsBrokenMonoDiskin.csd  
Hello,

I’m having problems getting proper sound with mono inputs using soundin, diskin, diskin2 and sndwarp. I attach a csd file.

I’m using two input files in this example.

Wav 96 kHz 32-bit mono:
Ray_HansdpaDN32.wav

Wav 96 kHz 24-bit mono:
Ray_HansdpaDN.wav

With this test score I find:
32-bit file with soundin is heavily clipped, not recognizable.
24-bit file with soundin is ok.
32-bit file with sndwarp is heavily clipped.
24-bit file with sndwarp is heavily clipped.
I have tested this with Csound 6.10, 6.9.1 and 5.18 with the same result.

I also came across cases where the clipping would go on and off in the middle of reading a file, this looks very unstable. There doesn’t seem to be a problem at all with 16-channel inputs. 

Any ideas why this is happening or workarounds?
Should all inputs be converted to a particular bit-rate and samplerate? I would like to use the best available sound quality.

Best
Ruben Gjertsen





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

Date2018-03-21 00:32
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Distorted Mono inputs with sounding, diskin, diskin2 and sndwarp
It seems the workaround is to add an empthy channel 2 to all the sound files and read them as stereo. That sounds much better. It would be great to have working mono inputs though.

> 21. mar. 2018 kl. 00.29 skrev Ruben Sverre Gjertsen :
> 
> Hello,
> 
> I’m having problems getting proper sound with mono inputs using soundin, diskin, diskin2 and sndwarp. I attach a csd file.
> 
> I’m using two input files in this example.
> 
> Wav 96 kHz 32-bit mono:
> Ray_HansdpaDN32.wav
> 
> Wav 96 kHz 24-bit mono:
> Ray_HansdpaDN.wav
> 
> With this test score I find:
> 32-bit file with soundin is heavily clipped, not recognizable.
> 24-bit file with soundin is ok.
> 32-bit file with sndwarp is heavily clipped.
> 24-bit file with sndwarp is heavily clipped.
> I have tested this with Csound 6.10, 6.9.1 and 5.18 with the same result.
> 
> I also came across cases where the clipping would go on and off in the middle of reading a file, this looks very unstable. There doesn’t seem to be a problem at all with 16-channel inputs. 
> 
> Any ideas why this is happening or workarounds?
> Should all inputs be converted to a particular bit-rate and samplerate? I would like to use the best available sound quality.
> 
> Best
> Ruben Gjertsen
> 
> 
> 
> 
> 
> 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
> 

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

Date2018-03-21 16:16
FromVictor Lazzarini
SubjectRe: [Csnd] Distorted Mono inputs with sounding, diskin, diskin2 and sndwarp
I don’t know about sndwarp because I could not test it here with my soundfile, but I tested a mono file at 96k with
soundin and diskin and could not find any problems.  This is the latest (6.11), but since your problem was with
several versions of Csound, I’d risk saying the problem is with the input soundfile. We can only assess it if
we have the soundfile to test.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 20 Mar 2018, at 23:29, Ruben Sverre Gjertsen  wrote:
> 
> Hello,
> 
> I’m having problems getting proper sound with mono inputs using soundin, diskin, diskin2 and sndwarp. I attach a csd file.
> 
> I’m using two input files in this example.
> 
> Wav 96 kHz 32-bit mono:
> Ray_HansdpaDN32.wav
> 
> Wav 96 kHz 24-bit mono:
> Ray_HansdpaDN.wav
> 
> With this test score I find:
> 32-bit file with soundin is heavily clipped, not recognizable.
> 24-bit file with soundin is ok.
> 32-bit file with sndwarp is heavily clipped.
> 24-bit file with sndwarp is heavily clipped.
> I have tested this with Csound 6.10, 6.9.1 and 5.18 with the same result.
> 
> I also came across cases where the clipping would go on and off in the middle of reading a file, this looks very unstable. There doesn’t seem to be a problem at all with 16-channel inputs. 
> 
> Any ideas why this is happening or workarounds?
> Should all inputs be converted to a particular bit-rate and samplerate? I would like to use the best available sound quality.
> 
> Best
> Ruben Gjertsen
> 
> 
> 
> 
> 
> 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
> 


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