#! /bin/fish -f

@ cnt = 1
set argv2=($argv)

foreach foo ($argv)
	if ("$foo" =~ *[Rr][Cc][Pp]) then
		set playfile=$foo
		set argv2[$cnt]="-"
	endif
	@ cnt ++
end

rcptomid $playfile | smf1to0 | timidity $argv2
