[Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger

I am trying to run my csd with the superformula in CsoundQt-d-py-cs6, but it hangs.

The last thing csound reports is:

writing 1024 sample blks of 64-bit floats to dac1

SECTION 1:

ftable 1:

new alloc for instr 1:

Richard

Csound mailing list [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Tarmo Johannes-3
Please send the csd (or resend if it was in an earlier email).
Tarmo

25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]>:

I am trying to run my csd with the superformula in CsoundQt-d-py-cs6, but it hangs.

The last thing csound reports is:

writing 1024 sample blks of 64-bit floats to dac1

SECTION 1:

ftable 1:

new alloc for instr 1:

Richard

Csound mailing list [hidden email] 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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger

Ok, here it is:



On 25/07/18 22:27, Tarmo Johannes wrote:
Please send the csd (or resend if it was in an earlier email).
Tarmo

25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]>:

I am trying to run my csd with the superformula in CsoundQt-d-py-cs6, but it hangs.

The last thing csound reports is:

writing 1024 sample blks of 64-bit floats to dac1

SECTION 1:

ftable 1:

new alloc for instr 1:

Richard

Csound mailing list [hidden email] 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 [hidden email] 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 [hidden email] 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

embeddedCtcsound.csd (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Tarmo Johannes-3
Hi,

Thanks!

I get the same result. Seems, the problem is in function R. When I run the
original version in terminal I get output:

new alloc for instr 10:

  --> Sample Rate: 48000.0, Control Rate: 480.0


  --> TableGet: 0.0, len:16384

__main__:7: RuntimeWarning: divide by zero encountered in double_scalars
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance

Pay attention to the divide by zero warning that is caused probably by

r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
rho / 4.0)) / b) ** n3

If I simplified the instrument for testing:
instr 1
  ; Use the cs python object
  pyruni {{
print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
cs.kr()))
l = cs.tableLength(1)
print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))

i = 0
#while i<l:
val = cs.tableGet(1, i)
#val = R(i, 1., 1., 8., 10., -1., -8.)
cs.tableSet(1, i, val)

  }}
endin

And then it works.

I am not sure yet why CsoundQt hangs on the first error -  probably some thread
is not returning or some other kind of deadlock happens but seems that if
python code is correct, ctcsound should work within CsoundQt. Did not test
thorougly, though.

greetings,
tarmo





On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:

> Ok, here it is:
>
> On 25/07/18 22:27, Tarmo Johannes wrote:
> > Please send the csd (or resend if it was in an earlier email).
> > Tarmo
> >
> > 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     I am trying to run my csd with the superformula in
> >     CsoundQt-d-py-cs6, but it hangs.
> >    
> >     The last thing csound reports is:
> >    
> >     writing 1024 sample blks of 64-bit floats to dac1
> >    
> >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
    r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
    r = np.abs(r) ** (-1 / n1)
    return r

i = 0
while i<l:
        #val = cs.tableGet(1, i)
        val = R(i, 1., 1., 8., 10., -1., -8.)
        cs.tableSet(1, i, val)
        i+= 1

