Hi!

Can I use a parameter for spceifying the diskin filename in an instrument?


; ---------------------------------------------------
sr = 44100
kr = 44100
ksmps = 1
nchnls = 2
; ---------------------------------------------------
instr TestInstrument
   ivol = p4
   ipan = p5 * 1.570796327
  
; ---------------------------------------------------
   ; can I replace the "foo" filename below with a parameter concatenated with ".wav"?
  
;
   aleft, aright diskin "foo.wav", 1
   ; ---------------------------------------------------
   aleft = aleft * ivol * cos(ipan)
   aright = aright * ivol * sin(ipan)
   outs aleft, aright
endin
; ---------------------------------------------------


Jonas