wavelength 1.0.0
Loading...
Searching...
No Matches
BankLookup Class Reference

Bank loaded from a file to report which notes it plays. More...

#include <BankLookup.h>

Public Member Functions

 BankLookup (const String &filename)
 Load a bank without prompting for missing files.
 ~BankLookup ()
 Delete the bank.
bool HasKey (unsigned char key, int program)
 Report whether a note falls in the key range of a sample description.

Detailed Description

Bank loaded from a file to report which notes it plays.

No routine creates one.

The class has no RTTI, and its name is inferred. The object is 4 bytes. Its routines are in BankManager.cpp.

Constructor & Destructor Documentation

◆ BankLookup()

BankLookup::BankLookup ( const String & filename)
explicit

Load a bank without prompting for missing files.

Parameters
filenameThe path of the bank file.
Ghidra address:
0x100201ec

◆ ~BankLookup()

BankLookup::~BankLookup ( )

Delete the bank.

Ghidra address:
0x10020271

Member Function Documentation

◆ HasKey()

bool BankLookup::HasKey ( unsigned char key,
int program )

Report whether a note falls in the key range of a sample description.

Parameters
keyThe note.
programThe program number of the instrument to search, or -1 for every instrument.
Returns
Whether a sample description covers the note.
Ghidra address:
0x10020075

The documentation for this class was generated from the following file: