shithub: neindaw

Download patch

ref: 3b3754f058f26eb9401ccc4df1c18eba4b8102d6
parent: ee99ffa5e69c36dd252d368db8f40efd92477e9a
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed May 13 11:44:50 EDT 2020

piper: use the other utils

--- a/piper/ay.c
+++ b/piper/ay.c
@@ -1,6 +1,7 @@
 #include <u.h>
 #include <libc.h>
 #include "piper.h"
+#include "util.h"
 
 typedef struct AY AY;
 
--- a/piper/kick.c
+++ b/piper/kick.c
@@ -1,6 +1,7 @@
 #include <u.h>
 #include <libc.h>
 #include "piper.h"
+#include "util.h"
 
 typedef struct Kick Kick;
 
--- a/piper/mkfile
+++ b/piper/mkfile
@@ -2,6 +2,7 @@
 
 TARG=piper
 BIN=/$objtype/bin/daw
+CFLAGS=$CFLAGS -I..
 
 OFILES=\
 	ay.$O\
@@ -10,14 +11,11 @@
 	util.$O\
 
 HFILES=\
-	a440.h\
 	piper.h
 
-%.h: %.txt
-	./notegen <$stem.txt >$stem.h
-
 default:V: all
 
-CLEANFILES=a440.h
-
 </sys/src/cmd/mkone
+
+util.$O: ../util.c
+	$CC $CFLAGS $prereq
--- a/piper/piper.c
+++ b/piper/piper.c
@@ -3,6 +3,7 @@
 #include <thread.h>
 #include <bio.h>
 #include "piper.h"
+#include "util.h"
 
 typedef struct Inst Inst;
 typedef struct Group Group;