Public Member Functions | List of all members
RoundRobinMap Class Reference

A data container which stores information about the amount of round robin groups for each notenumber / velocity combination. More...

Public Member Functions

void addSample (const ModulatorSamplerSound *sample)
 adds the information of the sample to the map. More...
 
void clear ()
 Clears the map.
 
int getRRGroupsForMessage (int noteNumber, int velocity)
 returns the biggest group index for the given MIDI information. More...
 

Detailed Description

A data container which stores information about the amount of round robin groups for each notenumber / velocity combination.

The information is precalculated so that the query is a very fast look up operation (O(1)). In order to use it, create one, and call addSample() for every ModulatorSamplerSound you need. You can query the rr group later with getRRGroupsForMessage().

Member Function Documentation

void addSample ( const ModulatorSamplerSound sample)

adds the information of the sample to the map.

It checks for every notenumber / velocity combination if it is the biggest group.

int getRRGroupsForMessage ( int  noteNumber,
int  velocity 
)

returns the biggest group index for the given MIDI information.

This is very fast.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.