Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] function tables power-of-2, etc

Date2006-01-22 21:53
FromVictor Lazzarini
SubjectRe: [Cs-dev] function tables power-of-2, etc
There are a couple of table opcodes by Gabriel Maldonado
that accept any size tables I think...

>
> I can see where Matt's coming from ...
>
> Personally I would like to see only the table opcode able
> to accept  table size of deferred length, as I can see the
> potential problems in  allowing such behavior on the FFT
> GEN routines, etc.
>
> For example
>
> 
> 
>
> sr        =    48000
> ksmps    =    64
> nchnls    =    2
>
> #define    FILE    # "/loops/dl_break0.aif" #
>
> itmp        ftgen    1, 0, 0, 1, $FILE., 0, 4, 0
> ;itmp        ftgen    1, 0, 131072, 1, $FILE., 0, 4, 0
>
>         instr    1
>
> itabsz    filelen    $FILE.
>
> andx    phasor    (1 / itabsz)
> andx    =    andx * (itabsz * sr)
> a1    table    andx, 1
> a1    =    a1 * 32767
>
>     outs    a1, a1
>
>         endin
>
> 
> 
> i1    0    10
>
> e
> 
>
> 
>
> On Jan 22, 2006, at 3:05 PM, Victor Lazzarini wrote:
>
> > This would mean re-writing a load of opcodes. I think
> > it's OK
> > to have this kind of requirement. Even with so-called
> > 'modern'
> > synthesis systems (such as supercollider), it exists
> > (AFAIK).
> >
> > But of course, you can have opcodes that don't need such
> > thing. For these any size tables can be used.
> >
> > What I think would be useful is to allow any size tables
> > to be created (I don't think this is possible for all
> > GENS) with
> > any GEN.
> >
> > Victor
> >
> >>
> >> is the power-of-2 function table size requirement gone
> for >> csound5?
> >>
> >> if so, can you PLEASE remove it?  the optimization it
> >> gives is far   less important than
> >> the convenience of specifying your own size.
> >>
> >> ideally, it would be better to have "deferred" size for
> >> most GEN   routines --
> >> just give a '0' as the size for most GENS and let the
> >> routine   calculate the size.
> >>
> >> multichannel tables expanded beyond loscil family would
> be >> nice as   well..
> >>
> >> Thanks,
> >> Matt;
> >> ________________________
> >>            matt  ingalls
> >> http://sonomatics.com
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files for problems?  Stop!  Download the new
> AJAX search engine that makes searching your log files as
> easy as surfing the  web.  DOWNLOAD SPLUNK!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&
dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-22 22:17
FromIstvan Varga
SubjectRe: [Cs-dev] function tables power-of-2, etc
AttachmentsNone  

Date2006-01-23 01:38
FromDavid Akbari
SubjectRe: [Cs-dev] function tables power-of-2, etc
Gentlemen, thanks for your help,

It seems like this could be exactly what I am looking for !

tab         s           xio
tab_i       i           iio
tabw        (null)      xxio
tabw_i      (null)      iiio

Although I cannot seem to find a canonical reference manual entry for  
any of these :<

Also I cannot seem to find them in the CsoundAV Manual(?) is it  
possible to assimilate discrepancies between the CsoundAV Manual and  
The Canonical Reference Manual into the Canonical Manual as the changes  
are made to Csound5 ?

Also what do these opcodes do ? I can't seem to find any manual entry  
for them

tb0         i           i
tb0         k           k
tb0_init    (null)      i
tb1         i           i
tb1         k           k
tb10        i           i
tb10        k           k
tb10_init   (null)      i
tb11        i           i
tb11        k           k
tb11_init   (null)      i
tb12        i           i
tb12        k           k
tb12_init   (null)      i
tb13        i           i
tb13        k           k
tb13_init   (null)      i
tb14        i           i
tb14        k           k
tb14_init   (null)      i
tb15        i           i
tb15        k           k
tb15_init   (null)      i
tb1_init    (null)      i
tb2         i           i
tb2         k           k
tb2_init    (null)      i
tb3         i           i
tb3         k           k
tb3_init    (null)      i
tb4         i           i
tb4         k           k
tb4_init    (null)      i
tb5         i           i
tb5         k           k
tb5_init    (null)      i
tb6         i           i
tb6         k           k
tb6_init    (null)      i
tb7         i           i
tb7         k           k
tb7_init    (null)      i
tb8         i           i
tb8         k           k
tb8_init    (null)      i
tb9         i           i
tb9         k           k
tb9_init    (null)      i


-David

