\dspFunc{x 3 div \dspPeriodize\dspTri{0}{0.5} x 3 div 0.6666 sub \dspPeriodize\dspTri{0}{0.5} x 3 div 1.3333 sub \dspPeriodize\dspTri{0}{0.5} add add}}
\dspCustomTicks[axis=y]{1 $1/3$}
\end{dspPlot}
\end{figure}
\end{center}
\end{frame}
\def\dspTriTru#1#2#3{ #1 sub abs #3 div dup 0.5 gt {pop 0}{#3 mul #2 div 1 exch sub} ifelse }
\begin{frame}\frametitle{Downsampling by 2 with antialiasing filter}