Csound Csound-dev Csound-tekno Search About

Possible bug in pvsdemix source code?

Date2016-02-24 15:56
FromJimmy Manone
SubjectPossible bug in pvsdemix source code?
Hi all. I'm sorry for the double post - the first one hasn't gotten a response, and I'm really trying to get one of my projects to work properly.

I have implemented the pvsdemix opcode, and it works well but once the azimuth crosses zero in either direction, the output gets a 'doubled' sound.

I've tried this in Linux and Windows with the same result. Also, not only with sliders, but I tried it as well with linseg going up/down through the azimuth values.

I think it is down to how the range is represented in the original code, but I wanted to see if anybody else who is a bit more knowledgeable in all things csound could provide some insight.

Any response is greatly appreciated.




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

Date2016-02-24 16:21
Fromjpff
SubjectRe: Possible bug in pvsdemix source code?
It igt me time to open a issue o github for this.
Ten it does not get lost in the rush of mail
==John

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

Date2016-02-24 16:23
FromJimmy Manone
SubjectRe: Possible bug in pvsdemix source code?

Thank you very much.

I'll give that a shot,

Have a good one.

On Feb 24, 2016 8:21 AM, "jpff" <jpff@codemist.co.uk> wrote:
It igt me time to open a issue o github for this.
Ten it does not get lost in the rush of mail
==John

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

Date2016-02-25 14:28
Fromjpff
SubjectRe: Possible bug in pvsdemix source code?
I have opened an issue and copied your text to it -- two thougts to help 
matters
1;  Can you provide a simple csd file for testing?  It makes it so much 
easier to attack if one does not have to write an examle first

2:  The issuue is in my name -- you might want to subscribe to it.

It is issue #602

Thanks for including the platform information as wekl in original mail

==John

On Wed, 24 Feb 2016, jpff wrote:

> It igt me time to open a issue o github for this.
> Ten it does not get lost in the rush of mail
> ==John
>
> 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

Date2016-02-25 15:41
FromJimmy Manone
SubjectRe: Possible bug in pvsdemix source code?
Attachmentstt.csd  
Hi John.

Thank you. I have attached a simple .csd file using linseg to vary the panning positions
. In all honesty - I've never even asked a question on a messageboard, as I've always managed to find a solution through scouring the boards and experimentation, however this one alludes me - so I'm not too familiar with the trouble ticket process.

Nevertheless, for
1) The code is (also attached if it makes it easier): 2) The platforms tested are Debian Wheezy (Linux) and Windows 8.1 (It does the same thing either way)


<CsoundSynthesizer>
<CsOptions>
-i adc -o dac
</CsOptions>
<CsInstruments>


sr = 44100
ksmps = 441
kr = 100
nchnls = 2


gifftsiz  =         1024
giwintyp  =         1


instr 1
kexpr  linseg 1, 5,.5,5,0.25,5,0,5,-.25,5,-.5,5,-1,5,-.5,5,-.25,5,0,5,.25,5,.5,5,1,5,0 ;Move panning position between positive and negative values

          prints    "LIVE INPUT NOW!%n"

ain, ain2 soundin "fox.wav"

fsig      pvsanal   ain, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fsig2     pvsanal   ain2, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fdm       pvsdemix  fsig, fsig2, kexpr, 15, 15
alisten1   pvsynth   fdm

          outs      alisten1, alisten1
  
endin

</CsInstruments>
<CsScore>

i 1 0 100

</CsScore>
</CsoundSynthesizer>

 

On Thu, Feb 25, 2016 at 6:28 AM, jpff <jpff@codemist.co.uk> wrote:
I have opened an issue and copied your text to it -- two thougts to help matters
1;  Can you provide a simple csd file for testing?  It makes it so much easier to attack if one does not have to write an examle first

2:  The issuue is in my name -- you might want to subscribe to it.

It is issue #602

Thanks for including the platform information as wekl in original mail

==John


On Wed, 24 Feb 2016, jpff wrote:

It igt me time to open a issue o github for this.
Ten it does not get lost in the rush of mail
==John

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

Date2016-02-25 15:57
FromAnders Genell
SubjectRe: Possible bug in pvsdemix source code?
Just to chime in: In the example you attached you treat "fox.wav" as a stereo file, but I believe the usual "fox.wav" used in other csound examples is a mono file - don't know if that was intentional or npt, but I thought I'd mention it.
Regards,
Anders

On Thu, Feb 25, 2016 at 4:41 PM, Jimmy Manone <jimmanone@gmail.com> wrote:
Hi John.

