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

how to transform Digital Piano MIDI input to MAC Built-in Output #11

Open
azadbolour opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@azadbolour
Copy link

Is it possible via scamp to obtain input from a connected digital piano, transform the pitch, and output it to the MIDI Built-in Output of a MAC?

By using session.register_midi_listener("Digital Piano", midi_callback) as illustrated in the KeyboardMapping demo, I can catch the incoming MIDI messages from my digital piano.

Also with the digital piano off and no listener, I can send pitches to my MAC's speakers as follows:

instrument = session.new_part("piano")
instrument.play_note(pitch, volume, length)

But with the digital piano on, connected, and being listened to by my scamp program, I have not been able to send output to my MAC's Built-in Output.

How would I tell scamp that the input should come from the digital piano, but the output should go to the Built-in MIDI output device on the MAC?

I would really appreciate a code sample for accomplishing such transfers.

Many thanks.

Azad

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