Re: Panning with expr [was: Re: [PD] delay effects in PD: suggestions?]

2006-11-12 Thread derek holzer

Hey Frank,

Frank Barknecht wrote:


I once heard that you don't like [expr]. (Just joking ;)


I failed every math class I ever took, which might explain my aversion 
to [expr]! ;-)



Attached patch shows them all.


Thanks for this. Did I mention lately that you rock?

d.
--
derek holzer ::: http://www.umatic.nl
---Oblique Strategy # 55:
Do the last thing first

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: Panning with expr [was: Re: [PD] delay effects in PD: suggestions?]

2006-11-12 Thread Hans-Christoph Steiner


On Nov 12, 2006, at 7:27 AM, Frank Barknecht wrote:


Hallo,
derek holzer hat gesagt: // derek holzer wrote:


derek holzer wrote:

Help me out here, cause I've been using that particular dirty-but- 
quick
panner construction for years now. What is the difference between  
your
version and mine? Seems like they both give a range from 0-1 to  
the left

channel and the inverse of that to the right channel.


Never mind! I figured it out. There's one patch cable in the  
wrong

place in my version. If that were fixed, our maths would be the same.


Yes, it's the same. My version might be slightly faster because it
avoids a multiplication, but then it has a variable replacement in a
message box, which also is a bit costly. Normally I use something like

  [expr 1-$f1; $f1]

to do the splitting in one object but I once heard that you don't like
[expr]. (Just joking ;)

Using [expr] for panning has the advantage to allow for writing
alternative pannings in a very compact way like:

  [expr sqrt(1-$f1); sqrt($f1)]

  [expr cos(1.57 * $f1); sin(1.57 * $f1)]

Attached patch shows them all.


I put these three panning algorithms into objects in the pan  
library, and added another odd one devised by a guy named gogins, and  
included a GOP panner.


They are in the pan library in Pd-extended, or in CVS:

http://pure-data.cvs.sourceforge.net/pure-data/externals/hcs/pan/

.hc



News is what people want to keep hidden and everything else is  
publicity.  - Bill Moyers




___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: Panning with expr [was: Re: [PD] delay effects in PD: suggestions?]

2006-11-12 Thread Frank Barknecht
Hallo,
[EMAIL PROTECTED] hat gesagt: // [EMAIL PROTECTED] wrote:

  Attached patch shows them all.
 
 thanks also for that;
 keeps me away from some weired [line]-constructions, which 
 made me laugh somehow...   
 just subscribed new to the list, and wanted to say hello to everybody;

Welcome on board!

Regarding [line]: let me add that my examples are deliberately
simplified and don't have [pack 0 10][line~] after the [expr]
outlets only because of that. Normally I always use [line~] or [line~]
when multiplying a float number with a signal to avoid clicks.

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list