xue@0
|
1 /*
|
xue@0
|
2 Harmonic Visualiser
|
xue@0
|
3
|
xue@0
|
4 An audio file viewer and editor.
|
xue@0
|
5 Centre for Digital Music, Queen Mary, University of London.
|
xue@0
|
6 This file copyright 2011 Wen Xue.
|
xue@0
|
7
|
xue@0
|
8 This program is free software; you can redistribute it and/or
|
xue@0
|
9 modify it under the terms of the GNU General Public License as
|
xue@0
|
10 published by the Free Software Foundation; either version 2 of the
|
xue@0
|
11 License, or (at your option) any later version.
|
xue@0
|
12 */
|
xue@0
|
13 //---------------------------------------------------------------------------
|
xue@0
|
14
|
xue@0
|
15 #ifndef EditorPanelUnitH
|
xue@0
|
16 #define EditorPanelUnitH
|
xue@0
|
17 //---------------------------------------------------------------------------
|
xue@0
|
18 /*
|
xue@0
|
19 EditorPanelUnit.cpp implements the Editor panel GUI of HV.
|
xue@0
|
20 */
|
xue@0
|
21
|
xue@0
|
22 #include <Classes.hpp>
|
xue@0
|
23 #include <Controls.hpp>
|
xue@0
|
24 #include <StdCtrls.hpp>
|
xue@0
|
25 #include <Forms.hpp>
|
xue@0
|
26 #include <Buttons.hpp>
|
xue@0
|
27 #include <ComCtrls.hpp>
|
xue@0
|
28 #include <ExtCtrls.hpp>
|
xue@0
|
29 #include "EventBoxUnit.h"
|
xue@0
|
30 #include <Dialogs.hpp>
|
xue@0
|
31 //---------------------------------------------------------------------------
|
xue@0
|
32 class TEditorPanel : public TForm
|
xue@0
|
33 {
|
xue@0
|
34 __published: // IDE-managed Components
|
xue@0
|
35 TPanel *Panel1;
|
xue@0
|
36 TSpeedButton *SpeedButton1;
|
xue@0
|
37 TSpeedButton *SpeedButton2;
|
xue@0
|
38 TPanel *Panel2;
|
xue@0
|
39 TPageControl *PageControl1;
|
xue@0
|
40 TTabSheet *AmplifySheet;
|
xue@0
|
41 TLabel *Label1;
|
xue@0
|
42 TEdit *AmpEdit1;
|
xue@0
|
43 TEdit *AmpDBEdit1;
|
xue@0
|
44 TTabSheet *PitchSheet;
|
xue@0
|
45 TEdit *PitchEdit1;
|
xue@0
|
46 TCheckBox *PitchCheck1;
|
xue@0
|
47 TTabSheet *AMSheet;
|
xue@0
|
48 TEdit *AMAEdit1;
|
xue@0
|
49 TEdit *AMFEdit1;
|
xue@0
|
50 TTabSheet *FMSheet;
|
xue@0
|
51 TLabel *Label2;
|
xue@0
|
52 TEdit *FMAEdit1;
|
xue@0
|
53 TEdit *FMFEdit1;
|
xue@0
|
54 TTabSheet *DeFMSheet;
|
xue@0
|
55 TLabel *Label3;
|
xue@0
|
56 TLabel *Label4;
|
xue@0
|
57 TEdit *DeFMEdit1;
|
xue@0
|
58 TEdit *DeFMEdit2;
|
xue@0
|
59 TLabel *Label5;
|
xue@0
|
60 TLabel *Label6;
|
xue@0
|
61 TLabel *Label7;
|
xue@0
|
62 TLabel *Label8;
|
xue@0
|
63 TLabel *Label9;
|
xue@0
|
64 TLabel *Label10;
|
xue@0
|
65 TEdit *AMPhEdit1;
|
xue@0
|
66 TLabel *Label11;
|
xue@0
|
67 TLabel *Label12;
|
xue@0
|
68 TEdit *FMPhEdit1;
|
xue@0
|
69 TLabel *Label13;
|
xue@0
|
70 TOpenDialog *OpenDialog1;
|
xue@0
|
71 TSpeedButton *SpeedButton4;
|
xue@0
|
72 void __fastcall AmpEdit1MouseMove(TObject *Sender, TShiftState Shift,
|
xue@0
|
73 int X, int Y);
|
xue@0
|
74 void __fastcall AmpEdit1KeyPress(TObject *Sender, char &Key);
|
xue@0
|
75 void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
|
xue@0
|
76 void __fastcall SpeedButton1Click(TObject *Sender);
|
xue@0
|
77 void __fastcall SpeedButton2Click(TObject *Sender);
|
xue@0
|
78 void __fastcall SpeedButton4Click(TObject *Sender);
|
xue@0
|
79 private: // User declarations
|
xue@0
|
80 public: // User declarations
|
xue@0
|
81 int From;
|
xue@0
|
82 int To;
|
xue@0
|
83 int FromAfter;
|
xue@0
|
84 int ToAfter;
|
xue@0
|
85 int Channel;
|
xue@0
|
86 int targettype;
|
xue@0
|
87 __int16* Before;
|
xue@0
|
88 double* target;
|
xue@0
|
89 int dst;
|
xue@0
|
90 int den;
|
xue@0
|
91 __fastcall TEditorPanel(TComponent* Owner);
|
xue@0
|
92 __fastcall ~TEditorPanel();
|
xue@0
|
93
|
xue@0
|
94 void __fastcall WMMouseWheel(TWMMouseWheel Message);
|
xue@0
|
95 void __fastcall AmpEdit1MouseWheel(int);
|
xue@0
|
96 void __fastcall AMAEdit1MouseWheel(int);
|
xue@0
|
97 void __fastcall DeFMEdit1MouseWheel(int);
|
xue@0
|
98 void __fastcall FMAEdit1MouseWheel(int);
|
xue@0
|
99 void __fastcall FMFEdit1MouseWheel(int);
|
xue@0
|
100
|
xue@0
|
101 void __fastcall EditAmplify(double a);
|
xue@0
|
102 void __fastcall EditPitchShifting(double ps);
|
xue@0
|
103 void __fastcall EditAM(double dep, double fre, double ph);
|
xue@0
|
104 void __fastcall EditFM(double dep, double fre, double ph);
|
xue@0
|
105 void __fastcall EditReFM(double a, double r);
|
xue@0
|
106 THS* HS;
|
xue@0
|
107
|
xue@0
|
108 BEGIN_MESSAGE_MAP
|
xue@0
|
109 MESSAGE_HANDLER(WM_MOUSEWHEEL, TWMMouseWheel, WMMouseWheel)
|
xue@0
|
110 END_MESSAGE_MAP(TComponent)
|
xue@0
|
111 };
|
xue@0
|
112 //---------------------------------------------------------------------------
|
xue@0
|
113 extern PACKAGE TEditorPanel *EditorPanel;
|
xue@0
|
114 //---------------------------------------------------------------------------
|
xue@0
|
115
|
xue@0
|
116 #endif
|