Debian Codegraph @

pianoroll.h

raw symbols SCIP
1 /* Copyright (c) 2002 Yves Degoyon
2 * For information on usage and redistribution, and for a DISCLAIMER OF ALL
3 * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
4
5 /* a header for pianoroll which enables
6 * to control a sequencer ( pitch and volume )
7 */
8
9 #ifndef __G_PIANOROLL_H
10 #define __G_PIANOROLL_H
11
12 typedef struct _pianoroll
13 {
14 t_object x_obj;
15 t_glist *x_glist;
16 t_symbol *x_name;
17 t_outlet *x_pitch;
18 t_outlet *x_volume;
19 int x_height; /* height of the pianoroll */
20 int x_width; /* width of the pianoroll */
21 t_float x_pmin; /* minimum value of the pitch */
22 t_float x_pmax; /* max value of the pitch */
23 t_int x_nbgrades; /* number of grades for the pitch */
24 t_int x_nbsteps; /* number of steps */
25 t_int x_defvalue; /* default value for the pitch */
26 t_float x_transpose;/* transposition value */
27 t_float *x_peaches; /* pitch for each step */
28 t_int *x_ipeaches; /* pitch index for each step */
29 t_float *x_volumes; /* volume for each step */
30 t_int *x_ivolumes; /* volume index for each step */
31 int x_selected; /* stores selected state */
32 int x_xlines; /* number of vertical lines */
33 int x_ylines; /* number of horizontal lines */
34 int x_scurrent; /* cureent step */
35 int x_save; /* saving contents flag */
36 } t_pianoroll;
37
38 EXTERN t_rtext *rtext_new_without_senditup(t_glist *glist, t_text *who, t_rtext *next);
39
40 #endif