Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
request.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3  *
4  * This file is part of JustIntonation.
5  *
6  * JustIntonation is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * JustIntonation is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with JustIntonation. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 //=============================================================================
21 // Class describing the request to play a note
22 //=============================================================================
23 
24 #ifndef REQUEST_H
25 #define REQUEST_H
26 
27 
35 
36 struct Request
37 {
38  enum Command
39  {
46  };
47 
49  int channel;
50  int key;
51  double intensity;
52  int data;
53 };
54 
55 #endif // REQUEST_H
double intensity
Volume.
Definition: request.h:51
Structure containing the data for a play-note request.
Definition: request.h:36
Adiabatically drive the overall pitch down.
Definition: request.h:44
Command
Definition: request.h:38
Stop all notes.
Definition: request.h:42
int channel
MIDI channel (0..15)
Definition: request.h:49
int key
Key index according to MIDI norm (0..127)
Definition: request.h:50
Command command
command
Definition: request.h:48
Play a note with parameters listed below.
Definition: request.h:40
Adiabatically drive the overall pitch up.
Definition: request.h:43
int data
multipurpose data (do we really need that)
Definition: request.h:52
Stop playing the note.
Definition: request.h:41