Thank you. I have attached a simple .csd file using linseg to vary the panning positions
. In all honesty - I've never even asked a question on a messageboard, as I've always managed to find a solution through scouring the boards and experimentation, however this one alludes me - so I'm not too familiar with the trouble ticket process.

Nevertheless, for
1) The code is (also attached if it makes it easier): 2) The platforms tested are Debian Wheezy (Linux) and Windows 8.1 (It does the same thing either way)


<CsoundSynthesizer>
<CsOptions>
-i adc -o dac
</CsOptions>
<CsInstruments>


sr = 44100
ksmps = 441
kr = 100
nchnls = 2


gifftsiz  =         1024
giwintyp  =         1


instr 1
kexpr  linseg 1, 5,.5,5,0.25,5,0,5,-.25,5,-.5,5,-1,5,-.5,5,-.25,5,0,5,.25,5,.5,5,1,5,0 ;Move panning position between positive and negative values

          prints    "LIVE INPUT NOW!%n"

ain, ain2 soundin "fox.wav"

fsig      pvsanal   ain, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fsig2     pvsanal   ain2, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fdm       pvsdemix  fsig, fsig2, kexpr, 15, 15
alisten1   pvsynth   fdm

          outs      alisten1, alisten1
  
endin

</CsInstruments>
<CsScore>

i 1 0 100

</CsScore>
</CsoundSynthesizer>

 

On Thu, Feb 25, 2016 at 6:28 AM, jpff <jpff@codemist.co.uk> wrote:
I have opened an issue and copied your text to it -- two thougts to help matters
1;  Can you provide a simple csd file for testing?  It makes it so much easier to attack if one does not have to write an examle first

2:  The issuue is in my name -- you might want to subscribe to it.

It is issue #602

Thanks for including the platform information as wekl in original mail

==John


On Wed, 24 Feb 2016, jpff wrote:

It igt me time to open a issue o github for this.
Ten it does not get lost in the rush of mail
==John

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

Date2016-02-25 17:21
FromJimmy Manone
SubjectRe: Possible bug in pvsdemix source code?

Yes, I'm actually using my own stereo files, I just knew they always use fox.wav for some examples.

Thanks.

On Feb 25, 2016 7:57 AM, "Anders Genell" <anders.genell@gmail.com> wrote:
Just to chime in: In the example you attached you treat "fox.wav" as a stereo file, but I believe the usual "fox.wav" used in other csound examples is a mono file - don't know if that was intentional or npt, but I thought I'd mention it.
Regards,
Anders

On Thu, Feb 25, 2016 at 4:41 PM, Jimmy Manone <jimmanone@gmail.com> wrote:
Hi John.

Thank you. I have attached a simple .csd file using linseg to vary the panning positions
. In all honesty - I've never even asked a question on a messageboard, as I've always managed to find a solution through scouring the boards and experimentation, however this one alludes me - so I'm not too familiar with the trouble ticket process.

Nevertheless, for
1) The code is (also attached if it makes it easier): 2) The platforms tested are Debian Wheezy (Linux) and Windows 8.1 (It does the same thing either way)


<CsoundSynthesizer>
<CsOptions>
-i adc -o dac
</CsOptions>
<CsInstruments>


sr = 44100
ksmps = 441
kr = 100
nchnls = 2


gifftsiz  =         1024
giwintyp  =         1


instr 1
kexpr  linseg 1, 5,.5,5,0.25,5,0,5,-.25,5,-.5,5,-1,5,-.5,5,-.25,5,0,5,.25,5,.5,5,1,5,0 ;Move panning position between positive and negative values

          prints    "LIVE INPUT NOW!%n"

ain, ain2 soundin "fox.wav"

fsig      pvsanal   ain, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fsig2     pvsanal   ain2, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp
fdm       pvsdemix  fsig, fsig2, kexpr, 15, 15
alisten1   pvsynth   fdm

          outs      alisten1, alisten1
  
endin

</CsInstruments>
<CsScore>

i 1 0 100

</CsScore>
</CsoundSynthesizer>

 

On Thu, Feb 25, 2016 at 6:28 AM, jpff <jpff@codemist.co.uk> wrote:
I have opened an issue and copied your text to it -- two thougts to help matters
1;  Can you provide a simple csd file for testing?  It makes it so much easier to attack if one does not have to write an examle first

2:  The issuue is in my name -- you might want to subscribe to it.

It is issue #602

Thanks for including the platform information as wekl in original mail

==John


On Wed, 24 Feb 2016, jpff wrote:

It igt me time to open a issue o github for this.
Ten it does not get lost in the rush of mail
==John

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