> >    
> >     ftable 1:
> >    
> >     new alloc for instr 1:
> >    
> >     Richard
> >    
> >     Csound mailing list [hidden email]
> >     <mailto:[hidden email]>
> >     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 [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger
Thanks! I did not notice the divide by 0 warning. Now I can use the
widgets to create nice sliders for input of the params.

I am now thinking of not using oscil and tables because that always
produces one period, which is not so interesting.

When the superformula is used with changing arguments the sounds will
become very interesting I guess.
So I am going to create a longer waveform in a table and play that with
flooper or similar..

Richard


On 26/07/18 11:58, Tarmo Johannes wrote:

> Hi,
>
> Thanks!
>
> I get the same result. Seems, the problem is in function R. When I run the
> original version in terminal I get output:
>
> new alloc for instr 10:
>
>    --> Sample Rate: 48000.0, Control Rate: 480.0
>
>
>    --> TableGet: 0.0, len:16384
>
> __main__:7: RuntimeWarning: divide by zero encountered in double_scalars
> B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.00000  0.00000
>             overall samples out of range:        0        0
> 0 errors in performance
>
> Pay attention to the divide by zero warning that is caused probably by
>
> r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
> rho / 4.0)) / b) ** n3
>
> If I simplified the instrument for testing:
> instr 1
>    ; Use the cs python object
>    pyruni {{
> print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
> cs.kr()))
> l = cs.tableLength(1)
> print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))
>
> i = 0
> #while i<l:
> val = cs.tableGet(1, i)
> #val = R(i, 1., 1., 8., 10., -1., -8.)
> cs.tableSet(1, i, val)
>
>    }}
> endin
>
> And then it works.
>
> I am not sure yet why CsoundQt hangs on the first error -  probably some thread
> is not returning or some other kind of deadlock happens but seems that if
> python code is correct, ctcsound should work within CsoundQt. Did not test
> thorougly, though.
>
> greetings,
> tarmo
>
>
>
>
>
> On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
>> Ok, here it is:
>>
>> On 25/07/18 22:27, Tarmo Johannes wrote:
>>> Please send the csd (or resend if it was in an earlier email).
>>> Tarmo
>>>
>>> 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
>>>
>>> <mailto:[hidden email]>>:
>>>      I am trying to run my csd with the superformula in
>>>      CsoundQt-d-py-cs6, but it hangs.
>>>      
>>>      The last thing csound reports is:
>>>      
>>>      writing 1024 sample blks of 64-bit floats to dac1
>>>      
>>>      SECTION 1:def R(rho, a, b, m, n1, n2, n3):
>      r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
> np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
>      r = np.abs(r) ** (-1 / n1)
>      return r
>
> i = 0
> while i<l:
> #val = cs.tableGet(1, i)
> val = R(i, 1., 1., 8., 10., -1., -8.)
> cs.tableSet(1, i, val)
> i+= 1
>>>      
>>>      ftable 1:
>>>      
>>>      new alloc for instr 1:
>>>      
>>>      Richard
>>>      
>>>      Csound mailing list [hidden email]
>>>      <mailto:[hidden email]>
>>>      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 [hidden email]
>>> <mailto:[hidden email]>
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger
In reply to this post by Tarmo Johannes-3
Still something strange is going on. I do not see where the divide by
zero could come from with the variables I use.
I tried adding the 'from __future__ import division' line, but then it
complains with:

NameError: name 'cs' is not defined

Here is that part of the  code:

pyruni {{
import ctcsound
import sys
import numpy as np
#from __future__ import division   # when this line is uncommented 'cs'
is not defined

# Get an opaque pointer to the running Csound instance
# and print Python version number
p = _CSOUND_
print("\\n  --> Python version number: {}\\n".format(sys.version_info[0]))
# Create an object called cs from the ctcsound.Csound class
# using the opaque pointer to the Csound instance
cs = ctcsound.Csound(pointer_=p)        #<======
}}


On 26/07/18 11:58, Tarmo Johannes wrote:

