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

Editor view of one sample description of an instrument. More...

#include <SampleDescWin.h>

Public Member Functions

 SampleDescWin (int sampleID)
 Create a description of a sample, named after its identifier.
 ~SampleDescWin ()
 Release the description.
void SetKeymap (unsigned char iLow, unsigned char iBase, unsigned char iHigh)
 Set the key range and base key.
void GetKeymap (unsigned char *oLow, unsigned char *oBase, unsigned char *oHigh)
 Report the key range and base key.
int GetID () const
 Report the identifier.
String & GetName ()
 Report the name.
void SetName (const String &name)
 Rename the description, unless the new name is empty.
int GetSampleID () const
 Report the identifier of the sample the description plays.
SampleDescription & GetSampleDescription ()
 Report the playback settings.

Detailed Description

Editor view of one sample description of an instrument.

The class has no RTTI, and its name comes from the assert text of its users. The object is 0x38 bytes. Its routines are in BankManager.cpp.

Constructor & Destructor Documentation

◆ SampleDescWin()

SampleDescWin::SampleDescWin ( int sampleID)
explicit

Create a description of a sample, named after its identifier.

Parameters
sampleIDThe identifier of the SampleWin it plays.
Ghidra address:
0x1001c020

◆ ~SampleDescWin()

SampleDescWin::~SampleDescWin ( )

Release the description.

Ghidra address:
0x1001c0c4

Member Function Documentation

◆ SetKeymap()

void SampleDescWin::SetKeymap ( unsigned char iLow,
unsigned char iBase,
unsigned char iHigh )

Set the key range and base key.

Parameters
iLowThe lowest note, below 128.
iBaseThe base key, below 128.
iHighThe highest note, below 128.
Ghidra address:
0x1001c0da

◆ GetKeymap()

void SampleDescWin::GetKeymap ( unsigned char * oLow,
unsigned char * oBase,
unsigned char * oHigh )

Report the key range and base key.

Parameters
oLowReceives the lowest note.
oBaseReceives the base key.
oHighReceives the highest note.
Ghidra address:
0x1001c196

◆ GetID()

int SampleDescWin::GetID ( ) const
inline

Report the identifier.

Returns
The identifier.

◆ GetName()

String & SampleDescWin::GetName ( )
inline

Report the name.

Returns
The name.

◆ SetName()

void SampleDescWin::SetName ( const String & name)
inline

Rename the description, unless the new name is empty.

Parameters
nameThe new name.

◆ GetSampleID()

int SampleDescWin::GetSampleID ( ) const
inline

Report the identifier of the sample the description plays.

Returns
The identifier of the SampleWin.
Ghidra address:
0x10020430

◆ GetSampleDescription()

SampleDescription & SampleDescWin::GetSampleDescription ( )
inline

Report the playback settings.

Returns
The settings.

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