Making an audio crossfader

hi there :)

hopefully a fairly simple request for my first post…

as part of a project i want to make an audio crossfader with an audio player attached to each side.

im using two “audio output” nodes, and one “iobox” being used as a slider which is attached to the volume control on each “audio output” nodes at the same time. the volume values im controling are a range from 0db (loud) to -40db (quiet) id like it so that when the fader is on the left,player a is at 0db and player b at -40db and when the fader is on the right player a is -40db and player b is 0db.

at the moment when the slider is on the left they are both at 0db and on the right they are both at -40db. so it seems i need to invert the way the volume reacts on one side, or the value of the data going to the volume, but i cant suss it out…

Map (Value)

thanks for your quick reply. ive had a playwith those two nodes, but i cant get to where i want with it, can someone give me a tip or clue please.

just to confirm, i want to change one set of values with a range of 0db to -40db to a set of values ranging from -40db to 0db. so that when a value of -40db is entered the output is a value of 0db, -39db = -1db, -38db = -2db, -37db = -3db and so on.

thanks.

have a look at the helpfiles
set
Source Minimum = -40
Source Maximum = 0
Destination Minimum = 0
Destination Maximum = -40

there you are!

https://vvvv.org/sites/default/files/imagecache/large/images/callmenames_2007.03.0114.04.12.jpg

you sir, are a star :)that works brilliantly, thanks for your help, i did look at the helpfiles, but i got a bit confused, was nearly thre but just not quite!