Papageno
An Advanced Pattern Matching Library
|
Go to the source code of this file.
Macros | |
#define | ppg_sequence(...) ppg_single_note_line(__VA_ARGS__) |
Enumerations | |
enum | PPG_Note_Flags { PPG_Note_Flag_Match_Activation = (1 << 2), PPG_Note_Flag_Match_Deactivation = (PPG_Note_Flag_Match_Activation << 1), PPG_Note_Flags_A_N_D = PPG_Note_Flag_Match_Activation | PPG_Note_Flag_Match_Deactivation } |
Flags that configure note behavior. More... | |
Functions | |
PPG_Token | ppg_single_note_line (PPG_Layer layer, PPG_Action action, PPG_Count n_inputs, PPG_Input_Id inputs[]) |
Defines a stand alone pattern that consists of single notes. More... | |
PPG_Token | ppg_note_create (PPG_Input_Id input, PPG_Count flags) |
Generates a note token. More... | |
PPG_Token | ppg_note_create_standard (PPG_Input_Id input) |
Generates a note token with standard behavior. More... | |
#define ppg_sequence | ( | ... | ) | ppg_single_note_line(__VA_ARGS__) |
An alias for ppg_single_note_line
enum PPG_Note_Flags |
Flags that configure note behavior.
Use the functions ppg_token_set_flags and ppg_token_get_flags to manipulated note flags.
PPG_Token ppg_note_create | ( | PPG_Input_Id | input, |
PPG_Count | flags | ||
) |
Generates a note token.
Use this function to generate tokens that are passed to the ppg_pattern function to generate complex patterns.
input | The input that is represented by the note |
flags | The note flags |
PPG_Token ppg_note_create_standard | ( | PPG_Input_Id | input | ) |
Generates a note token with standard behavior.
Use this function to generate tokens that are passed to the ppg_pattern function to generate complex patterns.
This is a convenience function that yields the same result as ppg_note_create(input, PPG_Note_Flags_A_N_D)
input | The input that is represented by the note |
PPG_Token ppg_single_note_line | ( | PPG_Layer | layer, |
PPG_Action | action, | ||
PPG_Count | n_inputs, | ||
PPG_Input_Id | inputs[] | ||
) |
Defines a stand alone pattern that consists of single notes.
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 passed as array |
inputs | Inputpositions that represent the notes of the single note line |