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

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/player/base/MidiSequencerEmpty.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mfrom: (1.1.1 upstream) (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080619003030-agens2gvd5m4dacu
New upstream release (Closes: #481728) also (LP: #176979, #212207)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.player.base;
 
2
 
 
3
import org.herac.tuxguitar.song.models.TGTimeSignature;
 
4
 
 
5
public class MidiSequencerEmpty implements MidiSequencer{
 
6
        
 
7
        private MidiPort port;
 
8
        
 
9
        public void open() {
 
10
                // Not implemented
 
11
        }       
 
12
        
 
13
        public void close() {
 
14
                // Not implemented
 
15
        }
 
16
        
 
17
        public MidiSequenceHandler createSequence(int tracks) {
 
18
                return new MidiSequenceHandler(tracks) {
 
19
                        
 
20
                        public void notifyFinish() {
 
21
                                // Not implemented
 
22
                        }
 
23
                        
 
24
                        public void addTimeSignature(long tick, int track, TGTimeSignature ts) {
 
25
                                // Not implemented
 
26
                        }
 
27
                        
 
28
                        public void addTempoInUSQ(long tick, int track, int usq) {
 
29
                                // Not implemented
 
30
                        }
 
31
                        
 
32
                        public void addProgramChange(long tick, int track, int channel,int instrument) {
 
33
                                // Not implemented
 
34
                        }
 
35
                        
 
36
                        public void addPitchBend(long tick, int track, int channel, int value) {
 
37
                                // Not implemented
 
38
                        }
 
39
                        
 
40
                        public void addNoteOn(long tick, int track, int channel, int note,int velocity) {
 
41
                                // Not implemented
 
42
                        }
 
43
                        
 
44
                        public void addNoteOff(long tick, int track, int channel, int note,int velocity) {
 
45
                                // Not implemented
 
46
                        }
 
47
                        
 
48
                        public void addControlChange(long tick, int track, int channel,int controller, int value) {
 
49
                                // Not implemented
 
50
                        }
 
51
                };
 
52
        }
 
53
        
 
54
        public MidiPort getMidiPort() {
 
55
                if(this.port == null){
 
56
                        this.port = new MidiPortEmpty();
 
57
                }
 
58
                return this.port;
 
59
        }
 
60
        
 
61
        public long getTickLength() {
 
62
                // Not implemented
 
63
                return 0;
 
64
        }
 
65
        
 
66
        public long getTickPosition() {
 
67
                // Not implemented
 
68
                return 0;
 
69
        }
 
70
        
 
71
        public boolean isRunning() {
 
72
                // Not implemented
 
73
                return false;
 
74
        }
 
75
        
 
76
        public void setMidiPort(MidiPort port) {
 
77
                // Not implemented
 
78
                this.port = port;
 
79
        }
 
80
        
 
81
        public void setMute(int index, boolean mute) {
 
82
                //not implemented
 
83
        }
 
84
        
 
85
        public void setSolo(int index, boolean solo) {
 
86
                // Not implemented
 
87
        }
 
88
        
 
89
        public void setTickPosition(long tickPosition) {
 
90
                // Not implemented
 
91
        }
 
92
        
 
93
        public void start() {
 
94
                // Not implemented
 
95
        }
 
96
        
 
97
        public void stop() {
 
98
                // Not implemented
 
99
        }
 
100
        
 
101
        public String getKey() {
 
102
                return null;
 
103
        }
 
104
        
 
105
        public String getName() {
 
106
                return null;
 
107
        }
 
108
        
 
109
}