~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-ptb/src/org/herac/tuxguitar/io/ptb/base/PTTrackInfo.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.io.ptb.base;
 
2
 
 
3
public class PTTrackInfo {
 
4
        private String name;
 
5
        private int number;
 
6
        private int instrument;
 
7
        private int volume;
 
8
        private int balance;
 
9
        private int reverb;
 
10
        private int chorus;
 
11
        private int tremolo;
 
12
        private int phaser;
 
13
        
 
14
        private int[] strings;
 
15
        
 
16
        public PTTrackInfo(){
 
17
                super();
 
18
        }
 
19
        
 
20
        public String getName() {
 
21
                return this.name;
 
22
        }
 
23
        
 
24
        public void setName(String name) {
 
25
                this.name = name;
 
26
        }
 
27
        
 
28
        public int getNumber() {
 
29
                return this.number;
 
30
        }
 
31
        
 
32
        public void setNumber(int number) {
 
33
                this.number = number;
 
34
        }
 
35
        
 
36
        public int getBalance() {
 
37
                return this.balance;
 
38
        }
 
39
        
 
40
        public void setBalance(int balance) {
 
41
                this.balance = balance;
 
42
        }
 
43
        
 
44
        public int getChorus() {
 
45
                return this.chorus;
 
46
        }
 
47
        
 
48
        public void setChorus(int chorus) {
 
49
                this.chorus = chorus;
 
50
        }
 
51
        
 
52
        public int getInstrument() {
 
53
                return this.instrument;
 
54
        }
 
55
        
 
56
        public void setInstrument(int instrument) {
 
57
                this.instrument = instrument;
 
58
        }
 
59
        
 
60
        public int getPhaser() {
 
61
                return this.phaser;
 
62
        }
 
63
        
 
64
        public void setPhaser(int phaser) {
 
65
                this.phaser = phaser;
 
66
        }
 
67
        
 
68
        public int getReverb() {
 
69
                return this.reverb;
 
70
        }
 
71
        
 
72
        public void setReverb(int reverb) {
 
73
                this.reverb = reverb;
 
74
        }
 
75
        
 
76
        public int getTremolo() {
 
77
                return this.tremolo;
 
78
        }
 
79
        
 
80
        public void setTremolo(int tremolo) {
 
81
                this.tremolo = tremolo;
 
82
        }
 
83
        
 
84
        public int getVolume() {
 
85
                return this.volume;
 
86
        }
 
87
        
 
88
        public void setVolume(int volume) {
 
89
                this.volume = volume;
 
90
        }
 
91
        
 
92
        public int[] getStrings(){
 
93
                return this.strings;
 
94
        }
 
95
        
 
96
        public void setStrings(int[] strings){
 
97
                this.strings = strings;
 
98
        }
 
99
        
 
100
        public PTTrackInfo getClone(){
 
101
                int[] strings = new int[ this.strings.length ] ;
 
102
                for( int i = 0 ; i < strings.length ; i ++ ){
 
103
                        strings[ i ] = this.strings[ i ];
 
104
                }
 
105
                PTTrackInfo info = new PTTrackInfo();
 
106
                info.setNumber( getNumber() );
 
107
                info.setName( getName() );
 
108
                info.setInstrument( getInstrument() );
 
109
                info.setVolume( getVolume() );
 
110
                info.setBalance( getBalance() );
 
111
                info.setChorus( getChorus() );
 
112
                info.setPhaser( getPhaser() );
 
113
                info.setReverb( getReverb() );
 
114
                info.setTremolo( getTremolo() );
 
115
                info.setStrings( strings );
 
116
                
 
117
                return info;
 
118
        }
 
119
}