# Path: camp/playback/realtime.py
# def get_ports():
#     midi_out = rtmidi.MidiOut(b'out')
#     available_ports = midi_out.ports
#     return available_ports
# 
# def get_bus():
#     ports = get_ports()
#     port_num = os.environ.get("CAMP_MIDI_BUS", len(ports) -1)
#     return int(port_num)


from camp.playback.realtime import get_ports, get_bus
"""
Copyright 2016, Michael DeHaan <michael.dehaan@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""


INSTRUCTIONS = """

To get MIDI realtime output in CAMP to work, you must select an appropriate MIDI bus.
This will be the bus that will drive instruments in your DAW, VST host, or externally.
Currently, only one bus can be used at a time with CAMP.

In the list below, the LAST bus will be selected unless the environment variable
CAMP_MIDI_BUS is set to a different number. For instance, at a bash prompt:

    # export CAMP_MIDI_BUS=1


# Path: camp/playback/realtime.py
# def get_ports():
#     midi_out = rtmidi.MidiOut(b'out')
#     available_ports = midi_out.ports
#     return available_ports
# 
# def get_bus():
#     ports = get_ports()
#     port_num = os.environ.get("CAMP_MIDI_BUS", len(ports) -1)
#     return int(port_num)


# Path: examples/00_ports_and_setup.py
from camp.playback.realtime import get_ports, get_bus

"""
Copyright 2016, Michael DeHaan <michael.dehaan@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""


INSTRUCTIONS = """

To get MIDI realtime output in CAMP to work, you must select an appropriate MIDI bus.
This will be the bus that will drive instruments in your DAW, VST host, or externally.
Currently, only one bus can be used at a time with CAMP.

In the list below, the LAST bus will be selected unless the environment variable
CAMP_MIDI_BUS is set to a different number. For instance, at a bash prompt:

    # export CAMP_MIDI_BUS=1


OR: