Csound Csound-dev Csound-tekno Search About

[Csnd] Print detected DC offset levels

Date2019-06-19 01:07
FromPeter Burgess
Subject[Csnd] Print detected DC offset levels
Is there a way of examining a section of realtime audio and in some way printing the level of DC offset? I know we have DC filters, but I'm trying to figure out if a click issue I have with audio generated in an instr block could be in any way related to an unexpectedly introduced DC offset. It's almost certainly not, but it occured to me this is something I don't know if there's a tool for yet.

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

Date2019-06-19 02:02
FromPete Goodeve
SubjectRe: [Csnd] Print detected DC offset levels
AttachmentsNone  

Date2019-06-19 02:06
FromMichael Gogins
SubjectRe: [Csnd] Print detected DC offset levels
Save it to a file with fout. Then examine it with an editor.

On Tue, Jun 18, 2019, 20:08 Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Is there a way of examining a section of realtime audio and in some way printing the level of DC offset? I know we have DC filters, but I'm trying to figure out if a click issue I have with audio generated in an instr block could be in any way related to an unexpectedly introduced DC offset. It's almost certainly not, but it occured to me this is something I don't know if there's a tool for yet.

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
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

Date2019-06-19 02:41
FromPeter Burgess
SubjectRe: [Csnd] Print detected DC offset levels
Yeah, fair enough guys. For the use case that's good enough to do it externally really. It's not something I intend to do repeatedly.

Cheers to both of you for the quick/late night replies (if it is late night where you are?)

Peter

On Wed, 19 Jun 2019, 02:06 Michael Gogins, <michael.gogins@gmail.com> wrote:
Save it to a file with fout. Then examine it with an editor.

On Tue, Jun 18, 2019, 20:08 Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Is there a way of examining a section of realtime audio and in some way printing the level of DC offset? I know we have DC filters, but I'm trying to figure out if a click issue I have with audio generated in an instr block could be in any way related to an unexpectedly introduced DC offset. It's almost certainly not, but it occured to me this is something I don't know if there's a tool for yet.

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
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

Date2019-06-19 19:44
FromJustin Smith
SubjectRe: [Csnd] Print detected DC offset levels
Wouldn't the first bin in a dft contain a dc level? Smoothing that
over time should give a decent estimation of offset. Perhaps via the
pvs opcodes?

On Tue, Jun 18, 2019 at 6:41 PM Peter Burgess
 wrote:
>
> Yeah, fair enough guys. For the use case that's good enough to do it externally really. It's not something I intend to do repeatedly.
>
> Cheers to both of you for the quick/late night replies (if it is late night where you are?)
>
> Peter
>
> On Wed, 19 Jun 2019, 02:06 Michael Gogins,  wrote:
>>
>> Save it to a file with fout. Then examine it with an editor.
>>
>> On Tue, Jun 18, 2019, 20:08 Peter Burgess  wrote:
>>>
>>> Is there a way of examining a section of realtime audio and in some way printing the level of DC offset? I know we have DC filters, but I'm trying to figure out if a click issue I have with audio generated in an instr block could be in any way related to an unexpectedly introduced DC offset. It's almost certainly not, but it occured to me this is something I don't know if there's a tool for yet.
>>>
>>> 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
>>
>> 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

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