Csound Csound-dev Csound-tekno Search About

[Csnd] writing audio on table

Date2020-03-04 18:51
FromFrancesco Porta
Subject[Csnd] writing audio on table
Hello,
i have a question about writing audio on tables.
i use a triggering instrument (from Joachim Heintz) that
start another instrument that start recording input signal.
When i play the table i have at the very end a problem
(in Audacity is show a drop in amplitude). Using sample-accuracy
seems to solve this problem. But why this?

Moreover if i write the same table on file i see that at the end there are some
values at zero (in my example using 3 sec. of sampling time at sr 44100,
i have a table lenght of 132300 and starting from index 132173 values are zero)
Yes not so much! But i do not understand why.

For reference attached is my csd

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-04 20:50
Fromjoachim heintz
SubjectRe: [Csnd] writing audio on table
hi francesco -

i cannot tell you the precise answer, but i see that your ksmps is 128 
and this seems to hit the difference between 132300 and 132173 samples.

i'd try two steps:
1) set ksmps to 64 and 32 to verify that this is really the connection.
2) if so, there must be any asynchronism of 1 k-cycle.

best -
	joachim



On 04/03/2020 19:51, Francesco Porta wrote:
> Hello,
> i have a question about writing audio on tables.
> i use a triggering instrument (from Joachim Heintz) that
> start another instrument that start recording input signal.
> When i play the table i have at the very end a problem
> (in Audacity is show a drop in amplitude). Using sample-accuracy
> seems to solve this problem. But why this?
> 
> Moreover if i write the same table on file i see that at the end there are some
> values at zero (in my example using 3 sec. of sampling time at sr 44100,
> i have a table lenght of 132300 and starting from index 132173 values are zero)
> Yes not so much! But i do not understand why.
> 
> For reference attached is my csd
> 
> 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