Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SUBnoteParameters.h 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. SUBnoteParameters.h - Parameters for SUBnote (SUBsynth)
  4. Copyright (C) 2002-2005 Nasca Octavian Paul
  5. Author: Nasca Octavian Paul
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of version 2 of the GNU General Public License
  8. as published by the Free Software Foundation.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License (version 2 or later) for more details.
  13. You should have received a copy of the GNU General Public License (version 2)
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef SUB_NOTE_PARAMETERS_H
  18. #define SUB_NOTE_PARAMETERS_H
  19. #include "../globals.h"
  20. #include "../Misc/XMLwrapper.h"
  21. #include "EnvelopeParams.h"
  22. #include "FilterParams.h"
  23. #include "Presets.h"
  24. class SUBnoteParameters:public Presets
  25. {
  26. public:
  27. SUBnoteParameters();
  28. ~SUBnoteParameters();
  29. void add2XML(XMLwrapper *xml);
  30. void defaults();
  31. void getfromXML(XMLwrapper *xml);
  32. //Parameters
  33. //AMPLITUDE PARAMETRERS
  34. unsigned char Pstereo; //0 for mono,1 for stereo
  35. unsigned char PVolume;
  36. unsigned char PPanning;
  37. unsigned char PAmpVelocityScaleFunction;
  38. EnvelopeParams *AmpEnvelope;
  39. //Frequency Parameters
  40. unsigned short int PDetune;
  41. unsigned short int PCoarseDetune;
  42. unsigned char PDetuneType;
  43. unsigned char PFreqEnvelopeEnabled;
  44. EnvelopeParams *FreqEnvelope;
  45. unsigned char PBandWidthEnvelopeEnabled;
  46. EnvelopeParams *BandWidthEnvelope;
  47. //Filter Parameters (Global)
  48. unsigned char PGlobalFilterEnabled;
  49. FilterParams *GlobalFilter;
  50. unsigned char PGlobalFilterVelocityScale;
  51. unsigned char PGlobalFilterVelocityScaleFunction;
  52. EnvelopeParams *GlobalFilterEnvelope;
  53. //Other Parameters
  54. //If the base frequency is fixed to 440 Hz
  55. unsigned char Pfixedfreq;
  56. /* Equal temperate (this is used only if the Pfixedfreq is enabled)
  57. If this parameter is 0, the frequency is fixed (to 440 Hz);
  58. if this parameter is 64, 1 MIDI halftone -> 1 frequency halftone */
  59. unsigned char PfixedfreqET;
  60. //how many times the filters are applied
  61. unsigned char Pnumstages;
  62. //bandwidth
  63. unsigned char Pbandwidth;
  64. //How the magnitudes are computed (0=linear,1=-60dB,2=-60dB)
  65. unsigned char Phmagtype;
  66. //Magnitudes
  67. unsigned char Phmag[MAX_SUB_HARMONICS];
  68. //Relative BandWidth ("64"=1.0f)
  69. unsigned char Phrelbw[MAX_SUB_HARMONICS];
  70. //how much the bandwidth is increased according to lower/higher frequency; 64-default
  71. unsigned char Pbwscale;
  72. //how the harmonics start("0"=0,"1"=random,"2"=1)
  73. unsigned char Pstart;
  74. private:
  75. };
  76. #endif