Csound Csound-dev Csound-tekno Search About

[Csnd] can table point to a different ftable without closing csound.

Date2019-08-26 22:48
Fromfauveboy
Subject[Csnd] can table point to a different ftable without closing csound.
Im using table to playback audio samples in real-time. I need to be able to
load other samples on the fly.
Of course table can only load ftables at i-rate? How can I get round this
design so I can have table read difference ftables the instant I need it to? 



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2019-08-27 08:25
FromOeyvind Brandtsegg
SubjectRe: [Csnd] can table point to a different ftable without closing csound.
You can use ftgen inside an instrument to change the contents of a table. There might be runtime problems if the size of the table changes while an oscillator is reading from it, so you have to take some care.
Otherwise, if you can preload all tables, you can use an opcode that allows changing tkhe table nummber at k-rate, like tablekt for example (https://csound.com/docs/manual/tablekt.html).
If you want to rewrite the table contents sequentially, with a signal that you have running in your instrument, you can also use tablewa (https://csound.com/docs/manual/tablewa.html) to write to a table. 

There might be different options for solving it, depending on the details of what you need to do. Hope these pointers give an indication of possible ways to go about it.

best
Oeyvind

man. 26. aug. 2019 kl. 23:44 skrev fauveboy <joel.ramsbottom@hotmail.co.uk>:
Im using table to playback audio samples in real-time. I need to be able to
load other samples on the fly.
Of course table can only load ftables at i-rate? How can I get round this
design so I can have table read difference ftables the instant I need it to?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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