Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go signal killed when running example #36

Open
cmingxu opened this issue Aug 23, 2017 · 0 comments
Open

go signal killed when running example #36

cmingxu opened this issue Aug 23, 2017 · 0 comments

Comments

@cmingxu
Copy link

cmingxu commented Aug 23, 2017

package main

import (
	"fmt"
	"log"

	"github.com/rakyll/portmidi"
)

func main() {

	in, err := portmidi.NewInputStream(portmidi.DefaultInputDeviceID(), 1024)
	if err != nil {
		log.Fatal(err)
	}

	msg, err := in.Read(1024)
	if err != nil {
		log.Fatal(err)
	}

	for i, b := range msg {
		fmt.Printf("SysEx message byte %d = %02x\n", i, b)
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant