Csound Csound-dev Csound-tekno Search About

[Csnd] Help

Date2013-11-14 18:49
Frommoi
Subject[Csnd] Help
AttachmentsPipe_Synth_test2.csd  test2.jpg  
Hi,

I'm suffering to much to have the csounQt pipe_synth example working on 
Linux with csound6-git.

I come to the test csd showing one of the problems.

If setksmps to 1 (in the REVERB opcode) everything is ok

If set to an other value (less or equal to 512) csound is giving funny 
outputs.
(On test2.jpg channel 1 is ok and channel 2 not. )

An other funny thing, with setksmps not equal to 1 , I have a seg fault 
if I remove *1.0 in outs line !

Please somebody can told me what is wrong with this csd to work with 
csound6.

Regards,
René




-Wdm229


sr         = 48000
ksmps    = 512
nchnls    = 2

gaIn_Reverb    init    0

opcode    REVERB, aa, a

aIn_Reverb xin
setksmps    16
xout        aIn_Reverb, aIn_Reverb
endop

instr    1
aout        oscil    10000, 220, 1
gaIn_Reverb    = gaIn_Reverb + aout
endin

instr    99        ;Reverb unit
aoutL, aoutR    REVERB    gaIn_Reverb
outs        aoutL, aoutR*1.0
gaIn_Reverb    = 0
endin


f 1 0 16384 10 1

i 1    0    10
i 99 0     10




Date2013-11-14 19:03
FromMichael Gogins
SubjectRe: [Csnd] Help
For one thing ksmps should go evenly into sr. Try 500.
 
Hope this helps,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Nov 14, 2013 at 1:49 PM, moi <rene.djack1@gmail.com> wrote:
Hi,

I'm suffering to much to have the csounQt pipe_synth example working on Linux with csound6-git.

I come to the test csd showing one of the problems.

If setksmps to 1 (in the REVERB opcode) everything is ok

If set to an other value (less or equal to 512) csound is giving funny outputs.
(On test2.jpg channel 1 is ok and channel 2 not. )

An other funny thing, with setksmps not equal to 1 , I have a seg fault if I remove *1.0 in outs line !

Please somebody can told me what is wrong with this csd to work with csound6.

Regards,
René


<CsoundSynthesizer>
<CsOptions>
-Wdm229
</CsOptions>
<CsInstruments>
sr         = 48000
ksmps    = 512
nchnls    = 2

gaIn_Reverb    init    0

opcode    REVERB, aa, a

aIn_Reverb xin
setksmps    16
xout        aIn_Reverb, aIn_Reverb
endop

instr    1
aout        oscil    10000, 220, 1
gaIn_Reverb    = gaIn_Reverb + aout
endin

instr    99        ;Reverb unit
aoutL, aoutR    REVERB    gaIn_Reverb
outs        aoutL, aoutR*1.0
gaIn_Reverb    = 0
endin
</CsInstruments>
<CsScore>
f 1 0 16384 10 1

i 1    0    10
i 99 0     10
</CsScore>
</CsoundSynthesizer>


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-11-14 19:32
FromAndres Cabrera
SubjectRe: [Csnd] Help
Hi Rene,

I think this was a bug in UDOs that has been fixed by Victor in git. Try getting the most recent csound from git and let us know if this has been fixed.

Cheers,
Andrés


On Thu, Nov 14, 2013 at 10:49 AM, moi <rene.djack1@gmail.com> wrote:
Hi,

I'm suffering to much to have the csounQt pipe_synth example working on Linux with csound6-git.

I come to the test csd showing one of the problems.

If setksmps to 1 (in the REVERB opcode) everything is ok

If set to an other value (less or equal to 512) csound is giving funny outputs.
(On test2.jpg channel 1 is ok and channel 2 not. )

An other funny thing, with setksmps not equal to 1 , I have a seg fault if I remove *1.0 in outs line !

Please somebody can told me what is wrong with this csd to work with csound6.

Regards,
René


<CsoundSynthesizer>
<CsOptions>
-Wdm229
</CsOptions>
<CsInstruments>
sr         = 48000
ksmps    = 512
nchnls    = 2

gaIn_Reverb    init    0

opcode    REVERB, aa, a

aIn_Reverb xin
setksmps    16
xout        aIn_Reverb, aIn_Reverb
endop

instr    1
aout        oscil    10000, 220, 1
gaIn_Reverb    = gaIn_Reverb + aout
endin

