Skip to content

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

@azadbolour

Description

@azadbolour

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions