


HWSYNTH(SFS3)     MISC. REFERENCE MANUAL PAGES      HWSYNTH(SFS3)



NAME
     hwsynth - hardware synthesizer replay routines

SYNOPSIS
     void     hwsynthcode(inframe,outframe)
     short    *inframe;      / input frame from SY item */
     short    *outframe;     / encoded frame ready for replay */

     void     hwsynth(buff,numframes)
     short    *buffer;       / buffer of encoded frames for replay */
     int      numframes;     / number of frames to replay */


DESCRIPTION
     hwsynth provides a standard  mechanism  for  replaying  syn-
     thesizer  control data.  For machines equipped with a paral-
     lel interface connected to a hardware synthesizer, the  rou-
     tine  can control the hardware directly.  Otherwise the rou-
     tine uses a software  emulation  of  the  JSRU  synthesizer,
     srusynth.


     The routine hwsynthcode encodes a  standard  SY  item  frame
     into a 32 byte frame suitable for replay.  It must be called
     for each SY item frame before they may be replayed.


     The routine hwsynth is called with the encoded  data  for  a
     complete  synthesis.   The data is converted to a signal and
     replayed, either through a hardware interface or  through  a
     software emulation.  In the latter case, the DAC environment
     variable controls the selection of the  replay  device  (see
     sfsdac(3)).

     On Sun devices,  replay  is  simultaneous  with  conversion,
     reducing replay delay - see srusynth(1).

DEVICES
     /dev/dacp0/pfo0     16-bit Parallel IO on Masscomp computers

VERSION/AUTHOR
     1.0 - Mark Huckvale.

BUGS
     On the LSI synthesizer replay actually starts at  the  start
     of  the second frame.  Include a dummy frame to ensure accu-
     rate replay (replicating the first frame is easiest).

SOURCE
     /ptemp/mark/sfs/libsfs/hwsynth.c





SFS                     Last change: UCL                        1