instr    99        ;Reverb unit
aoutL, aoutR    REVERB    gaIn_Reverb
outs        aoutL, aoutR*1.0
gaIn_Reverb    = 0
endin
</CsInstruments>
<CsScore>
f 1 0 16384 10 1

i 1    0    10
i 99 0     10
</CsScore>
</CsoundSynthesizer>


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-11-14 19:33
FromAndres Cabrera
SubjectRe: [Csnd] Help
I don't think that is necessarily true. I generally use ksmps=256 with success, and it's actually required for jack (which uses power of two buffers).

Cheers,
Andrés


On Thu, Nov 14, 2013 at 11:03 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
For one thing ksmps should go evenly into sr. Try 500.
 
Hope this helps,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Nov 14, 2013 at 1:49 PM, moi <rene.djack1@gmail.com> wrote:
Hi,

I'm suffering to much to have the csounQt pipe_synth example working on Linux with csound6-git.

I come to the test csd showing one of the problems.

If setksmps to 1 (in the REVERB opcode) everything is ok

If set to an other value (less or equal to 512) csound is giving funny outputs.
(On test2.jpg channel 1 is ok and channel 2 not. )

An other funny thing, with setksmps not equal to 1 , I have a seg fault if I remove *1.0 in outs line !

Please somebody can told me what is wrong with this csd to work with csound6.

Regards,
René


<CsoundSynthesizer>
<CsOptions>
-Wdm229
</CsOptions>
<CsInstruments>
sr         = 48000
ksmps    = 512
nchnls    = 2

gaIn_Reverb    init    0

opcode    REVERB, aa, a

aIn_Reverb xin
setksmps    16
xout        aIn_Reverb, aIn_Reverb
endop

instr    1
aout        oscil    10000, 220, 1
gaIn_Reverb    = gaIn_Reverb + aout
endin

instr    99        ;Reverb unit
aoutL, aoutR    REVERB    gaIn_Reverb
outs        aoutL, aoutR*1.0
gaIn_Reverb    = 0
endin
</CsInstruments>
<CsScore>
f 1 0 16384 10 1

i 1    0    10
i 99 0     10
</CsScore>
</CsoundSynthesizer>


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-11-15 19:38
Frommoi
SubjectRe: [Csnd] Help
Hi,

Thanks for your answers,

yes, it was to solve the bug of UDO with many I/O.

All tests of my previous post was done with a fresh master branch snapshoot.
Have downloaded a fresh snapshoot of develop branch an things are better.

Pipe_synth.csd is fully working only if I setksmps to 1 in REVERB opcode.
if setksmps to 128 (original setting) -> seg fault...

I ask my question because:

My instrument was working (on my Ubuntu 64b) with csound 5
It is not working (on the same PC) with csound 6 last git master and develop with setksmps  128

And I read in the csound doc:

Warning about local ksmps:
When the local ksmps is not the same as the orchestra level ksmps value (as specified in the orchestra header), global a-rate operations must be carefully coded to access the data in a vector according to the local ksmps. The audio rate bus channel opcodes (chnget/chnset) can be used freely, however, as they will do the necessary conversion between ksmp sizes.

Andres, is the Pipe_synth ok for you on Ubuntu?
for me when I hit a midi note,  csoundQt close because of seg fault in csound. (unless setksmps 1 as mentioned above)

About test2.csd included in my previous post:
Tested with develop branch: Output is zero on both channels if setksmps 512 or line removed ! (in opcode REVERB)

Something is wrong somewhere!

I will try signal flow graph to avoid global a-rate operations.

Regards,
René


Le 14/11/2013 20:32, Andres Cabrera a écrit :
Hi Rene,

I think this was a bug in UDOs that has been fixed by Victor in git. Try getting the most recent csound from git and let us know if this has been fixed.

Cheers,
Andrés


On Thu, Nov 14, 2013 at 10:49 AM, moi <rene.djack1@gmail.com> wrote:
Hi,

I'm suffering to much to have the csounQt pipe_synth example working on Linux with csound6-git.

I come to the test csd showing one of the problems.

If setksmps to 1 (in the REVERB opcode) everything is ok

If set to an other value (less or equal to 512) csound is giving funny outputs.
(On test2.jpg channel 1 is ok and channel 2 not. )

An other funny thing, with setksmps not equal to 1 , I have a seg fault if I remove *1.0 in outs line !

Please somebody can told me what is wrong with this csd to work with csound6.

Regards,
René


<CsoundSynthesizer>
<CsOptions>
-Wdm229
</CsOptions>
<CsInstruments>
sr         = 48000
ksmps    = 512
nchnls    = 2

