Csound Csound-dev Csound-tekno Search About

[Csnd] Why is this csd crackling?

Date2013-09-01 16:11
Fromzappfinger
Subject[Csnd] Why is this csd crackling?
This is for a project where upto 12 participants (now 5) breath into a
'breath catcher' and this is made visible and audible with csound.
On Windows, with Csound 5.13 , there is annoying crackling at places, as if
distorted. I made sure there are no samples out of range. 
To test this, csound should be started with the breath.csd file.
Then OSCreplay.py should be run with the pickle file in the same directory.
The 'stream.pickle' file is just a recording of the OSC messages coming form
the sensor software.

Richard 

On OS X, with CSound 6 the sound is clean. Unfortunately I cannot try Csound
6 on Windows, since there is a problem with the OSC opcodes it seems - see
my other post.
stream.pickle
  
OSCreplay.py
  
breath.csd   



--
View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-09-01 16:50
FromVictor Lazzarini
SubjectRe: [Csnd] Why is this csd crackling?
Without looking at this, just a suggestion: are you sure that the crackling is not dropouts? 
On 1 Sep 2013, at 16:11, zappfinger wrote:

> This is for a project where upto 12 participants (now 5) breath into a
> 'breath catcher' and this is made visible and audible with csound.
> On Windows, with Csound 5.13 , there is annoying crackling at places, as if
> distorted. I made sure there are no samples out of range. 
> To test this, csound should be started with the breath.csd file.
> Then OSCreplay.py should be run with the pickle file in the same directory.
> The 'stream.pickle' file is just a recording of the OSC messages coming form
> the sensor software.
> 
> Richard 
> 
> On OS X, with CSound 6 the sound is clean. Unfortunately I cannot try Csound
> 6 on Windows, since there is a problem with the OSC opcodes it seems - see
> my other post.
> stream.pickle
>   
> OSCreplay.py
>   
> breath.csd   
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-09-01 16:57
Fromzappfinger
Subject[Csnd] Re: Why is this csd crackling?
What are dropouts?

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727295.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-09-01 17:20
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Why is this csd crackling?
when, for some reason, audio samples are not delivered in time to the audio output buffer, gaps
are created, with one of the symptoms being cracks or clicks.

Victor
On 1 Sep 2013, at 16:57, zappfinger wrote:

> What are dropouts?
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727295.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-09-01 17:38
Fromzappfinger
Subject[Csnd] Re: Why is this csd crackling?
The -B and -b flags definitely have influence here. I tried from very low
(much crackling) to rather high - less crackling but still present.
What are csounds default settings for these? (when omitted)

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727299.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-09-01 18:56
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Why is this csd crackling?
It depends on the system, but I'd reckon -b1024 -B2048?
On Windows, mme and directX outputs are pretty bad, you need a large buffer (probably -b2048 and -B4096 minimum),
try using ASIO if possible (or WDM if there is one). I guess also you should get advice from other Windows users
regarding this (I am not one).

Victor

On 1 Sep 2013, at 17:38, zappfinger wrote:

> The -B and -b flags definitely have influence here. I tried from very low
> (much crackling) to rather high - less crackling but still present.
> What are csounds default settings for these? (when omitted)
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727299.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-09-01 20:15
FromAdam Puckett
SubjectRe: [Csnd] Re: Why is this csd crackling?
I often wonder how eSpeak (the builtin synth in the free screen reader
NVDA) does its audio magic on Windows. Even when I was using XP where
I had to use -b4096 -B4096 to get no dropouts with the smallest buffer
possible, eSpeak spoke as I typed. Now that I think about it, so did
Eloquence, the synthesizer in the JAWS for Windows screen reader, and
even Microsoft Sam, the legendary SAPI voice whose ROFLcopter goes
"soi soi soi" (I miss him! lol). What's the magic (or the math, or the
science) behind those two very useful apps? Is it because they're
accessibility applications? As such, maybe Csound should register for
accessibility privileges on Windows? Just a shot in the dark though.

Adam

On 9/1/13, Victor Lazzarini  wrote:
> It depends on the system, but I'd reckon -b1024 -B2048?
> On Windows, mme and directX outputs are pretty bad, you need a large buffer
> (probably -b2048 and -B4096 minimum),
> try using ASIO if possible (or WDM if there is one). I guess also you should
> get advice from other Windows users
> regarding this (I am not one).
>
> Victor
>
> On 1 Sep 2013, at 17:38, zappfinger wrote:
>
>> The -B and -b flags definitely have influence here. I tried from very low
>> (much crackling) to rather high - less crackling but still present.
>> What are csounds default settings for these? (when omitted)
>>
>> Richard
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727299.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>            https://sourceforge.net/p/csound/tickets/
>> csound5:
>>            https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>

Date2013-09-01 20:21
FromJustin Smith
SubjectRe: [Csnd] Re: Why is this csd crackling?
I big part of it is likely because they are "synthesizing" by playing back individual sound files, one at a time (they have a short audio clip in memory for every phoneme, and then map words to sequences of phonemes). A csound performance that only played audio from one table at a time, with no chording, no effects, etc. would likely see similar smooth playback. Also, they are likely doing the computationally hard tasks between words, where you wouldn't hear a gap or crackle.


On Sun, Sep 1, 2013 at 12:15 PM, Adam Puckett <adotsdothmusic@gmail.com> wrote:
I often wonder how eSpeak (the builtin synth in the free screen reader
NVDA) does its audio magic on Windows. Even when I was using XP where
I had to use -b4096 -B4096 to get no dropouts with the smallest buffer
possible, eSpeak spoke as I typed. Now that I think about it, so did
Eloquence, the synthesizer in the JAWS for Windows screen reader, and
even Microsoft Sam, the legendary SAPI voice whose ROFLcopter goes
"soi soi soi" (I miss him! lol). What's the magic (or the math, or the
science) behind those two very useful apps? Is it because they're
accessibility applications? As such, maybe Csound should register for
accessibility privileges on Windows? Just a shot in the dark though.

Adam

On 9/1/13, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> It depends on the system, but I'd reckon -b1024 -B2048?
> On Windows, mme and directX outputs are pretty bad, you need a large buffer
> (probably -b2048 and -B4096 minimum),
> try using ASIO if possible (or WDM if there is one). I guess also you should
> get advice from other Windows users
> regarding this (I am not one).
>
> Victor
>
> On 1 Sep 2013, at 17:38, zappfinger wrote:
>
>> The -B and -b flags definitely have influence here. I tried from very low
>> (much crackling) to rather high - less crackling but still present.
>> What are csounds default settings for these? (when omitted)
>>
>> Richard
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727299.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>            https://sourceforge.net/p/csound/tickets/
>> csound5:
>>            https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-09-27 13:05
Fromzappfinger
Subject[Csnd] Re: Why is this csd crackling? (ksmps = 1 !)
Coming back to this one, I tried several buffer settings, ASIO drivers, etc.
Then I found out the csound.exe was using a lot of CPU, often 99 %.
Looking at the cds file, I noticed that ksmps = 1!
This is rather low, so changed that to 20.
A lot improved!

BTW, this csd was generated with Blue, and apparently Blue uses ksmps = 1 in
the default Project settings.
Maybe its a good idea to increase this...

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Why-is-this-csd-crackling-tp5727292p5727909.html
Sent from the Csound - General mailing list archive at Nabble.com.