> Hi,
>
> Thanks!
>
> I get the same result. Seems, the problem is in function R. When I run the
> original version in terminal I get output:
>
> new alloc for instr 10:
>
>    --> Sample Rate: 48000.0, Control Rate: 480.0
>
>
>    --> TableGet: 0.0, len:16384
>
> __main__:7: RuntimeWarning: divide by zero encountered in double_scalars
> B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.00000  0.00000
>             overall samples out of range:        0        0
> 0 errors in performance
>
> Pay attention to the divide by zero warning that is caused probably by
>
> r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
> rho / 4.0)) / b) ** n3
>
> If I simplified the instrument for testing:
> instr 1
>    ; Use the cs python object
>    pyruni {{
> print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
> cs.kr()))
> l = cs.tableLength(1)
> print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))
>
> i = 0
> #while i<l:
> val = cs.tableGet(1, i)
> #val = R(i, 1., 1., 8., 10., -1., -8.)
> cs.tableSet(1, i, val)
>
>    }}
> endin
>
> And then it works.
>
> I am not sure yet why CsoundQt hangs on the first error -  probably some thread
> is not returning or some other kind of deadlock happens but seems that if
> python code is correct, ctcsound should work within CsoundQt. Did not test
> thorougly, though.
>
> greetings,
> tarmo
>
>
>
>
>
> On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
>> Ok, here it is:
>>
>> On 25/07/18 22:27, Tarmo Johannes wrote:
>>> Please send the csd (or resend if it was in an earlier email).
>>> Tarmo
>>>
>>> 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
>>>
>>> <mailto:[hidden email]>>:
>>>      I am trying to run my csd with the superformula in
>>>      CsoundQt-d-py-cs6, but it hangs.
>>>      
>>>      The last thing csound reports is:
>>>      
>>>      writing 1024 sample blks of 64-bit floats to dac1
>>>      
>>>      SECTION 1:def R(rho, a, b, m, n1, n2, n3):
>      r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
> np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
>      r = np.abs(r) ** (-1 / n1)
>      return r
>
> i = 0
> while i<l:
> #val = cs.tableGet(1, i)
> val = R(i, 1., 1., 8., 10., -1., -8.)
> cs.tableSet(1, i, val)
> i+= 1
>>>      
>>>      ftable 1:
>>>      
>>>      new alloc for instr 1:
>>>      
>>>      Richard
>>>      
>>>      Csound mailing list [hidden email]
>>>      <mailto:[hidden email]>
>>>      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 [hidden email]
>>> <mailto:[hidden email]>
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Francois PINOT
In reply to this post by Tarmo Johannes-3
The divide by zero error is due to np.sin which is evaluated to 0 when rho is 0. As n3 is negative, the power function returns an -inf value (divide by zero). In normal context, the second power function **(-1/n1) yields the zero value, canceling the effect of -inf. If Csound runs in his own thread, CsoundQt should not block...

François

2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]>:
Hi,

Thanks!

I get the same result. Seems, the problem is in function R. When I run the
original version in terminal I get output:

new alloc for instr 10:

  --> Sample Rate: 48000.0, Control Rate: 480.0


  --> TableGet: 0.0, len:16384

__main__:7: RuntimeWarning: divide by zero encountered in double_scalars
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance

Pay attention to the divide by zero warning that is caused probably by

r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
rho / 4.0)) / b) ** n3

If I simplified the instrument for testing:
instr 1
  ; Use the cs python object
  pyruni {{
print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
cs.kr()))
l = cs.tableLength(1)
print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))

i = 0
#while i<l:
val = cs.tableGet(1, i)
#val = R(i, 1., 1., 8., 10., -1., -8.)
cs.tableSet(1, i, val)

  }}
endin

And then it works.

I am not sure yet why CsoundQt hangs on the first error -  probably some thread
is not returning or some other kind of deadlock happens but seems that if
python code is correct, ctcsound should work within CsoundQt. Did not test
thorougly, though.

greetings,
tarmo





On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
> Ok, here it is:
>
> On 25/07/18 22:27, Tarmo Johannes wrote:
> > Please send the csd (or resend if it was in an earlier email).
> > Tarmo
> >
> > 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     I am trying to run my csd with the superformula in
> >     CsoundQt-d-py-cs6, but it hangs.
> >     
> >     The last thing csound reports is:
> >     
> >     writing 1024 sample blks of 64-bit floats to dac1
> >     
> >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
    r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
    r = np.abs(r) ** (-1 / n1)
    return r

i = 0
while i<l:
        #val = cs.tableGet(1, i)
        val = R(i, 1., 1., 8., 10., -1., -8.)
        cs.tableSet(1, i, val)
        i+= 1
> >     
> >     ftable 1:
> >     
> >     new alloc for instr 1:
> >     
> >     Richard
> >     
> >     Csound mailing list [hidden email]
> >     <mailto:[hidden email]>
> >     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 [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger

Ok thanks, I also test now for rho being zero. When I run this in CsoundQt, it only works the first time.
When I run it again, it always hangs...
The modified csd is attached.

Richard


On 26/07/18 14:49, Francois PINOT wrote:
The divide by zero error is due to np.sin which is evaluated to 0 when rho is 0. As n3 is negative, the power function returns an -inf value (divide by zero). In normal context, the second power function **(-1/n1) yields the zero value, canceling the effect of -inf. If Csound runs in his own thread, CsoundQt should not block...

François

2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]>:
Hi,

