AmplitudeTierEditor.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _AmplitudeTierEditor_h_
  2. #define _AmplitudeTierEditor_h_
  3. /* AmplitudeTierEditor.h
  4. *
  5. * Copyright (C) 2003-2011,2012,2014,2015,2017 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "RealTierEditor.h"
  21. #include "AmplitudeTier.h"
  22. #include "Sound.h"
  23. Thing_define (AmplitudeTierEditor, RealTierEditor) {
  24. void v_createHelpMenuItems (EditorMenu menu)
  25. override;
  26. void v_play (double fromTime, double toTime)
  27. override;
  28. conststring32 v_quantityText ()
  29. override { return U"Sound pressure (Pa)"; }
  30. conststring32 v_rightTickUnits ()
  31. override { return U" Pa"; }
  32. double v_defaultYmin ()
  33. override { return -1.0; }
  34. double v_defaultYmax ()
  35. override { return +1.0; }
  36. conststring32 v_setRangeTitle ()
  37. override { return U"Set amplitude range..."; }
  38. conststring32 v_defaultYminText ()
  39. override { return U"-1.0"; }
  40. conststring32 v_defaultYmaxText ()
  41. override { return U"+1.0"; }
  42. conststring32 v_yminText ()
  43. override { return U"Minimum amplitude (Pa)"; }
  44. conststring32 v_ymaxText ()
  45. override { return U"Maximum amplitude (Pa)"; }
  46. };
  47. autoAmplitudeTierEditor AmplitudeTierEditor_create (conststring32 title,
  48. AmplitudeTier amplitude,
  49. Sound sound, // may be null
  50. bool ownSound);
  51. /* End of file AmplitudeTierEditor.h */
  52. #endif