Files
Work/midiwrt/INSTRMNT.HPP
2024-08-07 09:16:27 -04:00

21 lines
611 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _INSTRUMENT_HPP_
#define _INSTRUMENT_HPP_
#include <common/windows.hpp>
#include <common/string.hpp>
#include <common/pvector.hpp>
#include <midiwrt/pureinst.hpp>
class Instruments : public PureVector<PureInstrument>
{
public:
Instruments(WORD startOrdinal,WORD endOrdinal);
~Instruments();
WORD getInstruments(PureVector<PureInstrument> &vectoredInstruments);
WORD locateInstrument(WORD ordinalValue,PureInstrument &somePureInstrument);
private:
WORD binarySearch(WORD ordinalValue,short &itemIndex);
enum {Semicolon=';'};
WORD loadInstruments(WORD startOrdinal,WORD endOrdinal);
};
#endif