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.

80 lines
2.7KB

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