-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainWindow.java
844 lines (760 loc) · 44.5 KB
/
mainWindow.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
/**
* mainWindow-Klasse.
* Diese Klasse beherbergt die graphische Benutzeroberfläche und Ereignisse dieser.
* 2017, Soeren Richter
* soeren@dreieck-project.de
* Version 0.1.5
* Code vollstaendig selbst geschrieben, fuer Hintergruende und
* Referenzen siehe Abschnitt 4 der Facharbeit.
* @author Soeren Richter
* @version 0.1.5
*/
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import java.util.Random;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Soeren Richter
*/
public class mainWindow extends javax.swing.JFrame {
/**
* Creates new form mainWindow
*/
public mainWindow() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jButton1 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
sineRad = new javax.swing.JRadioButton();
sawRad = new javax.swing.JRadioButton();
squareRad = new javax.swing.JRadioButton();
triangleRad = new javax.swing.JRadioButton();
jLabel8 = new javax.swing.JLabel();
lenSpinner = new javax.swing.JSpinner();
jLabel9 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel7 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
amplFact = new javax.swing.JSpinner();
jPanel5 = new javax.swing.JPanel();
attackSlider = new javax.swing.JSlider();
decaySlider = new javax.swing.JSlider();
sustainSlider = new javax.swing.JSlider();
releaseSlider = new javax.swing.JSlider();
aLabel = new javax.swing.JLabel();
dLabel = new javax.swing.JLabel();
sLabel = new javax.swing.JLabel();
rLabel = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
keyPitch = new javax.swing.JSpinner();
freqPitch = new javax.swing.JSpinner();
centPitch = new javax.swing.JSpinner();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jPanel4 = new javax.swing.JPanel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
srBox = new javax.swing.JComboBox<>();
jComboBox2 = new javax.swing.JComboBox<>();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Fourier-Synthesizer Implementation Facharbeit Sören Richter");
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setResizable(false);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowOpened(java.awt.event.WindowEvent evt) {
formWindowOpened(evt);
}
});
jButton1.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jButton1.setText("WAVE-Datei generieren und speichern unter");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Wellenform", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 0, 12))); // NOI18N
jPanel1.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
sineRad.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
sineRad.setSelected(true);
sineRad.setText("Sinus");
sineRad.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sineRadActionPerformed(evt);
}
});
sawRad.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
sawRad.setText("Sägezahn");
sawRad.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sawRadActionPerformed(evt);
}
});
squareRad.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
squareRad.setText("Rechteck");
squareRad.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
squareRadActionPerformed(evt);
}
});
triangleRad.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
triangleRad.setText("Dreieck");
triangleRad.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
triangleRadActionPerformed(evt);
}
});
jLabel8.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel8.setText("Länge:");
lenSpinner.setModel(new javax.swing.SpinnerNumberModel(1.0d, 0.0d, 60.0d, 0.1d));
lenSpinner.setName(""); // NOI18N
lenSpinner.setValue(1);
jLabel9.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel9.setText("sec");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(15, 15, 15)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(lenSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel9))
.addComponent(sineRad)
.addComponent(sawRad)
.addComponent(squareRad)
.addComponent(triangleRad))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(sineRad)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sawRad)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(squareRad)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(triangleRad)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(lenSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Hüllkurve", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 0, 12))); // NOI18N
jPanel2.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel7.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
jLabel7.setText("A");
jLabel11.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
jLabel11.setText("D");
jLabel12.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
jLabel12.setText("S");
jLabel13.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
jLabel13.setText("R");
jLabel15.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel15.setText("Amplitudenfaktor");
amplFact.setModel(new javax.swing.SpinnerNumberModel(0.8d, 0.0d, 1.0d, 0.05d));
attackSlider.setMaximum(1000);
attackSlider.setValue(100);
attackSlider.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
attackSliderMouseClicked(evt);
}
});
attackSlider.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
attackSliderPropertyChange(evt);
}
});
decaySlider.setMaximum(1000);
decaySlider.setValue(100);
decaySlider.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
decaySliderMouseClicked(evt);
}
});
decaySlider.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
decaySliderPropertyChange(evt);
}
});
sustainSlider.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
sustainSliderMouseClicked(evt);
}
});
sustainSlider.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
sustainSliderPropertyChange(evt);
}
});
releaseSlider.setMaximum(1000);
releaseSlider.setValue(100);
releaseSlider.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
releaseSliderMouseClicked(evt);
}
});
releaseSlider.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
releaseSliderPropertyChange(evt);
}
});
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(decaySlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(attackSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(sustainSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(releaseSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(attackSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(decaySlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sustainSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(releaseSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
aLabel.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
aLabel.setText("100 ms");
dLabel.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
dLabel.setText("100 ms");
sLabel.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
sLabel.setText("50%");
rLabel.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
rLabel.setText("100 ms");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel15)
.addGap(18, 18, 18)
.addComponent(amplFact, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addComponent(jLabel11)
.addComponent(jLabel12)
.addComponent(jLabel13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(aLabel)
.addComponent(dLabel)
.addComponent(sLabel)
.addComponent(rLabel))))
.addContainerGap(19, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(4, 4, 4)
.addComponent(aLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(dLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(sLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(rLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(67, 67, 67))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel13)
.addGap(26, 26, 26)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel15)
.addComponent(amplFact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(51, 51, 51))
);
jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Tonhöhe", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 0, 12))); // NOI18N
jPanel3.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel3.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel3.setText("+");
jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel4.setText("cents");
keyPitch.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
keyPitch.setModel(new javax.swing.SpinnerNumberModel(0.0d, -66.0d, 66.0d, 1.0d));
keyPitch.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
keyPitchPropertyChange(evt);
}
});
freqPitch.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
freqPitch.setModel(new javax.swing.SpinnerNumberModel(440.0d, 0.0d, 20000.0d, 0.1d));
freqPitch.setEnabled(false);
freqPitch.setValue(440.0);
freqPitch.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
freqPitchPropertyChange(evt);
}
});
centPitch.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
centPitch.setModel(new javax.swing.SpinnerNumberModel(0.0d, 0.0d, 100.0d, 0.1d));
centPitch.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
centPitchPropertyChange(evt);
}
});
jRadioButton1.setSelected(true);
jRadioButton1.setText("Ton (a1 = 0)");
jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1ActionPerformed(evt);
}
});
jRadioButton2.setText("Freq. / Hz");
jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(33, 33, 33)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(centPitch, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel4))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(keyPitch, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(freqPitch, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jRadioButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButton2)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(8, 8, 8)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jRadioButton1)
.addComponent(jRadioButton2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(keyPitch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(freqPitch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(centPitch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addContainerGap(22, Short.MAX_VALUE))
);
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "PCM/WAVE-Parameter", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 0, 12))); // NOI18N
jPanel4.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel5.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel5.setText("Samplerate");
jLabel6.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jLabel6.setText("Bits/Sample");
jLabel6.setEnabled(false);
srBox.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
srBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "8000", "11025", "16000", "22050", "32000", "44100", "48000", "88200", "96000" }));
srBox.setSelectedIndex(5);
jComboBox2.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "8", "16", "24", "32" }));
jComboBox2.setSelectedIndex(1);
jComboBox2.setSelectedItem(1);
jComboBox2.setEnabled(false);
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(srBox, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jComboBox2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jLabel6))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(srBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jButton2.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jButton2.setText("Parameter zufällig setzen");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
jButton3.setText("Programminfo");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(layout.createSequentialGroup()
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2)
.addComponent(jButton3))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
Thread.yield();
final String tempWaveform;
if (sineRad.isSelected()) {
tempWaveform = "sine";
} else if (sawRad.isSelected()) {
tempWaveform = "saw";
} else if (squareRad.isSelected()) {
tempWaveform = "square";
} else if (triangleRad.isSelected()) {
tempWaveform = "triangle";
} else {
tempWaveform = "sine";
}
java.awt.EventQueue.invokeLater(() -> {
Synth gen = new Synth(Double.parseDouble((String) srBox.getSelectedItem()),
(double)lenSpinner.getValue(),
(double)freqPitch.getValue(),
(double)amplFact.getValue(),
tempWaveform,
attackSlider.getValue() / 1000.0,
decaySlider.getValue() / 1000.0,
sustainSlider.getValue() / 100.0,
releaseSlider.getValue() / 1000.0);
gen.synthesize_standard();
});
}//GEN-LAST:event_jButton1ActionPerformed
private void sineRadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sineRadActionPerformed
sawRad.setSelected(false);
squareRad.setSelected(false);
triangleRad.setSelected(false);
}//GEN-LAST:event_sineRadActionPerformed
private void attackSliderPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_attackSliderPropertyChange
aLabel.setText(attackSlider.getValue() + " ms");
}//GEN-LAST:event_attackSliderPropertyChange
private void decaySliderPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_decaySliderPropertyChange
dLabel.setText(decaySlider.getValue() + " ms");
}//GEN-LAST:event_decaySliderPropertyChange
private void sustainSliderPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_sustainSliderPropertyChange
sLabel.setText(sustainSlider.getValue() + "%");
}//GEN-LAST:event_sustainSliderPropertyChange
private void releaseSliderPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_releaseSliderPropertyChange
rLabel.setText(releaseSlider.getValue() + " ms");
}//GEN-LAST:event_releaseSliderPropertyChange
private void sawRadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sawRadActionPerformed
sineRad.setSelected(false);
squareRad.setSelected(false);
triangleRad.setSelected(false);
}//GEN-LAST:event_sawRadActionPerformed
private void squareRadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_squareRadActionPerformed
sawRad.setSelected(false);
sineRad.setSelected(false);
triangleRad.setSelected(false);
}//GEN-LAST:event_squareRadActionPerformed
private void triangleRadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_triangleRadActionPerformed
sawRad.setSelected(false);
squareRad.setSelected(false);
sineRad.setSelected(false);
}//GEN-LAST:event_triangleRadActionPerformed
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
Random r = new Random();
switch (r.nextInt(4)){
case 0:
sineRad.setSelected(true);
sawRad.setSelected(false);
squareRad.setSelected(false);
triangleRad.setSelected(false);
break;
case 1:
sineRad.setSelected(false);
sawRad.setSelected(true);
squareRad.setSelected(false);
triangleRad.setSelected(false);
break;
case 2:
sineRad.setSelected(false);
sawRad.setSelected(false);
squareRad.setSelected(true);
triangleRad.setSelected(false);
break;
case 3:
sineRad.setSelected(false);
sawRad.setSelected(false);
squareRad.setSelected(false);
triangleRad.setSelected(true);
break;
}
freqPitch.setValue(r.nextDouble()*20000.0);
lenSpinner.setValue(r.nextDouble());
attackSlider.setValue(r.nextInt(1001));
decaySlider.setValue(r.nextInt(1001));
sustainSlider.setValue(r.nextInt(101));
releaseSlider.setValue(r.nextInt(1001));
amplFact.setValue(r.nextDouble());
aLabel.setText(attackSlider.getValue() + " ms");
dLabel.setText(decaySlider.getValue() + " ms");
sLabel.setText(sustainSlider.getValue() + "%");
rLabel.setText(releaseSlider.getValue() + " ms");
keyPitch.setValue(pitch.key((double) freqPitch.getValue())
- pitch.key((double) freqPitch.getValue()) % 1);
centPitch.setValue((pitch.key((double) freqPitch.getValue())
% 1) * 100);
Thread.yield();
}//GEN-LAST:event_jButton2ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
JOptionPane.showMessageDialog(new JFrame("Programminfo"),
"Referenz-Implementation eines Fourier-"
+ "Synthesizers für die Facharbeit vom "
+ "16.03.2017\n"
+ "2016-2017, Sören Richter\n"
+ "Version: 0.1.5");
}//GEN-LAST:event_jButton3ActionPerformed
private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
if (jRadioButton1.isSelected()){
freqPitch.setEnabled(false);
jRadioButton2.setSelected(false);
keyPitch.setEnabled(true);
centPitch.setEnabled(true);
}
}//GEN-LAST:event_jRadioButton1ActionPerformed
private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed
if (jRadioButton2.isSelected()){
keyPitch.setEnabled(false);
centPitch.setEnabled(false);
jRadioButton1.setSelected(false);
freqPitch.setEnabled(true);
}
}//GEN-LAST:event_jRadioButton2ActionPerformed
private void freqPitchPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_freqPitchPropertyChange
if (evt.getSource()==freqPitch){
keyPitch.setValue(pitch.key((double) freqPitch.getValue())
- pitch.key((double) freqPitch.getValue()) % 1);
centPitch.setValue((pitch.key((double) freqPitch.getValue())
% 1) * 100);
}
}//GEN-LAST:event_freqPitchPropertyChange
private void keyPitchPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_keyPitchPropertyChange
if (evt.getSource()==keyPitch){
freqPitch.setValue(pitch.freq((double) keyPitch.getValue()
+ (double) centPitch.getValue() / 100.0));
}
}//GEN-LAST:event_keyPitchPropertyChange
private void centPitchPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_centPitchPropertyChange
if (evt.getSource()==centPitch){
freqPitch.setValue(pitch.freq((double) keyPitch.getValue()
+ (double) centPitch.getValue() / 100.0));
}
}//GEN-LAST:event_centPitchPropertyChange
private void attackSliderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_attackSliderMouseClicked
aLabel.setText(attackSlider.getValue() + " ms");
}//GEN-LAST:event_attackSliderMouseClicked
private void decaySliderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_decaySliderMouseClicked
dLabel.setText(decaySlider.getValue() + " ms");
}//GEN-LAST:event_decaySliderMouseClicked
private void sustainSliderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sustainSliderMouseClicked
sLabel.setText(sustainSlider.getValue() + "%");
}//GEN-LAST:event_sustainSliderMouseClicked
private void releaseSliderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_releaseSliderMouseClicked
rLabel.setText(releaseSlider.getValue() + " ms");
}//GEN-LAST:event_releaseSliderMouseClicked
private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
keyPitch.setValue(0.0);
centPitch.setValue(0.0);
freqPitch.setValue(440.0);
lenSpinner.setValue(0.9);
attackSlider.setValue(100);
decaySlider.setValue(100);
sustainSlider.setValue(50);
releaseSlider.setValue(100);
amplFact.setValue(0.8);
Thread.yield();
}//GEN-LAST:event_formWindowOpened
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
// if ("Nimbus".equals(info.getName())) {
// javax.swing.UIManager.setLookAndFeel(info.getClassName());
// break;
// }
// }
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(mainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(mainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(mainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(mainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(() -> {
new mainWindow().setVisible(true);
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel aLabel;
private javax.swing.JSpinner amplFact;
private javax.swing.JSlider attackSlider;
private javax.swing.JSpinner centPitch;
private javax.swing.JLabel dLabel;
private javax.swing.JSlider decaySlider;
private javax.swing.JSpinner freqPitch;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JComboBox<String> jComboBox2;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JSpinner keyPitch;
private javax.swing.JSpinner lenSpinner;
private javax.swing.JLabel rLabel;
private javax.swing.JSlider releaseSlider;
private javax.swing.JLabel sLabel;
private javax.swing.JRadioButton sawRad;
private javax.swing.JRadioButton sineRad;
private javax.swing.JRadioButton squareRad;
private javax.swing.JComboBox<String> srBox;
private javax.swing.JSlider sustainSlider;
private javax.swing.JRadioButton triangleRad;
// End of variables declaration//GEN-END:variables
}