#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 chord based on a set of input specifications.
- Parameters
-
Flags that configure chord behavior.
Use the functions ppg_token_set_flags and ppg_token_get_flags to manipulated chord flags.
Enumerator |
---|
PPG_Chord_Flags_Disallow_Input_Deactivation |
Set this flag to gain.
|
Defines a stand alone magic chord.
All members must be activated/pressed simultaneously for a chord to be considered as a match.
- Parameters
-
layer | The layer the pattern is associated with |
action | The action that is supposed to be carried out if the overall pattern matches |
n_inputs | The number of inputs |
inputs | A pointer to an array of input definitions. |
- Returns
- The constructed token
Generates a chord token.
Use this function to generate tokens that are be passed to the ppg_pattern function to generate complex patterns. All notes of a chord must have been pressed at the same time time for the chord to match.
- Note
- Chords 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 chord |
inputs | An array of inputs that represent the notes of the chord |
- Returns
- The constructed token