home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / misc / sci / gfft / source / commands.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-06  |  5.3 KB  |  148 lines

  1. /***************************************************************************
  2.  *          Copyright (C) 1994  Charles P. Peterson                  *
  3.  *         4007 Enchanted Sun, San Antonio, Texas 78244-1254             *
  4.  *              Email: Charles_P_Peterson@fcircus.sat.tx.us                *
  5.  *                                                                         *
  6.  *          This is free software with NO WARRANTY.                  *
  7.  *          See gfft.c, or run program itself, for details.              *
  8.  *              Support is available for a fee.                      *
  9.  ***************************************************************************
  10.  *
  11.  * Program:     gfft--General FFT analysis
  12.  * File:        commands.c
  13.  * Purpose:     define command strings
  14.  * Author:      Charles Peterson (CPP)
  15.  * History:     28-May-1993 CPP; Created.
  16.  *              9-Aug-94 CPP (1.10); Minor semantic changes and Hidden3D
  17.  *
  18.  */
  19.  
  20. #include "gfft.h"
  21.  
  22. char *default_command (char *arguments)
  23. {
  24.     error_message (UNSUPPORTED_COMMAND);
  25.     RAISE_ERROR (NOTHING_SPECIAL); /* longjmp outa here! */
  26.     return arguments;
  27. }
  28.  
  29. char *default_argument (char *arguments)
  30. {
  31.     error_message (NO_SUCH_ARGUMENT);
  32.     RAISE_ERROR (NOTHING_SPECIAL); /* longjmp outa here! */
  33.     return arguments;
  34. }
  35.  
  36. Name_Info_St Gfft_Command[] = {
  37.  
  38.   {"?", "?", help_message},
  39.   {"About", "AB", about_message},
  40.   {"Amplitude", "AM", set_amplitude},
  41.   {"Append", "AP", set_append},
  42.   {"Banner", "BA", banner_message},
  43.   {"Bins", "BIN", set_bins},
  44.   {"Bits", "BIT", set_bits},
  45.   {"74dB-Blackman-Harris", "74D", set_blackman_harris_74db},
  46.   {"92dB-Blackman-Harris", "92D", set_blackman_harris_92db},
  47.   {"Calibration", "CAL", set_calibration},
  48.   {"Channel", "CH", set_channel},
  49.   {"CombinePlots", "COM", set_combine_plots},
  50.   {"Copying", "COP", copying_message},
  51.   {"CutCombinedPlot", "CU", cut_combined_plot},
  52.   {"dB", "DB", set_db},
  53.   {"dBCalibration", "DBC", set_db_calibration},
  54.   {"Exit", "E", quit},
  55.   {"FFT-Complex", "FF", set_fft},
  56.   {"Frames", "FR", set_frames},
  57.   {"Go", "G", ok},
  58.   {"Hamming", "HAM", set_hamming},
  59.   {"Hann", "HAN", set_hann},
  60.   {"Help", "HE", help_message},
  61.   {"Hidden3D", "HID", set_hidden_3d},
  62.   {"HighFrequency", "HIGHF", set_high_frequency},
  63.   {"HighY","HIGHY", set_high_y},
  64.   {"IgnoreFormat", "IG", set_ignore_format},
  65. /*  {"Input", "INP", default_command},   Not supported yet  */
  66.   {"Interleave", "INT", set_interleave},
  67. /*  {"Inverse", "INV", default_command},  Not supported yet */
  68.   {"LogX", "LOGX", set_logx},
  69.   {"LogY", "LOGY", set_logy},
  70.   {"LowFrequency", "LOWF", set_low_frequency},
  71.   {"LowY","LOWY", set_low_y},
  72.   {"Mean", "ME", set_mean},
  73.   {"Multiply", "MU", set_multiply},
  74.   {"NoCalibration", "NOCA", set_no_calibrations},
  75.   {"NoCombinePlots", "NOCO", set_no_combine_plots},
  76.   {"NodB", "NOD", set_no_db},
  77.   {"NoHidden3D", "NOH", set_no_hidden_3d},
  78.   {"NoIgnoreFormat", "NOIG", set_no_ignore_format},
  79.   {"NoInterleave", "NOINT", set_no_interleave},
  80.   {"NoLogX", "NOLOGX", set_no_logx},
  81.   {"NoLogY", "NOLOGY", set_no_logy},
  82.   {"NoNumerical", "NON", set_no_numerical},
  83.   {"NoOneShotOnly", "NOON", set_no_one_shot_only},
  84.   {"NoOverlap", "NOOV", set_no_overlap},
  85.   {"NoPad", "NOPAD", set_no_pad},
  86.   {"NoParseval", "NOPAR", set_no_parseval},
  87.   {"NoPink", "NOPI", set_no_pink},
  88.   {"NoPlot", "NOPL", set_no_plot},
  89.   {"NoPSDensity", "NOPS", set_no_psdensity},
  90.   {"NoQuantize","NOQ", set_no_quantization},
  91.   {"NoRepeatOnly", "NOR", set_no_repeat_only},
  92.   {"NoSaveMemory", "NOSA", set_no_save_memory},
  93.   {"NoSquaredSmoothing", "NOSQ", set_no_squared_smoothing},
  94.   {"NoTime3D", "NOT", set_no_time_3d},
  95.   {"NoWarranty", "NOW", no_warranty_message},
  96.   {"Numerical", "NU", set_numerical},
  97.   {"Octave", "OC", set_octave},
  98.   {"OK", "OK", ok},  /* batch_command depends on OK not Ok !!! */
  99.   {"Open", "OP", set_append},
  100.   {"OneShotOnly", "ON", set_one_shot_only},
  101. /*  {"Output", "OU", set_output},  not yet supported */
  102.   {"Overlap", "OV", set_overlap},
  103.   {"Pad", "PAD", set_pad},
  104.   {"Parseval", "PARS", set_parseval},
  105.   {"Parzen", "PARZ", set_parzen},
  106.   {"Pink", "PI", set_pink},
  107.   {"Plot", "PL", set_plot},
  108.   {"PlotOutput", "PLOTO", set_plot_output},
  109.   {"Power", "PO", set_power},
  110.   {"PSDensity", "PS", set_psdensity},
  111.   {"Quantize","QUA", set_quantization},
  112.   {"Quit", "Q", quit},
  113.   {"Rate", "RA", set_rate},
  114.   {"Read", "REA", set_read},
  115.   {"Rectangle", "REC", set_rectangle},
  116.   {"ReOutput", "REO", re_output},
  117.   {"RepeatOnly", "REPE", set_repeat_only},
  118.   {"RePlot", "REPL", re_plot},
  119.   {"RotX", "ROTX", set_rotation_x},
  120.   {"RotZ", "ROTZ", set_rotation_z},
  121.   {"SaveMemory", "SA", set_save_memory},
  122.   {"Set", "SE", set},
  123.   {"ShowSettings", "SH", settings_message},
  124.   {"Signed", "SI", set_signed},
  125.   {"SmoothingSegments", "SM", set_smoothing_segments},
  126.   {"SquaredSmoothing", "SQ", set_squared_smoothing},
  127.   {"StartByte", "STARTB", set_start_byte},
  128.   {"StartFrame", "STARTF", set_start_frame},
  129.   {"Sum", "SU", set_sum},
  130.   {"Terminal", "TE", set_terminal},
  131.   {"Time3D", "TIME3", set_time_3d},
  132.   {"TimeOffset", "TIMEOF", set_time_offset},
  133.   {"TimeOverlap", "TIMEOV", set_time_overlap},
  134.   {"TimeSegments", "TIMESEGM", set_time_segments},
  135.   {"TimeSegSize", "TIMESEGS", set_time_seg_size},
  136.   {"Triangle", "TR", set_triangle},
  137.   {"UnSigned", "U", set_unsigned},
  138.   {"Welch", "WE", set_welch},
  139.  
  140. #ifdef AMIGA
  141.   {"Workbench", "WO", workbench_command},
  142. #endif
  143.  
  144.   {"Write", "WR", set_write},
  145.   { "", "", default_command}
  146. };
  147.  
  148.