Thanks!

I get the same result. Seems, the problem is in function R. When I run the
original version in terminal I get output:

new alloc for instr 10:

  --> Sample Rate: 48000.0, Control Rate: 480.0


  --> TableGet: 0.0, len:16384

__main__:7: RuntimeWarning: divide by zero encountered in double_scalars
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance

Pay attention to the divide by zero warning that is caused probably by

r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
rho / 4.0)) / b) ** n3

If I simplified the instrument for testing:
instr 1
  ; Use the cs python object
  pyruni {{
print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
cs.kr()))
l = cs.tableLength(1)
print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))

i = 0
#while i<l:
val = cs.tableGet(1, i)
#val = R(i, 1., 1., 8., 10., -1., -8.)
cs.tableSet(1, i, val)

  }}
endin

And then it works.

I am not sure yet why CsoundQt hangs on the first error -  probably some thread
is not returning or some other kind of deadlock happens but seems that if
python code is correct, ctcsound should work within CsoundQt. Did not test
thorougly, though.

greetings,
tarmo





On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
> Ok, here it is:
>
> On 25/07/18 22:27, Tarmo Johannes wrote:
> > Please send the csd (or resend if it was in an earlier email).
> > Tarmo
> >
> > 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     I am trying to run my csd with the superformula in
> >     CsoundQt-d-py-cs6, but it hangs.
> >     
> >     The last thing csound reports is:
> >     
> >     writing 1024 sample blks of 64-bit floats to dac1
> >     
> >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
    r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
    r = np.abs(r) ** (-1 / n1)
    return r

i = 0
while i<l:
        #val = cs.tableGet(1, i)
        val = R(i, 1., 1., 8., 10., -1., -8.)
        cs.tableSet(1, i, val)
        i+= 1
> >     
> >     ftable 1:
> >     
> >     new alloc for instr 1:
> >     
> >     Richard
> >     
> >     Csound mailing list [hidden email]
> >     <mailto:[hidden email]>
> >     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 [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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 [hidden email] 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 [hidden email] 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

embeddedCtcsound.csd (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Francois PINOT
Then it seems that it's a CsoundQt issue

2018-07-26 16:52 GMT+02:00 Richard <[hidden email]>:

Ok thanks, I also test now for rho being zero. When I run this in CsoundQt, it only works the first time.
When I run it again, it always hangs...
The modified csd is attached.

Richard


On 26/07/18 14:49, Francois PINOT wrote:
The divide by zero error is due to np.sin which is evaluated to 0 when rho is 0. As n3 is negative, the power function returns an -inf value (divide by zero). In normal context, the second power function **(-1/n1) yields the zero value, canceling the effect of -inf. If Csound runs in his own thread, CsoundQt should not block...

François

2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]>:
Hi,

Thanks!

I get the same result. Seems, the problem is in function R. When I run the
original version in terminal I get output:

new alloc for instr 10:

  --> Sample Rate: 48000.0, Control Rate: 480.0


  --> TableGet: 0.0, len:16384

__main__:7: RuntimeWarning: divide by zero encountered in double_scalars
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance

Pay attention to the divide by zero warning that is caused probably by

r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
rho / 4.0)) / b) ** n3

If I simplified the instrument for testing:
instr 1
  ; Use the cs python object
  pyruni {{
print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
cs.kr()))
l = cs.tableLength(1)
print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))

i = 0
#while i<l:
val = cs.tableGet(1, i)
#val = R(i, 1., 1., 8., 10., -1., -8.)
cs.tableSet(1, i, val)

  }}
endin

And then it works.

I am not sure yet why CsoundQt hangs on the first error -  probably some thread
is not returning or some other kind of deadlock happens but seems that if
python code is correct, ctcsound should work within CsoundQt. Did not test
thorougly, though.

greetings,
tarmo





On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
> Ok, here it is:
>
> On 25/07/18 22:27, Tarmo Johannes wrote:
> > Please send the csd (or resend if it was in an earlier email).
> > Tarmo
> >
> > 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     I am trying to run my csd with the superformula in
> >     CsoundQt-d-py-cs6, but it hangs.
> >     
> >     The last thing csound reports is:
> >     
> >     writing 1024 sample blks of 64-bit floats to dac1
> >     
> >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
    r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
    r = np.abs(r) ** (-1 / n1)
    return r

