aboutsummaryrefslogtreecommitdiff
path: root/pianoroll.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-07-31 03:59:16 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commitd145fa6f792d6c44da2feec90507adb94e40323e (patch)
treeae3aaf213dbb4273331745802ef1259dce8e2986 /pianoroll.h
parent67af8f6b3f179d5b4ba0747ab971abbeecbedd45 (diff)
got everything building using the template Makefile
svn path=/trunk/externals/unauthorized/; revision=15173
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