liquidsfz
Public Member Functions | Friends | List of all members
LiquidSFZ::KeyInfo Class Reference

Information for one key. More...

#include <liquidsfz.hh>

Public Member Functions

 KeyInfo (KeyInfo &&)=default
 
int key () const
 
std::string label () const
 
bool is_switch () const
 

Friends

class Synth
 

Detailed Description

Information for one key.

Member Function Documentation

◆ is_switch()

bool LiquidSFZ::KeyInfo::is_switch ( ) const

Get flag that indicates whether this key acts is a key switch (as opposed to regular midi notes).

Returns
true if this is a key switch

◆ key()

int LiquidSFZ::KeyInfo::key ( ) const
Returns
midi key number (1-127)

◆ label()

std::string LiquidSFZ::KeyInfo::label ( ) const

Some .sfz files assign labels to some of the keys; if no label is available this function will return "".

Returns
label for the key

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