i = 0
while i<l:
        #val = cs.tableGet(1, i)
        val = R(i, 1., 1., 8., 10., -1., -8.)
        cs.tableSet(1, i, val)
        i+= 1
> >     
> >     ftable 1:
> >     
> >     new alloc for instr 1:
> >     
> >     Richard
> >     
> >     Csound mailing list [hidden email]
> >     <mailto:[hidden email]>
> >     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 [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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 [hidden email] 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 [hidden email] 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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Tarmo Johannes-3
Most likely yes, I will investigate.
Tarmo

N, 26. juuli 2018 19:28 Francois PINOT <[hidden email]> kirjutas:
Then it seems that it's a CsoundQt issue

2018-07-26 16:52 GMT+02:00 Richard <[hidden email]>:

Ok thanks, I also test now for rho being zero. When I run this in CsoundQt, it only works the first time.
When I run it again, it always hangs...
The modified csd is attached.

Richard


On 26/07/18 14:49, Francois PINOT wrote:
The divide by zero error is due to np.sin which is evaluated to 0 when rho is 0. As n3 is negative, the power function returns an -inf value (divide by zero). In normal context, the second power function **(-1/n1) yields the zero value, canceling the effect of -inf. If Csound runs in his own thread, CsoundQt should not block...

François

2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]>:
Hi,

Thanks!

I get the same result. Seems, the problem is in function R. When I run the
original version in terminal I get output:

new alloc for instr 10:

  --> Sample Rate: 48000.0, Control Rate: 480.0


  --> TableGet: 0.0, len:16384

__main__:7: RuntimeWarning: divide by zero encountered in double_scalars
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance

Pay attention to the divide by zero warning that is caused probably by

r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 + np.abs(np.abs(np.sin(m *
rho / 4.0)) / b) ** n3

If I simplified the instrument for testing:
instr 1
  ; Use the cs python object
  pyruni {{
print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr(),
cs.kr()))
l = cs.tableLength(1)
print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))

i = 0
#while i<l:
val = cs.tableGet(1, i)
#val = R(i, 1., 1., 8., 10., -1., -8.)
cs.tableSet(1, i, val)

  }}
endin

And then it works.

I am not sure yet why CsoundQt hangs on the first error -  probably some thread
is not returning or some other kind of deadlock happens but seems that if
python code is correct, ctcsound should work within CsoundQt. Did not test
thorougly, though.

greetings,
tarmo





On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
> Ok, here it is:
>
> On 25/07/18 22:27, Tarmo Johannes wrote:
> > Please send the csd (or resend if it was in an earlier email).
> > Tarmo
> >
> > 25.07.2018 22:52 kirjutas kuupäeval "Richard" <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     I am trying to run my csd with the superformula in
> >     CsoundQt-d-py-cs6, but it hangs.
> >     
> >     The last thing csound reports is:
> >     
> >     writing 1024 sample blks of 64-bit floats to dac1
> >     
> >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
    r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
    r = np.abs(r) ** (-1 / n1)
    return r

i = 0
while i<l:
        #val = cs.tableGet(1, i)
        val = R(i, 1., 1., 8., 10., -1., -8.)
        cs.tableSet(1, i, val)
        i+= 1
