Csound Csound-dev Csound-tekno Search About

[Csnd] take n val from ftable and write a new one with

Date2010-11-06 15:52
Fromstephane boussuge
Subject[Csnd] take n val from ftable and write a new one with
Hi ,
i want to take randomly n value from and ftable and write a new one with this values.

i saw some table opcodes for acces ftable but don't understand how i can exactly do that.

thanks

stf


Date2010-11-06 16:21
FromRory Walsh
Subject[Csnd] Re: take n val from ftable and write a new one with
Here's an example. Just replace voice.wav in function table one with
your own soundfile. Make sure you either place the soundfile in the
same directory as the csd file, or provide the correct path to your
soundfile.

Rory.




-odac


sr = 44100
ksmps = 64
nchnls = 1

instr 1
;randomly access samples from ft1
andx1 randi 1, .5
a1 tab abs(andx1), 1, 1

;write them to table ft2
andx2 phasor (sr/ftlen(2))
tablew a1, andx2, 2, 1

;read samples from tf2
aout tab andx2, 2, 1

;scale amplitude
out (aout*20000)
endin



f1 0 0 1 "voice.wav" 0 4 0
f2 0 65536 7 0 65536 0
i1 0 100



On 6 November 2010 15:52, stephane boussuge  wrote:
> Hi ,
> i want to take randomly n value from and ftable and write a new one with
> this values.
> i saw some table opcodes for acces ftable but don't understand how i can
> exactly do that.
> thanks
> stf
>


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"

Date2010-11-06 21:04
Fromjoachim heintz
Subject[Csnd] Re: take n val from ftable and write a new one with
do you mean a function table with audio data, as rory assumed, or a  
function table with other (fewer) values?
for the usage of the opcodes, this may help:
http://en.flossmanuals.net/bin/view/Csound/FUNCTIONTABLES
http://en.flossmanuals.net/bin/view/Csound/OpcodeGuideIII

	joachim


Am 06.11.2010 um 16:52 schrieb stephane boussuge:

> Hi ,
> i want to take randomly n value from and ftable and write a new one  
> with this values.
>
> i saw some table opcodes for acces ftable but don't understand how i  
> can exactly do that.
>
> thanks
>
> stf
>



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"

Date2010-11-07 18:26
Fromstephane boussuge
Subject[Csnd] Re: Re: take n val from ftable and write a new one with
Hi Joachim,
it's not for audio table but for only few values (scale and modes).
maybe with a loop but i can't figure how exactly.

thanks
stf


2010/11/6 joachim heintz <jh@joachimheintz.de>
do you mean a function table with audio data, as rory assumed, or a function table with other (fewer) values?
for the usage of the opcodes, this may help:
http://en.flossmanuals.net/bin/view/Csound/FUNCTIONTABLES
http://en.flossmanuals.net/bin/view/Csound/OpcodeGuideIII

       joachim


Am 06.11.2010 um 16:52 schrieb stephane boussuge:


Hi ,
i want to take randomly n value from and ftable and write a new one with this values.

i saw some table opcodes for acces ftable but don't understand how i can exactly do that.

thanks

stf




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"



Date2010-11-07 18:40
Fromstephane boussuge
Subject[Csnd] Re: Re: take n val from ftable and write a new one with
i just view you example 03D02.csd Joachim and i think it can help me a lot.
i'll make some test and try.

thanks
stf


2010/11/7 stephane boussuge <stfboussuge@gmail.com>
Hi Joachim,
it's not for audio table but for only few values (scale and modes).
maybe with a loop but i can't figure how exactly.

thanks
stf


2010/11/6 joachim heintz <jh@joachimheintz.de>

do you mean a function table with audio data, as rory assumed, or a function table with other (fewer) values?
for the usage of the opcodes, this may help:
http://en.flossmanuals.net/bin/view/Csound/FUNCTIONTABLES
http://en.flossmanuals.net/bin/view/Csound/OpcodeGuideIII

       joachim


Am 06.11.2010 um 16:52 schrieb stephane boussuge:


Hi ,
i want to take randomly n value from and ftable and write a new one with this values.

i saw some table opcodes for acces ftable but don't understand how i can exactly do that.

thanks

stf




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"




Date2010-11-07 18:57
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: take n val from ftable and write a new one with
Attachmentstest.csd  
that's good. i just made a simple example which does yet not avoid  
replications: 
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"


if you don't want any replications, this can perhaps be useful:
http://www.csounds.com/udo/displayOpcode.php?opcode_id=91
you could, for instance, use just the first N members of the permuted  
table.

	joachim



Am 07.11.2010 um 19:40 schrieb stephane boussuge:

> i just view you example 03D02.csd Joachim and i think it can help me  
> a lot.
> i'll make some test and try.
>
> thanks
> stf
>
>
> 2010/11/7 stephane boussuge 
> Hi Joachim,
> it's not for audio table but for only few values (scale and modes).
> maybe with a loop but i can't figure how exactly.
>
> thanks
> stf
>
>
> 2010/11/6 joachim heintz 
>
> do you mean a function table with audio data, as rory assumed, or a  
> function table with other (fewer) values?
> for the usage of the opcodes, this may help:
> http://en.flossmanuals.net/bin/view/Csound/FUNCTIONTABLES
> http://en.flossmanuals.net/bin/view/Csound/OpcodeGuideIII
>
>        joachim
>
>
> Am 06.11.2010 um 16:52 schrieb stephane boussuge:
>
>
> Hi ,
> i want to take randomly n value from and ftable and write a new one  
> with this values.
>
> i saw some table opcodes for acces ftable but don't understand how i  
> can exactly do that.
>
> thanks
>
> stf
>
>
>
>
> 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"
>
>
>


Date2010-11-07 21:20
Fromstephane boussuge
Subject[Csnd] Re: Re: Re: Re: take n val from ftable and write a new one with
Joachim, your UDO  is exactly what i need.
Thank you very much.
I'll try to play with the concept for learning and make my own process but i'll certainly use your udo too.

thanks

stf


2010/11/7 joachim heintz <jh@joachimheintz.de>
that's good. i just made a simple example which does yet not avoid replications: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"



if you don't want any replications, this can perhaps be useful:
http://www.csounds.com/udo/displayOpcode.php?opcode_id=91
you could, for instance, use just the first N members of the permuted table.

       joachim



Am 07.11.2010 um 19:40 schrieb stephane boussuge:

i just view you example 03D02.csd Joachim and i think it can help me a lot.
i'll make some test and try.

thanks
stf


2010/11/7 stephane boussuge <stfboussuge@gmail.com>
Hi Joachim,
it's not for audio table but for only few values (scale and modes).
maybe with a loop but i can't figure how exactly.

thanks
stf


2010/11/6 joachim heintz <jh@joachimheintz.de>

do you mean a function table with audio data, as rory assumed, or a function table with other (fewer) values?
for the usage of the opcodes, this may help:
http://en.flossmanuals.net/bin/view/Csound/FUNCTIONTABLES
http://en.flossmanuals.net/bin/view/Csound/OpcodeGuideIII

      joachim


Am 06.11.2010 um 16:52 schrieb stephane boussuge:


Hi ,
i want to take randomly n value from and ftable and write a new one with this values.

i saw some table opcodes for acces ftable but don't understand how i can exactly do that.

thanks

stf




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"