Csound Csound-dev Csound-tekno Search About

[Csnd] unwanted noise passing sound through

Date2018-12-23 03:16
FromEd Cashin
Subject[Csnd] unwanted noise passing sound through
Hi!

I am using JACK on Linux with Renoise (tracker) as an audio source.  My immediate goal was to use reverbsc in csound to add stereo reverb to tracks in Renoise, but I simplified my use case when I noticed some extra noise.  I'm following an example by Iain McCurdy:

http://iainmccurdy.org/CsoundRealtimeExamples/LiveAudioIn/ins.csd

It sounds like perhaps the kind of noise you'd get treating interlaced two-channel audio as mono, but I either am too new to csound to notice my mistake, or else I'm using the opcodes correctly.  Earlier I was experiencing the same problem when I was using *ins* instead of *inch*.  Here's a table of what happens in different circumstances:

; into csound from renoise out to audio - unwanted noise
; into csound from wav out to audio     - unwanted noise
; into csound from wav out to wav       - joy
; into csound from renoise out to wav   - unwanted noise
; synthesis in csound to wav  - joy
; synthesis in csound to audio - joy

Here is what I'm trying to do:



--0dbfs=1 -+rtaudio=jack -r 96000 -k 24000 -3 -iadc -odac -b32 -dm0



nchnls	= 	2

instr	1
	ainL, ainR	inch 1, 2
;	ainL, ainR	diskin2 "neutron.wav", 0.5, 0, 1
	outch	1, ainL, 2, ainR
;	fout "ins-min.wav", 8, ainL, ainR
endin




i 1 0 3600




Here's what it sounds like when noisy:
http://noserose.net/ins-min.wav

Here's what it sounds like when rendered from Renoise:
http://noserose.net/ins-ref.wav

(The two are slightly different parts of the same track but reflect the difference in sound between what I'm expecting and what I'm hearing.)

Thanks much!

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-12-23 09:03
FromVictor Lazzarini
SubjectRe: [Csnd] unwanted noise passing sound through
Try reducing your kr from 24000. It may be too high. It's easier not to set it at all and
ser ksmps instead. So try removing -k 24000 and -r 96000 and then adding this
to the Csound code

sr=96000
ksmps=32
nchnls=2

...

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 23 Dec 2018, at 03:26, Ed Cashin  wrote:
> 
> Hi!
> 
> I am using JACK on Linux with Renoise (tracker) as an audio source.  My immediate goal was to use reverbsc in csound to add stereo reverb to tracks in Renoise, but I simplified my use case when I noticed some extra noise.  I'm following an example by Iain McCurdy:
> 
> http://iainmccurdy.org/CsoundRealtimeExamples/LiveAudioIn/ins.csd
> 
> It sounds like perhaps the kind of noise you'd get treating interlaced two-channel audio as mono, but I either am too new to csound to notice my mistake, or else I'm using the opcodes correctly.  Earlier I was experiencing the same problem when I was using *ins* instead of *inch*.  Here's a table of what happens in different circumstances:
> 
> ; into csound from renoise out to audio - unwanted noise
> ; into csound from wav out to audio     - unwanted noise
> ; into csound from wav out to wav       - joy
> ; into csound from renoise out to wav   - unwanted noise
> ; synthesis in csound to wav  - joy
> ; synthesis in csound to audio - joy
> 
> Here is what I'm trying to do:
> 
> 
> 
> --0dbfs=1 -+rtaudio=jack -r 96000 -k 24000 -3 -iadc -odac -b32 -dm0
> 
> 
> 
> nchnls    =    2
> 
> instr    1
>    ainL, ainR    inch 1, 2
> ;    ainL, ainR    diskin2 "neutron.wav", 0.5, 0, 1
>    outch    1, ainL, 2, ainR
> ;    fout "ins-min.wav", 8, ainL, ainR
> endin
> 
> 
> 
> 
> i 1 0 3600
> 
> 
> 
> 
> Here's what it sounds like when noisy:
> http://noserose.net/ins-min.wav
> 
> Here's what it sounds like when rendered from Renoise:
> http://noserose.net/ins-ref.wav
> 
> (The two are slightly different parts of the same track but reflect the difference in sound between what I'm expecting and what I'm hearing.)
> 
> Thanks much!
> 
> 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