> >     
> >     ftable 1:
> >     
> >     new alloc for instr 1:
> >     
> >     Richard
> >     
> >     Csound mailing list [hidden email]
> >     <mailto:[hidden email]>
> >     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 [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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 [hidden email] 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 [hidden email] 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 [hidden email] 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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

Tarmo Johannes-3
In reply to this post by zappfinger
Hi!

I got back to this. For me your csd works fine -  python part does it job,
sound is produced, no crash on second nor nth start. I am on Linux, CsoundQt
built with pythonqt support. I tried recent build from develop branch and also
CsoundQt 0.9.5.

On which platform are you? Does your csd works if you use Run in Term?

greetings,
tarmo

On neljapäev, 26. juuli 2018 17:52.45 EEST you wrote:

> Ok thanks, I also test now for rho being zero. When I run this in
> CsoundQt, it only works the first time.
> When I run it again, it always hangs...
> The modified csd is attached.
>
> Richard
>
> On 26/07/18 14:49, Francois PINOT wrote:
> > The divide by zero error is due to np.sin which is evaluated to 0 when
> > rho is 0. As n3 is negative, the power function returns an -inf value
> > (divide by zero). In normal context, the second power function
> > **(-1/n1) yields the zero value, canceling the effect of -inf. If
> > Csound runs in his own thread, CsoundQt should not block...
> >
> > François
> >
> > 2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]
> >
> > <mailto:[hidden email]>>:
> >     Hi,
> >    
> >     Thanks!
> >    
> >     I get the same result. Seems, the problem is in function R. When I
> >     run the
> >     original version in terminal I get output:
> >    
> >     new alloc for instr 10:
> >    
> >       --> Sample Rate: 48000.0, Control Rate: 480.0
> >    
> >    
> >       --> TableGet: 0.0, len:16384
> >    
> >     __main__:7: RuntimeWarning: divide by zero encountered in
> >     double_scalars
> >     B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
> >     Score finished in csoundPerform().
> >     inactive allocs returned to freespace
> >     end of score.              overall amps:  0.00000  0.00000
> >                overall samples out of range:        0        0
> >     0 errors in performance
> >    
> >     Pay attention to the divide by zero warning that is caused probably by
> >    
> >     r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
> >     np.abs(np.abs(np.sin(m *
> >     rho / 4.0)) / b) ** n3
> >    
> >     If I simplified the instrument for testing:
> >     instr 1
> >       ; Use the cs python object
> >       pyruni {{
> >     print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr
> >     <http://cs.sr>(),
> >     cs.kr <http://cs.kr>()))
> >     l = cs.tableLength(1)
> >     print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))
> >    
> >     i = 0
> >     #while i<l:
> >     val = cs.tableGet(1, i)
> >     #val = R(i, 1., 1., 8., 10., -1., -8.)
> >     cs.tableSet(1, i, val)
> >    
> >       }}
> >     endin
> >    
> >     And then it works.
> >    
> >     I am not sure yet why CsoundQt hangs on the first error - probably
> >     some thread
> >     is not returning or some other kind of deadlock happens but seems
> >     that if
> >     python code is correct, ctcsound should work within CsoundQt. Did
> >     not test
> >     thorougly, though.
> >    
> >     greetings,
> >     tarmo
> >    
> >     On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
> >     > Ok, here it is:
> >     >
> >     > On 25/07/18 22:27, Tarmo Johannes wrote:
> >     > > Please send the csd (or resend if it was in an earlier email).
> >     > > Tarmo
> >     > >
> >     > > 25.07.2018 22:52 kirjutas kuupäeval "Richard"
> >    
> >     <[hidden email] <mailto:[hidden email]>
> >    
> >     > > <mailto:[hidden email] <mailto:[hidden email]>>>:
> >     > >     I am trying to run my csd with the superformula in
> >     > >     CsoundQt-d-py-cs6, but it hangs.
> >     > >
> >     > >     The last thing csound reports is:
> >     > >
> >     > >     writing 1024 sample blks of 64-bit floats to dac1
> >    
> >     > >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
> >         r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
> >     np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
> >         r = np.abs(r) ** (-1 / n1)
> >         return r
> >    
> >     i = 0
> >     while i<l:
> >             #val = cs.tableGet(1, i)
> >             val = R(i, 1., 1., 8., 10., -1., -8.)
> >             cs.tableSet(1, i, val)
> >             i+= 1
> >    
> >     > >     ftable 1:
> >     > >
> >     > >     new alloc for instr 1:
> >     > >
> >     > >     Richard
> >     > >
> >     > >     Csound mailing list [hidden email]
> >    
> >     <mailto:[hidden email]>
> >    
> >     > >     <mailto:[hidden email]
> >    
> >     <mailto:[hidden email]>>
> >    
> >     > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >    
> >     <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND> Send bugs reports
> >    
> >     > >     to https://github.com/csound/csound/issues
> >    
> >     <https://github.com/csound/csound/issues> Discussions of bugs and
> >    
> >     > >     features can be posted here
> >     > >
> >     > > Csound mailing list [hidden email]
> >    
> >     <mailto:[hidden email]>
> >    
> >     > > <mailto:[hidden email]
> >    
> >     <mailto:[hidden email]>>
> >    
> >     > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >    
> >     <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND> Send bugs reports to
> >    
> >     > > https://github.com/csound/csound/issues
> >    
> >     <https://github.com/csound/csound/issues> Discussions of bugs and
> >    
> >     > > features can be posted here
> >     >
> >     > Csound mailing list
> >     > [hidden email] <mailto:[hidden email]>
> >     > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >    
> >     <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
> >    
> >     > Send bugs reports to
> >     > https://github.com/csound/csound/issues
> >    
> >     <https://github.com/csound/csound/issues>
> >    
> >     > Discussions of bugs and features can be posted here
> >    
> >     Csound mailing list
> >     [hidden email] <mailto:[hidden email]>
> >     https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >     <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
> >     Send bugs reports to
> >     https://github.com/csound/csound/issues
> >     <https://github.com/csound/csound/issues>
> >     Discussions of bugs and features can be posted here
> >
> > Csound mailing list [hidden email]
> > <mailto:[hidden email]>
> > 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] CsoundQt hangs when running a csd with embedded ctcsound python