On Jan 22, 2006, at 4:53 PM, Victor Lazzarini wrote:

> There are a couple of table opcodes by Gabriel Maldonado
> that accept any size tables I think...
>
>>
>> I can see where Matt's coming from ...
>>
>> Personally I would like to see only the table opcode able
>> to accept  table size of deferred length, as I can see the
>> potential problems in  allowing such behavior on the FFT
>> GEN routines, etc.
>>
>> For example
>>
>> 
>> 
>>
>> sr        =    48000
>> ksmps    =    64
>> nchnls    =    2
>>
>> #define    FILE    # "/loops/dl_break0.aif" #
>>
>> itmp        ftgen    1, 0, 0, 1, $FILE., 0, 4, 0
>> ;itmp        ftgen    1, 0, 131072, 1, $FILE., 0, 4, 0
>>
>>         instr    1
>>
>> itabsz    filelen    $FILE.
>>
>> andx    phasor    (1 / itabsz)
>> andx    =    andx * (itabsz * sr)
>> a1    table    andx, 1
>> a1    =    a1 * 32767
>>
>>     outs    a1, a1
>>
>>         endin
>>
>> 
>> 
>> i1    0    10
>>
>> e
>> 
>>
>> 
>>
>> On Jan 22, 2006, at 3:05 PM, Victor Lazzarini wrote:
>>
>>> This would mean re-writing a load of opcodes. I think
>>> it's OK
>>> to have this kind of requirement. Even with so-called
>>> 'modern'
>>> synthesis systems (such as supercollider), it exists
>>> (AFAIK).
>>>
>>> But of course, you can have opcodes that don't need such
>>> thing. For these any size tables can be used.
>>>
>>> What I think would be useful is to allow any size tables
>>> to be created (I don't think this is possible for all
>>> GENS) with
>>> any GEN.
>>>
>>> Victor
>>>
>>>>
>>>> is the power-of-2 function table size requirement gone
>> for >> csound5?
>>>>
>>>> if so, can you PLEASE remove it?  the optimization it
>>>> gives is far   less important than
>>>> the convenience of specifying your own size.
>>>>
>>>> ideally, it would be better to have "deferred" size for
>>>> most GEN   routines --
>>>> just give a '0' as the size for most GENS and let the
>>>> routine   calculate the size.
>>>>
>>>> multichannel tables expanded beyond loscil family would
>> be >> nice as   well..
>>>>
>>>> Thanks,
>>>> Matt;
>>>> ________________________
>>>>            matt  ingalls
>>>> http://sonomatics.com
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep
>> through log files for problems?  Stop!  Download the new
>> AJAX search engine that makes searching your log files as
>> easy as surfing the  web.  DOWNLOAD SPLUNK!
>>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&
> dat=121642
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-23 06:58
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] function tables power-of-2, etc
The tb opcodes are in the manual; look at html/tb.html or under tb in
the index
  tab and tabw are in the manual in html/tab.html

I have been trying to identify which opcodes are not in the manual;
unfinished work in Loadable_Opcodes.txt
==John ffitch


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-23 09:46
FromIstvan Varga
SubjectRe: [Cs-dev] function tables power-of-2, etc
AttachmentsNone  

Date2006-01-23 13:28
FromDavid Akbari
SubjectRe: [Cs-dev] function tables power-of-2, etc
After further inspection I have found these to be quite useful.

I retract my initial request for any change to the sources.

Making music on Linux is fun :D


-David

ps. Thanks again, guys !

On Jan 23, 2006, at 4:46 AM, Istvan Varga wrote:

> On Monday 23 January 2006 02:38, David Akbari wrote:
>> Gentlemen, thanks for your help,
>>
>> It seems like this could be exactly what I am looking for !
>>
>> tab         s           xio
>> tab_i       i           iio
>> tabw        (null)      xxio
>> tabw_i      (null)      iiio
>>
>> Although I cannot seem to find a canonical reference manual entry for
>> any of these :<
>
> They are definitely in the manual. Look for tab.html (in the HTML 
> manual)
> or opcodes/tab.xml (XML manual in CVS).
>
>> Also what do these opcodes do ? I can't seem to find any manual entry
>> for them
>>
>> tb0         i           i
>> tb0         k           k
>> tb0_init    (null)      i
>> ...
>
> Again, these are documented: tb.html (HTML) and opcodes/tb.xml (XML).



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-23 13:45
FromVictor Lazzarini
SubjectRe: [Cs-dev] function tables power-of-2, etc
Surely is.

>Making music on Linux is fun :D
>

Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net