Csound Csound-dev Csound-tekno Search About

[Csnd] about setksmps

Date2020-03-07 08:57
FromFrancesco Porta
Subject[Csnd] about setksmps
Hello,
when i try to use setksmps in a intrument block i have segmentation fault.
Tested also with minimal csd (a single instrument with poscil)
What i do not understand?

Ubuntu 16.04
Csound version 6.14 (double samples) Mar  4 2020

Thanks,
ciao,
francesco

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

Date2020-03-07 09:32
Fromjoachim heintz
SubjectRe: [Csnd] about setksmps
hi francesco -
can you please send your minimal example?  then we can test, too.
best -
	joachim



On 07/03/2020 09:57, Francesco Porta wrote:
> Hello,
> when i try to use setksmps in a intrument block i have segmentation fault.
> Tested also with minimal csd (a single instrument with poscil)
> What i do not understand?
> 
> Ubuntu 16.04
> Csound version 6.14 (double samples) Mar  4 2020
> 
> Thanks,
> ciao,
> francesco
> 
> 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

Date2020-03-07 09:44
Fromfra
SubjectRe: [Csnd] about setksmps
Attachmentstest.csd  
Sure, thanks.
Here and attached (the same)



-odac


sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1

setksmps 2

aout poscil 0.5, 100
outs aout, aout
endin




i 1 0 1





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

Date2020-03-07 09:49
FromEduardo Moguillansky
SubjectRe: [Csnd] about setksmps
setksmps works fine in udos. Inside an instr the result, both in 
realtime and offline, seems wrong.

On 07.03.20 10:32, joachim heintz wrote:
> hi francesco -
> can you please send your minimal example?  then we can test, too.
> best -
>     joachim
>
>
>
> On 07/03/2020 09:57, Francesco Porta wrote:
>> Hello,
>> when i try to use setksmps in a intrument block i have segmentation 
>> fault.
>> Tested also with minimal csd (a single instrument with poscil)
>> What i do not understand?
>>
>> Ubuntu 16.04
>> Csound version 6.14 (double samples) Mar  4 2020
>>
>> Thanks,
>> ciao,
>> francesco
>>
>> 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

Date2020-03-07 10:06
Fromjoachim heintz
SubjectRe: [Csnd] about setksmps
i don't get a segfault, but a distorted result.  as eduardo says, 
something seems to be wrong with setksmps in an instrument.

could you file a bug report in https://github.com/csound/csound/issues ?

best -
	joachim



On 07/03/2020 10:44, fra wrote:
> Sure, thanks.
> Here and attached (the same)
> 
> 
> 
> -odac
> 
> 
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs  = 1
> 
> instr 1
> 
> setksmps 2
> 
> aout poscil 0.5, 100
> outs aout, aout
> endin
> 
> 
> 
> 
> i 1 0 1
> 
> 
> 
> 
> 
> 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

Date2020-03-07 10:58
Fromfra
SubjectRe: [Csnd] about setksmps
Thanks,

done. I guess i have done right.

Good thing i was not wrong :)

ciao,

francesco.

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

Date2020-03-07 11:55
Fromjoachim heintz
SubjectRe: [Csnd] about setksmps
thanks.  your short example would also be good in the bug report, to 
reproduce for the developer, together with csound version and operating 
system.



On 07/03/2020 11:58, fra wrote:
> Thanks,
> 
> done. I guess i have done right.
> 
> Good thing i was not wrong :)
> 
> ciao,
> 
> francesco.
> 
> 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

Date2020-03-07 12:04
Fromfra
SubjectRe: [Csnd] about setksmps
>> Good thing i was not wrong :)

last famous worlds ...

redone ... maybe right this time :)

ciao,

francesco.

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

Date2020-03-07 21:29
Fromjohn
SubjectRe: [Csnd] about setksmps
This is my fault insme new code that fixes many bugs.  Will try to fix.

==John ff

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

Date2020-03-08 08:32
Fromjoachim heintz
SubjectRe: [Csnd] about setksmps
did you push?  i just pulled but the last commit is not this, i think.


On 07/03/2020 22:29, john wrote:
> This is my fault insme new code that fixes many bugs.  Will try to fix.
> 
> ==John ff
> 
> 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

Date2020-03-08 16:31
Fromjohn
SubjectRe: [Csnd] about setksmps
Yes; commit 2d1d5eece2e532026f9b98f22e24662acb2fde90
with message
fix for carrying opcode name into PerfError




On Sun, 8 Mar 2020, joachim heintz wrote:

> did you push?  i just pulled but the last commit is not this, i think.
>
>
> On 07/03/2020 22:29, john wrote:
>> This is my fault insme new code that fixes many bugs.  Will try to fix.
>> 
>> ==John ff
>> 
>> 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