zappfinger
Hi Tarmo,

I am on OS X and yes it runs well standalone...

Richard


On 09/08/18 08:13, Tarmo Johannes wrote:

> Hi!
>
> I got back to this. For me your csd works fine -  python part does it job,
> sound is produced, no crash on second nor nth start. I am on Linux, CsoundQt
> built with pythonqt support. I tried recent build from develop branch and also
> CsoundQt 0.9.5.
>
> On which platform are you? Does your csd works if you use Run in Term?
>
> greetings,
> tarmo
>
> On neljapäev, 26. juuli 2018 17:52.45 EEST you wrote:
>> Ok thanks, I also test now for rho being zero. When I run this in
>> CsoundQt, it only works the first time.
>> When I run it again, it always hangs...
>> The modified csd is attached.
>>
>> Richard
>>
>> On 26/07/18 14:49, Francois PINOT wrote:
>>> The divide by zero error is due to np.sin which is evaluated to 0 when
>>> rho is 0. As n3 is negative, the power function returns an -inf value
>>> (divide by zero). In normal context, the second power function
>>> **(-1/n1) yields the zero value, canceling the effect of -inf. If
>>> Csound runs in his own thread, CsoundQt should not block...
>>>
>>> François
>>>
>>> 2018-07-26 11:58 GMT+02:00 Tarmo Johannes <[hidden email]
>>>
>>> <mailto:[hidden email]>>:
>>>      Hi,
>>>      
>>>      Thanks!
>>>      
>>>      I get the same result. Seems, the problem is in function R. When I
>>>      run the
>>>      original version in terminal I get output:
>>>      
>>>      new alloc for instr 10:
>>>      
>>>        --> Sample Rate: 48000.0, Control Rate: 480.0
>>>      
>>>      
>>>        --> TableGet: 0.0, len:16384
>>>      
>>>      __main__:7: RuntimeWarning: divide by zero encountered in
>>>      double_scalars
>>>      B  0.000 ..  1.000 T  1.000 TT  1.000 M:  0.00000  0.00000
>>>      Score finished in csoundPerform().
>>>      inactive allocs returned to freespace
>>>      end of score.              overall amps:  0.00000  0.00000
>>>                 overall samples out of range:        0        0
>>>      0 errors in performance
>>>      
>>>      Pay attention to the divide by zero warning that is caused probably by
>>>      
>>>      r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
>>>      np.abs(np.abs(np.sin(m *
>>>      rho / 4.0)) / b) ** n3
>>>      
>>>      If I simplified the instrument for testing:
>>>      instr 1
>>>        ; Use the cs python object
>>>        pyruni {{
>>>      print("\\n  --> Sample Rate: {}, Control Rate: {}\\n".format(cs.sr
>>>      <http://cs.sr>(),
>>>      cs.kr <http://cs.kr>()))
>>>      l = cs.tableLength(1)
>>>      print("\\n  --> TableGet: {}, len:{}\\n".format(cs.tableGet(1,0), l))
>>>      
>>>      i = 0
>>>      #while i<l:
>>>      val = cs.tableGet(1, i)
>>>      #val = R(i, 1., 1., 8., 10., -1., -8.)
>>>      cs.tableSet(1, i, val)
>>>      
>>>        }}
>>>      endin
>>>      
>>>      And then it works.
>>>      
>>>      I am not sure yet why CsoundQt hangs on the first error - probably
>>>      some thread
>>>      is not returning or some other kind of deadlock happens but seems
>>>      that if
>>>      python code is correct, ctcsound should work within CsoundQt. Did
>>>      not test
>>>      thorougly, though.
>>>      
>>>      greetings,
>>>      tarmo
>>>      
>>>      On neljapäev, 26. juuli 2018 0:39.37 EEST you wrote:
>>>      > Ok, here it is:
>>>      >
>>>      > On 25/07/18 22:27, Tarmo Johannes wrote:
>>>      > > Please send the csd (or resend if it was in an earlier email).
>>>      > > Tarmo
>>>      > >
>>>      > > 25.07.2018 22:52 kirjutas kuupäeval "Richard"
>>>      
>>>      <[hidden email] <mailto:[hidden email]>
>>>      
>>>      > > <mailto:[hidden email] <mailto:[hidden email]>>>:
>>>      > >     I am trying to run my csd with the superformula in
>>>      > >     CsoundQt-d-py-cs6, but it hangs.
>>>      > >
>>>      > >     The last thing csound reports is:
>>>      > >
>>>      > >     writing 1024 sample blks of 64-bit floats to dac1
>>>      
>>>      > >     SECTION 1:def R(rho, a, b, m, n1, n2, n3):
>>>          r = np.abs(np.abs(np.cos(m * rho / 4.0)) / a) ** n2 +
>>>      np.abs(np.abs(np.sin(m * rho / 4.0)) / b) ** n3
>>>          r = np.abs(r) ** (-1 / n1)
>>>          return r
>>>      
>>>      i = 0
>>>      while i<l:
>>>              #val = cs.tableGet(1, i)
>>>              val = R(i, 1., 1., 8., 10., -1., -8.)
>>>              cs.tableSet(1, i, val)
>>>              i+= 1
>>>      
>>>      > >     ftable 1:
>>>      > >
>>>      > >     new alloc for instr 1:
>>>      > >
>>>      > >     Richard
>>>      > >
>>>      > >     Csound mailing list [hidden email]
>>>      
>>>      <mailto:[hidden email]>
>>>      
>>>      > >     <mailto:[hidden email]
>>>      
>>>      <mailto:[hidden email]>>
>>>      
>>>      > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>      
>>>      <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND> Send bugs reports
>>>      
>>>      > >     to https://github.com/csound/csound/issues
>>>      
>>>      <https://github.com/csound/csound/issues> Discussions of bugs and
>>>      
>>>      > >     features can be posted here
>>>      > >
>>>      > > Csound mailing list [hidden email]
>>>      
>>>      <mailto:[hidden email]>
>>>      
>>>      > > <mailto:[hidden email]
>>>      
>>>      <mailto:[hidden email]>>
>>>      
>>>      > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>      
>>>      <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND> Send bugs reports to
>>>      
>>>      > > https://github.com/csound/csound/issues
>>>      
>>>      <https://github.com/csound/csound/issues> Discussions of bugs and
>>>      
>>>      > > features can be posted here
>>>      >
>>>      > Csound mailing list
>>>      > [hidden email] <mailto:[hidden email]>
>>>      > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>      
>>>      <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
>>>      
>>>      > Send bugs reports to
>>>      > https://github.com/csound/csound/issues
>>>      
>>>      <https://github.com/csound/csound/issues>
>>>      
>>>      > Discussions of bugs and features can be posted here
>>>      
>>>      Csound mailing list
>>>      [hidden email] <mailto:[hidden email]>
>>>      https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>      <https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
>>>      Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>>      <https://github.com/csound/csound/issues>
>>>      Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list [hidden email]
>>> <mailto:[hidden email]>
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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