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

« back to all changes in this revision

Viewing changes to TuxGuitar-tef/src/org/herac/tuxguitar/io/tef/base/TETrack.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.tef.base;
 
2
 
 
3
public class TETrack {
 
4
        
 
5
        public static final int FLAG_DOUBLE_STRINGS = 0x01;
 
6
        
 
7
        public static final int FLAG_LET_RING = 0x02;
 
8
        
 
9
        public static final int FLAG_PEDAL_STEEL_GUITAR = 0x04;
 
10
        
 
11
        public static final int FLAG_EFFECT_CHANNEL_DISABLED = 0x08;
 
12
        
 
13
        public static final int FLAG_RHYTHM_TRACK = 0x10;
 
14
        
 
15
        private boolean percussion;
 
16
        
 
17
        private int instrument;
 
18
        
 
19
        private int capo;
 
20
        
 
21
        private int clefType;
 
22
        
 
23
        private int clefNumber;
 
24
        
 
25
        private int pan;
 
26
        
 
27
        private int volume;
 
28
        
 
29
        private int flags;
 
30
        
 
31
        private int[] strings;
 
32
        
 
33
        private String name;
 
34
        
 
35
        public TETrack(boolean percussion,int instrument, int capo, int clefType, int clefNumber, int pan, int volume, int flags, int[] strings, String name) {
 
36
                this.percussion = percussion;
 
37
                this.instrument = instrument;
 
38
                this.capo = capo;
 
39
                this.clefType = clefType;
 
40
                this.clefNumber = clefNumber;
 
41
                this.pan = pan;
 
42
                this.volume = volume;
 
43
                this.flags = flags;
 
44
                this.strings = strings;
 
45
                this.name = name;
 
46
        }
 
47
        
 
48
        public int getCapo() {
 
49
                return this.capo;
 
50
        }
 
51
        
 
52
        public int getClefNumber() {
 
53
                return this.clefNumber;
 
54
        }
 
55
        
 
56
        public int getClefType() {
 
57
                return this.clefType;
 
58
        }
 
59
        
 
60
        public int getFlags() {
 
61
                return this.flags;
 
62
        }
 
63
        
 
64
        public String getName() {
 
65
                return this.name;
 
66
        }
 
67
        
 
68
        public int getPan() {
 
69
                return this.pan;
 
70
        }
 
71
        
 
72
        public boolean isPercussion() {
 
73
                return this.percussion;
 
74
        }
 
75
        
 
76
        public int[] getStrings() {
 
77
                return this.strings;
 
78
        }
 
79
        
 
80
        public int getVolume() {
 
81
                return this.volume;
 
82
        }
 
83
        
 
84
        public int getInstrument() {
 
85
                return this.instrument;
 
86
        }
 
87
        
 
88
        public String toString(){
 
89
                String string = new String("[TRACK]");
 
90
                string += "\n     "  + this.getName();
 
91
                
 
92
                for(int i = 0; i < this.strings.length; i ++){
 
93
                        string += "\n     String " + i + ": " + (96 - this.strings[i]);
 
94
                }
 
95
                
 
96
                return string;
 
97
        }
 
98
}