#ifndef lint
static char sccsid[] = "@(#)notes.c	1.1 (mg@ukc.ac.uk) 2/11/90";
#endif
/*
 *	Test program to put out midi bytes as if played on a keyboard
 */

#include <stdio.h>

main()
{
	int n, v;
	char buf[256];

	while (fgets(buf, sizeof(buf), stdin) != NULL) {
		if (sscanf(buf, "%d %d", &n, &v) != 2) exit(1);
		putchar(0x90);
		putchar(n);
		putchar(v);
		fflush(stdout);
	}
	exit(0);
}
