view mmltonsf.bat @ 133:0d8eabdd12ab default tip

create: write H:MM:SS timestamps, add option to fill with gaussian-blur instead of black many albums are longer than one hour so writing H:MM:SS is a necessity. if anything there will just be verbose info that isn't important for my use-case. however the gaussian-blur is simply broken. It works, and it plays locally just fine, but YouTube in particular elongates the video to fit the full width. I'm not entirely sure why it does this, but it makes it useless and ugly.
author Paper <paper@tflc.us>
date Sat, 03 Jan 2026 20:25:38 -0500
parents 37f231f85a67
children
line wrap: on
line source

@echo off

REM - Usage
if "%1" == "" (
    echo usage: compile.bat ^<input^>
    exit /b
)

REM - Compile MML
del /f effect.h
ppmckc.exe -i "%1"
if not exist "effect.h" (
    echo ppmckc ERROR
    exit /b
)

REM - Assemble
del /f ppmck.nes
nesasm -s -raw ppmck.asm
if not exist "ppmck.nes" (
    echo nesasm ERROR
    del /f "%~n1" effect.h define.inc
    exit /b
)

REM - Move files
move /y ppmck.nes "%~n1.nsf"
echo %~n1.nsf written

REM - Cleanup
del /f "%~n1".h effect.h define.inc