File: morse.h

package info (click to toggle)
pd-mjlib 0.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,300 kB
  • sloc: ansic: 1,273; makefile: 348
file content (34 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34



typedef struct _msglet
{
	char* msg;
	int idx;
	int length;
    struct _msglet *next;
} morse_msglet;

typedef struct _morse
{
    t_object x_obj;
    	
	 morse_msglet *x_msg;
	 morse_msglet *x_curmsg;
	int x_spaceticks;
	t_outlet *x_dot;
	t_outlet *x_dash;
	t_outlet *x_end;
} t_morse;


static void morse_add_msg_part(  t_morse *x , char *msgpart );
static char *morse_lookup( char c );
static void morse_freemsg( morse_msglet* msg);
static void morse_free(t_morse *x);
static void *morse_new(t_symbol *s, int argc, t_atom *argv);
static void morse_message( t_morse *x, t_symbol *s, int ac, t_atom *av );
static void morse_do_beat( t_morse* x );