/[svn]/linuxsampler/trunk/src/engines/gig/Engine.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Engine.cpp

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

revision 1749 by persson, Sun Jun 22 14:46:46 2008 UTC revision 1750 by schoenebeck, Thu Jul 10 15:00:38 2008 UTC
# Line 1946  namespace LinuxSampler { namespace gig { Line 1946  namespace LinuxSampler { namespace gig {
1946                              dmsg(3,("\t\t\tNew scale applied.\n"));                              dmsg(3,("\t\t\tNew scale applied.\n"));
1947                              break;                              break;
1948                          }                          }
1949                            case 0x15: { // chromatic / drumkit mode
1950                                dmsg(3,("\t\tMIDI Instrument Map Switch\n"));
1951                                uint8_t part = addr[1] & 0x0f;
1952                                uint8_t map;
1953                                if (!reader.pop(&map)) goto free_sysex_data;
1954                                for (int i = 0; i < engineChannels.size(); ++i) {
1955                                    EngineChannel* pEngineChannel = engineChannels[i];
1956                                    if (pEngineChannel->midiChannel == part ||
1957                                        pEngineChannel->midiChannel == midi_chan_all
1958                                    ) {
1959                                        try {
1960                                            pEngineChannel->SetMidiInstrumentMap(map);
1961                                        } catch (Exception e) {
1962                                            dmsg(2,("\t\t\tCould not apply MIDI instrument map %d to part %d: %s\n", map, part, e.Message().c_str()));
1963                                            goto free_sysex_data;
1964                                        } catch (...) {
1965                                            dmsg(2,("\t\t\tCould not apply MIDI instrument map %d to part %d (unknown exception)\n", map, part));
1966                                            goto free_sysex_data;
1967                                        }
1968                                    }
1969                                }
1970                                dmsg(3,("\t\t\tApplied MIDI instrument map %d to part %d.\n", map, part));
1971                                break;
1972                            }
1973                      }                      }
1974                  }                  }
1975                  else if (addr[0] == 0x40 && (addr[1] & 0xf0) == 0x20) { // Part Parameters (2)                  else if (addr[0] == 0x40 && (addr[1] & 0xf0) == 0x20) { // Part Parameters (2)
# Line 2088  namespace LinuxSampler { namespace gig { Line 2112  namespace LinuxSampler { namespace gig {
2112      }      }
2113    
2114      String Engine::Version() {      String Engine::Version() {
2115          String s = "$Revision: 1.93 $";          String s = "$Revision: 1.94 $";
2116          return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword          return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword
2117      }      }
2118    

Legend:
Removed from v.1749  
changed lines
  Added in v.1750

  ViewVC Help
Powered by ViewVC