[Csnd] ftgen tables numbers
| Date | 2011-05-01 15:51 |
| From | francesco |
| Subject | [Csnd] ftgen tables numbers |
Hello All,
i have some ftgen tables in orchestra (numbered with 0),
and i would like to pass the number of the table in score.
But, because the tables numbers are automatically assigned i don't know this
number.
Then how can i know this number?
My instrument read the table using table opcode, and this accept only the
number
of the table.
Passing a string in score with the name (global) of table do not work.
How can i do?
Sorry if stupid, i am a little bit confused.
Thanks,
ciao,
francesco.
--
View this message in context: http://csound.1045644.n5.nabble.com/ftgen-tables-numbers-tp4362859p4362859.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 16:04 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] ftgen tables numbers |
I don't think that will be possible, because the score is sorted
before performance, before the table numbers are assigned.
The only way this would work is to have an instrument issue events
(with 'event', 'scoreline', etc.) from the orchestra.
Victor
On 1 May 2011, at 15:51, francesco wrote:
> Hello All,
> i have some ftgen tables in orchestra (numbered with 0),
> and i would like to pass the number of the table in score.
> But, because the tables numbers are automatically assigned i don't
> know this
> number.
> Then how can i know this number?
>
> My instrument read the table using table opcode, and this accept
> only the
> number
> of the table.
> Passing a string in score with the name (global) of table do not work.
>
> How can i do?
>
> Sorry if stupid, i am a little bit confused.
> Thanks,
> ciao,
> francesco.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/ftgen-tables-numbers-tp4362859p4362859.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 16:22 |
| From | Justin Smith |
| Subject | Re: [Csnd] ftgen tables numbers |
|
Could the instrument be adapted to read a table number from zak space using zir, or from a table using tab_i? In that case you could store the generated number using ziw or tableiw.
|
| Date | 2011-05-01 16:24 |
| From | francesco |
| Subject | [Csnd] Re: ftgen tables numbers |
i would like to don't use numbers because i have too many tables,
but there is no other (easy) way. Then i will use numbers.
There is a limit in ftable numbers?
Thanks,
ciao,
francesco.
--
View this message in context: http://csound.1045644.n5.nabble.com/ftgen-tables-numbers-tp4362859p4362921.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 16:30 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Csnd] Re: ftgen tables numbers |
>
> i would like to don't use numbers because i have too many tables,
> but there is no other (easy) way. Then i will use numbers.
>
> There is a limit in ftable numbers?
>
No real limit except memory
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 16:31 |
| From | joachim heintz |
| Subject | Re: [Csnd] ftgen tables numbers |
if you have a statement like
giTab1 ftgen 0, ...
you can access this table with the table opcode via the giTab1 variable:
... table ..., giTab1
or if you need to select, you can use 1, 2, ... instead of 0 in the
ftgen statement, as justin said.
(but maybe i misunderstood your problem ...)
joachim
Am 01.05.2011 16:51, schrieb francesco:
> Hello All,
> i have some ftgen tables in orchestra (numbered with 0),
> and i would like to pass the number of the table in score.
> But, because the tables numbers are automatically assigned i don't know this
> number.
> Then how can i know this number?
>
> My instrument read the table using table opcode, and this accept only the
> number
> of the table.
> Passing a string in score with the name (global) of table do not work.
>
> How can i do?
>
> Sorry if stupid, i am a little bit confused.
> Thanks,
> ciao,
> francesco.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/ftgen-tables-numbers-tp4362859p4362859.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 17:00 |
| From | francesco |
| Subject | [Csnd] Re: ftgen tables numbers |
i would have to pass giTable but in the score,
like: i 1 0 1 "giTable"
but this seems no possible, like Mr Victor well explain.
I think that i need to use numbered tables. Not a real problem ... only
having many tables and for many different use i would like to use name
instead of numbers.
But probably i have not well focused yet my work
(as often i misunderstood myself).
Thanks All,
ciao,
francesco.
--
View this message in context: http://csound.1045644.n5.nabble.com/ftgen-tables-numbers-tp4362859p4362973.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-01 19:00 |
| From | Jacob Joaquin |
| Subject | Re: [Csnd] Re: ftgen tables numbers |
I think using macros might work for your situation. This way you get both the full (or nearly full) functionality of numbered tables with the ease of use of an identifier. The only issue is that you'll have to declare the macros twice; Once in the score and once in the orchestra. Or you could define your tables in a separate file, and include that file in both the score and orchestra. Here's an example: http://www.thumbuki.com/csound/files/thumbuki20070420.csd Jake -- The Csound Blog - http://csoundblog.com/ Slipmat - http://slipmat.noisepages.com/ On Sun, May 1, 2011 at 9:00 AM, francesco |
| Date | 2011-05-01 19:19 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Csnd] Re: ftgen tables numbers |
> I think using macros might work for your situation. This way you get
> both the full (or nearly full) functionality of numbered tables with
> the ease of use of an identifier.
>
> The only issue is that you'll have to declare the macros twice; Once
> in the score and once in the orchestra. Or you could define your
> tables in a separate file, and include that file in both the score and
> orchestra.
>
Create a file with the macros nd include in both orc and sco -- the syntax
is the same
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-05-02 10:12 |
| From | Mark Van Peteghem |
| Subject | Re: [Csnd] ftgen tables numbers |
Graphane, the Python library that I wrote to generate scores, might
help. It has some sort of ftgen for scores. From the manual:
"The function ftgen is similar to the opcode with the same name, except
that it will create an f-
statement in the score. Its arguments are the same as the opcode, except
that the arguments after the
GEN argument are in a list. If the table number is 0, it will use a free
number and mark the number as
used, so it is not used again. Its return value is the table number.
This is very useful if you have a lot of
instruments that have a table number as an argument.
ft = ftgen(0, 0, 1024, 10, [1, 2])
score = [ (1, 0, 3, 100, ft) ]
WriteScore('myscore.sco', score)
will create a file called myscore.sco with the score
f1 0 1024 10 1 2
i1 0 3 100 1
This allows you to create function tables in a loop and store the
function tables in an array, which can be
a powerful technique."
The disadvantage is that the code in the .orc file doesn't know the
numbers (except through p-fields from the score).
You can download Graphane at
|