Skip to content

Commit

Permalink
logs on stdout, more types on playing midi
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcichra committed Feb 20, 2022
1 parent 433c9fe commit 573e721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package main

import (
"flag"
"os"
"log"
_ "net/http/pprof"
"strconv"
"strings"
)

func main() {
log.SetOutput(os.Stdout)

// get args
serverIP := flag.String("server", "localhost", "server IP")
Expand Down
4 changes: 4 additions & 0 deletions play.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ func playMidiFile(notesChan chan interface{}, file string) {
notesChan <- v
case channel.NoteOff:
notesChan <- v
case channel.ProgramChange:
notesChan <- v
case channel.ControlChange:
notesChan <- v
}
})
// sleep forever
Expand Down

0 comments on commit 573e721

Please sign in to comment.