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.

VexArpSettings.h 2.4KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCETICE project - Copyright 2008 by Lucio Asnaghi.
  4. JUCETICE is based around the JUCE library - "Jules' Utility Class Extensions"
  5. Copyright 2008 by Julian Storer.
  6. ------------------------------------------------------------------------------
  7. JUCE and JUCETICE can be redistributed and/or modified under the terms of
  8. the GNU Lesser General Public License, as published by the Free Software
  9. Foundation; either version 2 of the License, or (at your option) any later
  10. version.
  11. JUCE and JUCETICE are distributed in the hope that they will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public License
  16. along with JUCE and JUCETICE; if not, visit www.gnu.org/licenses or write to
  17. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  18. Boston, MA 02111-1307 USA
  19. ==============================================================================
  20. @author rockhardbuns
  21. @tweaker Lucio Asnaghi
  22. @tweaker falkTX
  23. ==============================================================================
  24. */
  25. #ifndef DISTRHO_VEX_ARP_SETTINGS_HEADER_INCLUDED
  26. #define DISTRHO_VEX_ARP_SETTINGS_HEADER_INCLUDED
  27. struct VexArpSettings
  28. {
  29. static const int kVelocitiesSize = 16;
  30. static const int kGridSize = kVelocitiesSize*5;
  31. int length; // 1-16 (16=kVelocitiesSize)
  32. int timeMode; // timeSig, 0-3 (4, 8, 16, 32), 0 is unused
  33. int syncMode; // 1, 2 (key sync, bar sync)
  34. int failMode; // 1, 2 or 3 (silent step, skip one, skip two)
  35. int velMode; // 1, 2 or 3 (pattern vel, input vel, sum vels)
  36. float velocities[kVelocitiesSize];
  37. bool grid[kGridSize];
  38. bool on;
  39. VexArpSettings()
  40. {
  41. reset();
  42. }
  43. void reset()
  44. {
  45. length = 8; // half
  46. timeMode = 2; // 16
  47. syncMode = 1; // key sync
  48. failMode = 1; // skip one
  49. velMode = 1;
  50. on = false;
  51. for (int i = 0; i < kVelocitiesSize; ++i)
  52. velocities[i] = 0.5f;
  53. for (int i = 0; i < kGridSize; ++i)
  54. grid[i] = false;
  55. }
  56. };
  57. #endif // DISTRHO_VEX_ARP_SETTINGS_HEADER_INCLUDED