From d145fa6f792d6c44da2feec90507adb94e40323e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 31 Jul 2011 03:59:16 +0000 Subject: got everything building using the template Makefile svn path=/trunk/externals/unauthorized/; revision=15173 --- pianoroll.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pianoroll.h (limited to 'pianoroll.h') 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 -- cgit v1.2.1