Csound Csound-dev Csound-tekno Search About

[Csnd] partikkel question

Date2012-05-16 11:54
Frompeiman khosravi
Subject[Csnd] partikkel question
Hi Øyvind,

I was wondering if you're still planning to add different panning
algorithms (e.g. equal power) to partikkel? This would be really
useful as I find that linear crossfade doesn't work so well.

Thanks!

Peiman


Date2012-05-16 12:49
FromOeyvind Brandtsegg
SubjectRe: [Csnd] partikkel question
Attachmentspantab.patch  
Hi Peiman,
Oh, thanks for the reminder, I had forgotten all about this.
Now, the quickest for you is probably to take the attached patch and
apply to the csound source code and recompile.
(hoping that you won't get too much trouble, it's been some time
sinece I looked at this)
It allows an extra optional argument to partikkel, this argument
specifies an ftable containing fade curves between each partikkel
output,
so the table actually contains 8 panning curves concatenated into one table.
The first panning curve governs the pan from output 1 to output 2,
where the curve is applied to the gain of output 1, and inversely
applied to the gain of output 2.
Perhaps complicated when explained as text (??).
Here's code

       giRampUp        	ftgen   0, 0, 8193, 7, 0, 8192, 1
         ; ramp
	giSigmoRise 	ftgen	0, 0, 8193, 19, 0.5, 1, 270, 1				; rising sigmoid
       giSinRise       	ftgen   0, 0, 8193, 19, 0.25, 1, 0, 0
         ; rising sigmoid
       giPanLaws       	ftgen   0, 0, 8192, 18, giSinRise, 1, 0, 1024, \
                                               giSinRise, 1, 1025, 2048, \
                                               giRampUp, 1, 2049, 3072, \
                                               giRampUp, 1, 3073, 4096, \
                                               giRampUp, 1, 4097, 5120, \
                                               giSigmoRise, 1, 5121, 6144, \
                                               giSigmoRise, 1, 6145, 7186, \
                                               giSinRise, 1, 7187, 8192, \

... and you would just add the argument giPanLaws after all of the
other partikkel arguments (also after the optional id parameter)

Now that you've reminded me, I will try to find time to work this into
canonical code and release. How could I forget ....
It will still be some time before I can do it, but at least now it is
on my todo list again.

best
Oeyvind


2012/5/16 peiman khosravi :
> Hi Øyvind,
>
> I was wondering if you're still planning to add different panning
> algorithms (e.g. equal power) to partikkel? This would be really
> useful as I find that linear crossfade doesn't work so well.
>
> Thanks!
>
> Peiman
>
>
> 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"
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2012-05-16 13:44
Frompeiman khosravi
SubjectRe: [Csnd] partikkel question
Thanks very much. I need to figure out how to build Csound first as
it's been a long time since I did that!

best,

P

On 16 May 2012 12:49, Oeyvind Brandtsegg  wrote:
> Hi Peiman,
> Oh, thanks for the reminder, I had forgotten all about this.
> Now, the quickest for you is probably to take the attached patch and
> apply to the csound source code and recompile.
> (hoping that you won't get too much trouble, it's been some time
> sinece I looked at this)
> It allows an extra optional argument to partikkel, this argument
> specifies an ftable containing fade curves between each partikkel
> output,
> so the table actually contains 8 panning curves concatenated into one table.
> The first panning curve governs the pan from output 1 to output 2,
> where the curve is applied to the gain of output 1, and inversely
> applied to the gain of output 2.
> Perhaps complicated when explained as text (??).
> Here's code
>
>       giRampUp         ftgen   0, 0, 8193, 7, 0, 8192, 1
>         ; ramp
>        giSigmoRise     ftgen   0, 0, 8193, 19, 0.5, 1, 270, 1                          ; rising sigmoid
>       giSinRise        ftgen   0, 0, 8193, 19, 0.25, 1, 0, 0
>         ; rising sigmoid
>       giPanLaws        ftgen   0, 0, 8192, 18, giSinRise, 1, 0, 1024, \
>                                               giSinRise, 1, 1025, 2048, \
>                                               giRampUp, 1, 2049, 3072, \
>                                               giRampUp, 1, 3073, 4096, \
>                                               giRampUp, 1, 4097, 5120, \
>                                               giSigmoRise, 1, 5121, 6144, \
>                                               giSigmoRise, 1, 6145, 7186, \
>                                               giSinRise, 1, 7187, 8192, \
>
> ... and you would just add the argument giPanLaws after all of the
> other partikkel arguments (also after the optional id parameter)
>
> Now that you've reminded me, I will try to find time to work this into
> canonical code and release. How could I forget ....
> It will still be some time before I can do it, but at least now it is
> on my todo list again.
>
> best
> Oeyvind
>
>
> 2012/5/16 peiman khosravi :
>> Hi Øyvind,
>>
>> I was wondering if you're still planning to add different panning
>> algorithms (e.g. equal power) to partikkel? This would be really
>> useful as I find that linear crossfade doesn't work so well.
>>
>> Thanks!
>>
>> Peiman
>>
>>
>> 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"
>>
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> 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"
>