Csound Csound-dev Csound-tekno Search About

[Csnd] Explanation of function tables?

Date2017-10-18 10:15
Frommuteboy
Subject[Csnd] Explanation of function tables?
Hi,
Can someone explain the idea of the function tables in a score? Does having
different values in the f table affect the sound? If the f table is key to
the sound of the instrument, shouldn't it be in the orchestra file?

Is it possible to have a single simple f table which applies to all
instruments, or does each instrument need its own f table?

I'm writing a program which generates multiple scores from a random seed. I
also want to randomise the instruments a little. If I randomly select an
instrument from my orc file, do I then need to put the correct corresponding
f table in the score? Can it be a generic basic f table that all instruments
can use?

Thanks for any help with what I hope is a simple question - I must be
missing something.

Best regards,
Matthew Petty



--
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

Date2017-10-18 10:24
FromVictor Lazzarini
SubjectRe: [Csnd] Explanation of function tables?
1) It doesn’t matter where you define your function table, it will be available to the
orchestra. You can do it in the score, or using an opcode in the orchestra (e.g. ftgen).
Reasons for this are mostly historical: originally function tables were created externally
to the synthesis program and so they were defined in scores. 

2) Yes, ftables are global objects, all instruments can in principle access them,
and you normally share access between instruments. However, it is also possible
to package function tables with instruments so they’re self-contained (using ftgenonce)

3) You can use a single function table to all instruments, if that’s what you want. If
you are using it to hold data (e.g. waveforms, envelopes) that is the same for all
instruments, that is what you do. Alternatively, you can have a selection of
function tables and pass their numbers as parameters to instrument instances 
if you want some variation.

HTH
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Oct 2017, at 10:15, muteboy  wrote:
> 
> Hi,
> Can someone explain the idea of the function tables in a score? Does having
> different values in the f table affect the sound? If the f table is key to
> the sound of the instrument, shouldn't it be in the orchestra file?
> 
> Is it possible to have a single simple f table which applies to all
> instruments, or does each instrument need its own f table?
> 
> I'm writing a program which generates multiple scores from a random seed. I
> also want to randomise the instruments a little. If I randomly select an
> instrument from my orc file, do I then need to put the correct corresponding
> f table in the score? Can it be a generic basic f table that all instruments
> can use?
> 
> Thanks for any help with what I hope is a simple question - I must be
> missing something.
> 
> Best regards,
> Matthew Petty
> 
> 
> 
> --
> 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

Date2017-10-18 10:37
FromTarmo Johannes
SubjectRe: [Csnd] Explanation of function tables?
Hi,

You can create tables both in score and orchestra, they are acessible by all 
instruments as long you know the table number.

There are many many ways how to use tables, 
a good chapter in FLOSS manual explains many sides of it:

http://write.flossmanuals.net/csound/d-function-tables/

greetings,
tarmo


On kolmapäev, 18. oktoober 2017 12:15.17 EEST you wrote:
> Hi,
> Can someone explain the idea of the function tables in a score? Does having
> different values in the f table affect the sound? If the f table is key to
> the sound of the instrument, shouldn't it be in the orchestra file?
> 
> Is it possible to have a single simple f table which applies to all
> instruments, or does each instrument need its own f table?
> 
> I'm writing a program which generates multiple scores from a random seed. I
> also want to randomise the instruments a little. If I randomly select an
> instrument from my orc file, do I then need to put the correct corresponding
> f table in the score? Can it be a generic basic f table that all
> instruments can use?
> 
> Thanks for any help with what I hope is a simple question - I must be
> missing something.
> 
> Best regards,
> Matthew Petty
> 
> 
> 
> --
> 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

Date2017-10-19 07:28
Frommuteboy
SubjectRe: [Csnd] Explanation of function tables?
Hi tarmo,
Thanks for the tip about where to put the table. And thank you for the link,
I will read it thoroughly to understand this subject.
Best regards,
Matthew



--
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

Date2017-10-19 08:09
Frommuteboy
SubjectRe: [Csnd] Explanation of function tables?
Hi Victor,
Thanks for the explanation, it helps a lot. I need to read up on this some
more.
The music I'm making is very simple, so I think I just need to assemble a
set of instruments with basic parameters, with a common table they can all
use. Then I can randomly select the instrument knowing it will work.

Best regards,
Matthew





--
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