The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

85 lines
3.0KB

  1. /*
  2. ==============================================================================
  3. This is an automatically generated file created by the Jucer!
  4. Creation date: 1 May 2011 12:06:00pm
  5. Be careful when adding custom code to these files, as only the code within
  6. the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  7. and re-saved.
  8. Jucer version: 1.12
  9. ------------------------------------------------------------------------------
  10. The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
  11. Copyright 2004-6 by Raw Material Software ltd.
  12. ==============================================================================
  13. */
  14. #ifndef __JUCER_HEADER_AUDIODEMOSYNTHPAGE_AUDIODEMOSYNTHPAGE_1E55DCCB__
  15. #define __JUCER_HEADER_AUDIODEMOSYNTHPAGE_AUDIODEMOSYNTHPAGE_1E55DCCB__
  16. //[Headers] -- You can add your own extra header files here --
  17. #include "../jucedemo_headers.h"
  18. #include "AudioDemoTabComponent.h"
  19. class SynthAudioSource;
  20. //[/Headers]
  21. //==============================================================================
  22. /**
  23. //[Comments]
  24. An auto-generated component, created by the Jucer.
  25. Describe your class and how it works here!
  26. //[/Comments]
  27. */
  28. class AudioDemoSynthPage : public Component,
  29. public ButtonListener
  30. {
  31. public:
  32. //==============================================================================
  33. AudioDemoSynthPage (AudioDeviceManager& deviceManager_);
  34. ~AudioDemoSynthPage();
  35. //==============================================================================
  36. //[UserMethods] -- You can add your own custom methods in this section.
  37. //[/UserMethods]
  38. void paint (Graphics& g);
  39. void resized();
  40. void buttonClicked (Button* buttonThatWasClicked);
  41. //==============================================================================
  42. juce_UseDebuggingNewOperator
  43. private:
  44. //[UserVariables] -- You can add your own custom variables in this section.
  45. AudioDeviceManager& deviceManager;
  46. MidiKeyboardState keyboardState;
  47. AudioSourcePlayer audioSourcePlayer;
  48. ScopedPointer<SynthAudioSource> synthAudioSource;
  49. //[/UserVariables]
  50. //==============================================================================
  51. MidiKeyboardComponent* keyboardComponent;
  52. ToggleButton* sineButton;
  53. ToggleButton* sampledButton;
  54. LiveAudioInputDisplayComp* liveAudioDisplayComp;
  55. //==============================================================================
  56. // (prevent copy constructor and operator= being generated..)
  57. AudioDemoSynthPage (const AudioDemoSynthPage&);
  58. const AudioDemoSynthPage& operator= (const AudioDemoSynthPage&);
  59. };
  60. #endif // __JUCER_HEADER_AUDIODEMOSYNTHPAGE_AUDIODEMOSYNTHPAGE_1E55DCCB__