func main() { fmt.Println("Logging Midi") var callback LoggingLexerCallback // var file, err = os.Open("/Users/joe/Downloads/102891.mid") var file, err = os.Open("/Users/joe/Downloads/HOTELCAL.MID") if err != nil { fmt.Println(err) return } lexer := midi.NewMidiLexer(file, callback) lexer.Lex() }
func main() { var callback LoggingLexerCallback // loc := "/Users/joe/Downloads/102891.mid" // loc := "/Users/joe/Downloads/HOTELCAL.MID" loc := "/Users/joe/personal/backup/home/Websites/close site5/ttf/public_html_old-28-apr-2010/temporaryImages/1018.mid" var file, err = os.Open(loc) if err != nil { return } lexer := midi.NewMidiLexer(file, callback) lexer.Lex() }