Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ppg_note.h
Go to the documentation of this file.
1 /* Copyright 2017 noseglasses <shinynoseglasses@gmail.com>
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef PPG_NOTE_H
18 #define PPG_NOTE_H
19 
22 #include "ppg_token.h"
23 #include "ppg_action.h"
24 #include "ppg_input.h"
25 #include "ppg_layer.h"
26 
36  PPG_Layer layer,
37  PPG_Action action,
38  PPG_Count n_inputs,
39  PPG_Input_Id inputs[]);
40 
43 #define ppg_sequence(...) ppg_single_note_line(__VA_ARGS__)
44 
54 };
55 
69 PPG_Token ppg_note_create(PPG_Input_Id input, PPG_Count flags);
70 
87 
88 #endif
Action information.
Definition: ppg_action.h:55
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.
PPG_Token ppg_note_create_standard(PPG_Input_Id input)
Generates a note token with standard behavior.
uint8_t PPG_Input_Id
The type used as input identifier.
Definition: ppg_input.h:29
Match activation and deactivation of corresponding input (only if compiled in pedantic mode) ...
Definition: ppg_note.h:53
PPG_Note_Flags
Flags that configure note behavior.
Definition: ppg_note.h:50
Match activation of corresponding input.
Definition: ppg_note.h:51
void * PPG_Token
The token type.
Definition: ppg_token.h:38
PPG_Token ppg_note_create(PPG_Input_Id input, PPG_Count flags)
Generates a note token.
Match deactivation of corresponding input.
Definition: ppg_note.h:52