Variables inside quotes

I have this code:

plyWith ("{46 45 40 30 22 18 15 12 9 8 7 6 5 4 3 2 1}%16") (|* gain 0.98)

and I want to make it into a custom function like

down x = plyWith ("{46 45 40 30 22 18 15 12 9 8 7 6 5 4 3 2 1}%x") (|* gain 0.98)

But the x inside the quotes doesn't seem to be "picked up"
I tried concatenating like )%"++x but that didn't work
Is this possible? Thanks in advance!

hello!
one way to do is using 'setF', like this :

setF "x" "16"

d1 $ n "0*[^x]" # "bd"

you use ^(var) to access, and declare with setF "name" "value"

awesome, thank you so much! I'll give that a try