gaIn_Reverb    init    0

opcode    REVERB, aa, a

aIn_Reverb xin
setksmps    16
xout        aIn_Reverb, aIn_Reverb
endop

instr    1
aout        oscil    10000, 220, 1
gaIn_Reverb    = gaIn_Reverb + aout
endin

instr    99        ;Reverb unit
aoutL, aoutR    REVERB    gaIn_Reverb
outs        aoutL, aoutR*1.0
gaIn_Reverb    = 0
endin
</CsInstruments>
<CsScore>
f 1 0 16384 10 1

i 1    0    10
i 99 0     10
</CsScore>
</CsoundSynthesizer>


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-11-15 19:41
FromSteven Yi
SubjectRe: [Csnd] Help
Hi Rene,

This sounds like a bug introduced in CS6.  Could you file a bug in the
tracker for this?

Thanks!
steven

On Fri, Nov 15, 2013 at 2:38 PM, moi  wrote:
> Hi,
>
> Thanks for your answers,
>
> yes, it was to solve the bug of UDO with many I/O.
>
> All tests of my previous post was done with a fresh master branch snapshoot.
> Have downloaded a fresh snapshoot of develop branch an things are better.
>
> Pipe_synth.csd is fully working only if I setksmps to 1 in REVERB opcode.
> if setksmps to 128 (original setting) -> seg fault...
>
> I ask my question because:
>
> My instrument was working (on my Ubuntu 64b) with csound 5
> It is not working (on the same PC) with csound 6 last git master and develop
> with setksmps  128
>
> And I read in the csound doc:
>
> Warning about local ksmps:
> When the local ksmps is not the same as the orchestra level ksmps value (as
> specified in the orchestra header), global a-rate operations must be
> carefully coded to access the data in a vector according to the local ksmps.
> The audio rate bus channel opcodes (chnget/chnset) can be used freely,
> however, as they will do the necessary conversion between ksmp sizes.
>
> Andres, is the Pipe_synth ok for you on Ubuntu?
> for me when I hit a midi note,  csoundQt close because of seg fault in
> csound. (unless setksmps 1 as mentioned above)
>
> About test2.csd included in my previous post:
> Tested with develop branch: Output is zero on both channels if setksmps 512
> or line removed ! (in opcode REVERB)
>
> Something is wrong somewhere!
>
> I will try signal flow graph to avoid global a-rate operations.
>
> Regards,
> René
>
>
> Le 14/11/2013 20:32, Andres Cabrera a écrit :
>
> Hi Rene,
>
> I think this was a bug in UDOs that has been fixed by Victor in git. Try
> getting the most recent csound from git and let us know if this has been
> fixed.
>
> Cheers,
> Andrés
>
>
> On Thu, Nov 14, 2013 at 10:49 AM, moi  wrote:
>>
>> Hi,
>>
>> I'm suffering to much to have the csounQt pipe_synth example working on
>> Linux with csound6-git.
>>
>> I come to the test csd showing one of the problems.
>>
>> If setksmps to 1 (in the REVERB opcode) everything is ok
>>
>> If set to an other value (less or equal to 512) csound is giving funny
>> outputs.
>> (On test2.jpg channel 1 is ok and channel 2 not. )
>>
>> An other funny thing, with setksmps not equal to 1 , I have a seg fault if
>> I remove *1.0 in outs line !
>>
>> Please somebody can told me what is wrong with this csd to work with
>> csound6.
>>
>> Regards,
>> René
>>
>>
>> 
>> 
>> -Wdm229
>> 
>> 
>> sr         = 48000
>> ksmps    = 512
>> nchnls    = 2
>>
>> gaIn_Reverb    init    0
>>
>> opcode    REVERB, aa, a
>>
>> aIn_Reverb xin
>> setksmps    16
>> xout        aIn_Reverb, aIn_Reverb
>> endop
>>
>> instr    1
>> aout        oscil    10000, 220, 1
>> gaIn_Reverb    = gaIn_Reverb + aout
>> endin
>>
>> instr    99        ;Reverb unit
>> aoutL, aoutR    REVERB    gaIn_Reverb
>> outs        aoutL, aoutR*1.0
>> gaIn_Reverb    = 0
>> endin
>> 
>> 
>> f 1 0 16384 10 1
>>
>> i 1    0    10
>> i 99 0     10
>> 
>> 
>>
>>
>> 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"
>>
>>
>
>