/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/AbstractInstrument.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/AbstractInstrument.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1774 by iliev, Mon Dec 3 22:59:39 2007 UTC revision 1775 by iliev, Thu Sep 11 18:18:21 2008 UTC
# Line 35  public abstract class AbstractInstrument Line 35  public abstract class AbstractInstrument
35          private int instrumentIndex = 0;          private int instrumentIndex = 0;
36          private String formatFamily = "";          private String formatFamily = "";
37          private String formatVersion = "";          private String formatVersion = "";
38            private Integer[] keyMapping = { };
39            private Integer[] keyswitchMapping = { };
40                    
41          /**          /**
42           * Creates a new instance of <code>AbstractInstrument</code>.           * Creates a new instance of <code>AbstractInstrument</code>.
# Line 113  public abstract class AbstractInstrument Line 115  public abstract class AbstractInstrument
115          public String          public String
116          getFormatVersion() { return formatVersion; }          getFormatVersion() { return formatVersion; }
117                    
118            public Integer[]
119            getKeyMapping() { return keyMapping; }
120            
121            public Integer[]
122            getKeyswitchMapping() { return keyswitchMapping; }
123            
124          /**          /**
125           * Parses a line of text.           * Parses a line of text.
126           * @param s The string to be parsed.           * @param s The string to be parsed.
# Line 135  public abstract class AbstractInstrument Line 143  public abstract class AbstractInstrument
143                          formatFamily = s.substring("FORMAT_FAMILY: ".length());                          formatFamily = s.substring("FORMAT_FAMILY: ".length());
144                  } else if(s.startsWith("FORMAT_VERSION: ")) {                  } else if(s.startsWith("FORMAT_VERSION: ")) {
145                          formatVersion = s.substring("FORMAT_VERSION: ".length());                          formatVersion = s.substring("FORMAT_VERSION: ".length());
146                    } else if(s.startsWith("KEY_BINDINGS: ")) {
147                            s = s.substring("KEY_BINDINGS: ".length());
148                            keyMapping = Parser.parseIntList(s);
149                    } else if(s.startsWith("KEYSWITCH_BINDINGS: ")) {
150                            s = s.substring("KEYSWITCH_BINDINGS: ".length());
151                            keyswitchMapping = Parser.parseIntList(s);
152                  } else return false;                  } else return false;
153                                    
154                  return true;                  return true;

Legend:
Removed from v.1774  
changed lines
  Added in v.1775

  ViewVC Help
Powered by ViewVC