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

Midi rookie wants to Integrate midi-lib with other APP #2

Closed
cameronkkk opened this issue Sep 18, 2014 · 2 comments
Closed

Midi rookie wants to Integrate midi-lib with other APP #2

cameronkkk opened this issue Sep 18, 2014 · 2 comments

Comments

@cameronkkk
Copy link

Hi Alex,

Your code is inspiring, so please forgive my stupid questions.

I've run the sample code on PC, and plan to integrate the midi library
with other Midi Sheet music APP which generate midi sound and the midi library will send midi event to external midi device thru bluetooth interface at the same time.

Question #1

The example"Event Printer" show the parsed midi event on screen.
Can I just add my code "SENT TO BLUETOOTH INTERFACE" as below or other
modifications are needed? such as tempo,speed...

public void onEvent(MidiEvent event, long ms)

    //System.out.println(mLabel + " received event: " + event);
    "SENT TO BLUETOOTH INTERFACE"
}

Question #2
Can I just import the android-midi-libv3-49.jar file and use it in Eclipse ADT?

Thank you in advance for your time
Regards,

@LeffelMania
Copy link
Owner

1:
It's hard to generally say "Yes" to that question, but that is the intention of the MidiEventListener interface, yes. You should be able to create and register a new listener that sends data to a bluetooth interface for every event that you're interested in.

2:
You should be able to, but project configuration questions are outside the scope of this repo.

@cameronkkk
Copy link
Author

Hi Alex,

Thank you again for your time and reply

Regards,

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

2 participants