aboutsummaryrefslogtreecommitdiff
path: root/pianoroll.h
diff options
context:
space:
mode:
Diffstat (limited to 'pianoroll.h')
-rw-r--r--pianoroll.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/pianoroll.h b/pianoroll.h
new file mode 100644
index 0000000..4f6a783
--- /dev/null
+++ b/pianoroll.h
@@ -0,0 +1,40 @@
+/* Copyright (c) 2002 Yves Degoyon
+* For information on usage and redistribution, and for a DISCLAIMER OF ALL
+* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
+
+/* a header for pianoroll which enables
+* to control a sequencer ( pitch and volume )
+*/
+
+#ifndef __G_PIANOROLL_H
+#define __G_PIANOROLL_H
+
+typedef struct _pianoroll
+{
+ t_object x_obj;
+ t_glist *x_glist;
+ t_symbol *x_name;
+ t_outlet *x_pitch;
+ t_outlet *x_volume;
+ int x_height; /* height of the pianoroll */
+ int x_width; /* width of the pianoroll */
+ t_float x_pmin; /* minimum value of the pitch */
+ t_float x_pmax; /* max value of the pitch */
+ t_int x_nbgrades; /* number of grades for the pitch */
+ t_int x_nbsteps; /* number of steps */
+ t_int x_defvalue; /* default value for the pitch */
+ t_float x_transpose;/* transposition value */
+ t_float *x_peaches; /* pitch for each step */
+ t_int *x_ipeaches; /* pitch index for each step */
+ t_float *x_volumes; /* volume for each step */
+ t_int *x_ivolumes; /* volume index for each step */
+ int x_selected; /* stores selected state */
+ int x_xlines; /* number of vertical lines */
+ int x_ylines; /* number of horizontal lines */
+ int x_scurrent; /* cureent step */
+ int x_save; /* saving contents flag */
+} t_pianoroll;
+
+EXTERN t_rtext *rtext_new_without_senditup(t_glist *glist, t_text *who, t_rtext *next);
+
+#endif