void AudioDevice::createInstruments() { for (uint i = 0; i < AudioInstrumentCount; ++i) { Instrument *instrument = new Instrument (AudioInstrumentBase + i, Instrument::Audio, "", i, this); addInstrument(instrument); } renameInstruments(); }
void MidiDevice::createInstruments(InstrumentId base) { for (int i = 0; i < 16; ++i) { Instrument *instrument = new Instrument (base + i, Instrument::Midi, "", i, this); instrument->setFixedChannel(); addInstrument(instrument); } renameInstruments(); }
void MidiDevice::createInstruments(InstrumentId base) { for (int i = 0; i < 16; ++i) { Instrument *instrument = new Instrument (base + i, Instrument::Midi, "", i, this); instrument->setFixedChannel(); // ??? Since we don't have a connection yet, this makes // little sense. //instrument->sendChannelSetup(); addInstrument(instrument); } renameInstruments(); }