cratedraw

cratedraw

cratedraw is a utility that uses wavdraw to draw a waveform from a weewiki crate file (via sqlar).

A small example using Janet:

(def db (sqlite3/open "s/a.db"))
(def bp (monolith/btprnt-new 500 250))
(monolith/btprnt-cratedraw bp db @[0 0 500 250] "393edea8%" 1)
(monolith/btprnt-write-pbm bp "crate.pbm")
(sqlite3/close db)