| 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 exciter which enables |
| 6 | * to trigger bang events scheduled with the mouse |
| 7 | */ |
| 8 | |
| 9 | #ifndef __G_EXCITER_H |
| 10 | #define __G_EXCITER_H |
| 11 | |
| 12 | typedef struct _exciter |
| 13 | { |
| 14 | t_object x_obj; |
| 15 | t_glist *x_glist; |
| 16 | t_outlet **x_bangs; |
| 17 | t_int x_height; /* height of the exciter */ |
| 18 | t_int x_width; /* width of the exciter */ |
| 19 | t_int x_nbevents; /* number of simultaneous events */ |
| 20 | t_float x_timegrain; /* time granularity for one pixel */ |
| 21 | t_int *x_sbangs; /* scheduled bangs */ |
| 22 | int x_selected; /* stores selected state */ |
| 23 | int x_loop; /* looping flag */ |
| 24 | int x_save; /* saving contents flag */ |
| 25 | |
| 26 | /* internal processing */ |
| 27 | long long x_plooptime; /* initial time */ |
| 28 | long long x_reltime; /* elapsed time since start */ |
| 29 | long long x_looplength; /* length of a loop */ |
| 30 | t_int x_started; /* start flag */ |
| 31 | t_int x_gindex; /* last scanned index */ |
| 32 | } t_exciter; |
| 33 | |
| 34 | #endif |