#include "ppg_token.h"
#include "ppg_input.h"
#include "ppg_layer.h"
Go to the source code of this file.
Auxiliary macro to create a cluster based on a set of input specifications.
- Parameters
-
Flags that configure cluster behavior.
Use the functions ppg_token_set_flags and ppg_token_get_flags to manipulated cluster flags.
Enumerator |
---|
PPG_Cluster_Flags_Disallow_Input_Deactivation |
Set this flag to gain.
|
Defines a stand alone note cluster.
All members must be activated/pressed at least once for the cluster to be considered as match.
- Parameters
-
layer | The layer the pattern is associated with |
action | The action that is supposed to be carried out if the pattern matches |
n_inputs | The number of inputs |
inputs | A pointer to an array of input definitions. |
- Returns
- The constructed token
Generates a cluster token.
Use this function to generate tokens that are passed to the ppg_pattern function to generate complex patterns. Every member of the cluster must have been activated at least once for the cluster to be considered as match.
- Note
- Clusters that are generated by this function must be passed to ppg_pattern to be effective
-
Use setter functions that operate on tokens to change attributes of the generated token
- Parameters
-
n_inputs | The number of inputs that are associated with the cluster |
inputs | An array of input ids that represent the notes of the cluster |
- Returns
- The constructed token