Re: [PD] convert range (0 to 1) to (-4 to 4)

2007-11-20 Thread Derek Holzer
[number\ | [* 8] | [- 4] | [number\ bernardo amorim wrote: hello everybody i want to build a simple patch that converts the range 0 to 1 to -4 to 4 where 0.5 equals 0 in the second range. can anyone help? hugs bernardo -- Raging_Synth Bernardo Gomes de Amorim - 2007

Re: [PD] convert range (0 to 1) to (-4 to 4)

2007-11-20 Thread matteo sisti sette
Or you may create an abstraction similar to the attached one, which mimics I think the behaviour of the [range] external included in (??) pd-extended (??) Left inlet is the value to be rescaled; inlets 2 to 5 are input range min/max and output range min/max, respectively. Also, creation arguments

Re: [PD] convert range (0 to 1) to (-4 to 4)

2007-11-20 Thread Frank Barknecht
Hallo, bernardo amorim hat gesagt: // bernardo amorim wrote: i want to build a simple patch that converts the range 0 to 1 to -4 to 4 where 0.5 equals 0 in the second range. can anyone help? Now that you've already got some solutions for this case, it's maybe time to go for the more general

Re: [PD] convert range (0 to 1) to (-4 to 4)

2007-11-20 Thread Frank Barknecht
Hallo, matteo sisti sette hat gesagt: // matteo sisti sette wrote: Or you may create an abstraction similar to the attached one, which mimics I think the behaviour of the [range] external included in (??) pd-extended (??) Quite often I use a similar one which I called expr_scale. It uses expr

Re: [PD] convert range (0 to 1) to (-4 to 4)

2007-11-20 Thread bernardo amorim
UAU thanks alot frank what a amazing explanantion... hugs bern. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list