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

Information for one continuous controller. More...

#include <liquidsfz.hh>

Public Member Functions

 CCInfo (CCInfo &&)=default
 
int cc () const
 
std::string label () const
 
bool has_label () const
 
int default_value () const
 

Friends

class Synth
 

Detailed Description

Information for one continuous controller.

Member Function Documentation

◆ cc()

int LiquidSFZ::CCInfo::cc ( ) const
Returns
CC controller number (0-127)

◆ default_value()

int LiquidSFZ::CCInfo::default_value ( ) const

This contains the initial value for the CC.

Returns
the a CC value (0-127)

◆ has_label()

bool LiquidSFZ::CCInfo::has_label ( ) const

This function returns true if the .sfz file contains a label for this CC (that is, if a label_cc opcode was found for this CC).

Returns
true if a label is available.

◆ label()

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

Some .sfz files contain labels (label_cc opcode) for the CCs they provide. If a label is available, this function will return it. If no label was defined in the .sfz file, a label will be generated automatically (like "CC080"). To check if a label is available, call has_label().

Returns
label for the CC controller

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