VST 3 SDK VST 3.7
SDK for developing VST plug-in
|
ProgramListWithPitchNames element. More...
#include <vsteditcontroller.h>
Public Types | |
using | PitchNamesVector = std::vector<PitchNameMap> |
![]() | |
using | StringVector = std::vector<std::u16string> |
using | ProgramInfoVector = std::vector<StringMap> |
Public Member Functions | |
ProgramListWithPitchNames (const String128 name, ProgramListID listId, UnitID unitId) | |
bool | setPitchName (int32 programIndex, int16 pitch, const String128 pitchName) |
Sets a name for the given program index and a given pitch. | |
bool | removePitchName (int32 programIndex, int16 pitch) |
Removes the PitchName entry for the given program index and a given pitch. | |
int32 | addProgram (const String128 name) SMTG_OVERRIDE |
tresult | hasPitchNames (int32 programIndex) SMTG_OVERRIDE |
tresult | getPitchName (int32 programIndex, int16 midiPitch, String128 name) SMTG_OVERRIDE |
![]() | |
ProgramList (const String128 name, ProgramListID listId, UnitID unitId) | |
ProgramList (const ProgramList &programList) | |
const ProgramListInfo & | getInfo () const |
ProgramListID | getID () const |
const TChar * | getName () const |
int32 | getCount () const |
virtual tresult | getProgramName (int32 programIndex, String128 name) |
virtual tresult | setProgramName (int32 programIndex, const String128 name) |
virtual tresult | getProgramInfo (int32 programIndex, CString attributeId, String128 value) |
virtual bool | setProgramInfo (int32 programIndex, CString attributeId, const String128 value) |
Sets a program attribute value. | |
virtual Parameter * | getParameter () |
Creates and returns the program parameter. | |
virtual void | clearPrograms () |
Clear all programs. | |
Public Attributes | |
PitchNamesVector | pitchNames |
![]() | |
ProgramListInfo | info {} |
UnitID | unitId |
StringVector | programNames |
ProgramInfoVector | programInfos |
Parameter * | parameter {nullptr} |
ProgramListWithPitchNames element.
using PitchNamesVector = std::vector<PitchNameMap> |
ProgramListWithPitchNames | ( | const String128 | name, |
ProgramListID | listId, | ||
UnitID | unitId ) |
Sets a name for the given program index and a given pitch.
Removes the PitchName entry for the given program index and a given pitch.
Returns true if it was found and removed.
Reimplemented from ProgramList.
Reimplemented from ProgramList.
Reimplemented from ProgramList.
PitchNamesVector pitchNames |