Zack Buhman 778138971f midi: play c major scale
TIMA occurs at half the speed predicted in the SCSP manual in
mednafen, but at the correct speed in Kronos. I don't know which is
correct.
2023-06-27 10:15:14 +00:00

29 lines
599 B
Makefile

CFLAGS = -I../saturn -fstack-usage
OPT = -O0
LIBGCC = $(shell $(CC) -print-file-name=libgcc.a)
LIB = ../saturn
all:
include $(LIB)/m68k/common.mk
# 200 bytes
%-44100-s16be-1ch-100sample.pcm: Makefile
sox \
-r 44100 -e signed-integer -b 16 -c 1 -n -B \
$@.raw \
synth 100s $* 440 vol -10dB
mv $@.raw $@
%.pcm.o: %.pcm
$(BUILD_BINARY_O)
%.mid.o: %.mid
$(BUILD_BINARY_O)
slot.elf: slot.o sine-44100-s16be-1ch-1sec.pcm.o
interrupt.elf: interrupt.o jojo-11025-s16be-1ch.pcm.o
midi.elf: midi.o sine-44100-s16be-1ch-100sample.pcm.o midi_test-c-major-scale.mid.o ../midi/parse.o $(LIBGCC)