# 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 = """


# 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.