%% This is the package dspblocks
%%
%% (c) Paolo Prandoni <paolo.prandoni _at_ epfl.ch>
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
%% in directory macros/latex/base/lppl.txt.
%%
%% DESCRIPTION:
%% `dspblocks' is a companion package to dsptricks; it contains a
%% set of macros to draw the types of block diagrams commonly
%% used in DSP theory
%%
%% v1.1, November 2023
%%
% required packages:
\RequirePackage{calc}
\RequirePackage{fp}
\RequirePackage{pst-xkey}
\RequirePackage{fmtcount}
\RequirePackage{ifthen}
%
\ProvidesPackage{dspblocks}[2023/11/08 package for signal processing graphics]
% turn off FP messages
\FPmessagesfalse
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%% Set up BLOCK DIAGRAM plot
%
% \begin{psdrawBDmatrix}[OPTIONS]{X_SPACING}{Y_SPACING}
%
% X_SPACING
% Y_SPACING vertical and horizontal spacing
%
% Once in Block diagram mode the following commands are available
% (they all create nodes)
%
% \BDadd adder
% \BDmul multiplier
% \BDdelay z^{-1} delay block
% \BDdelayN{N} z^{-N} delay block
% \BDfilter{text} filter box
% \BDfilterMulti{text} multiline filter box
% \BDsplit splitting point (dot)
% \BDupsmp{K} upsampler by K
% \BDdwsmp{K} downsampler by K
%