Sample info

struct sample_info_t

Contains all the information about a sample to synthetise a key.

Public Functions

inline generator_amount_t generator(generator_type_t type, generator_amount_t default_value) const

Returns the value of a generator or a default value if not present.

Parameters:
  • type – The type of the generator

  • default_value – The default value to use

Returns:

The value

Public Members

generator_map_t generators

The list of generators to use.

modulator_map_t modulators

The list of modulators to use.

const sample_t *sample = nullptr

The audio sample to use.