-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenB.java
38 lines (33 loc) · 1.16 KB
/
OpenB.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
package com.example.easytune;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import martin.andy.easytunetuner.R;
public class OpenB extends Tune {
int[] pitches = { 47, 42, 47, 54, 57, 62 };
public void TuneGui() {
setContentView(R.layout.open_b);
string6 = (Button) findViewById(R.id.string6);
string6.setOnClickListener(this);
string5 = (Button) findViewById(R.id.string5);
string5.setOnClickListener(this);
string4 = (Button) findViewById(R.id.string4);
string4.setOnClickListener(this);
string3 = (Button) findViewById(R.id.string3);
string3.setOnClickListener(this);
string2 = (Button) findViewById(R.id.string2);
string2.setOnClickListener(this);
string1 = (Button) findViewById(R.id.string1);
string1.setOnClickListener(this);
pitchLabel = (TextView) findViewById(R.id.pitch_label);
currentPitch = (TextView) findViewById(R.id.current_pitch);
pitchNum = (TextView) findViewById(R.id.pitch_num);
changeTuning = (Button) findViewById(R.id.changeTuning);
changeTuning.setOnClickListener(this);
onButtonClick(0, 47);
}
@Override
public void onClick(View v) {
selectTuningOnClick(v, pitches);
}
}