text: # Copyright 2016 Google Inc. All Rights Reserved.
  #
  # 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.
  
  """Imports objects from music modules into the top-level music namespace."""
  
  from magenta.music.abc_parser import parse_abc_tunebook
  from magenta.music.abc_parser import parse_abc_tunebook_file
  
  from magenta.music.chord_inference import ChordInferenceError
  from magenta.music.chord_inference import infer_chords_for_sequence
  
  from magenta.music.chord_symbols_lib import chord_symbol_bass
  from magenta.music.chord_symbols_lib import chord_symbol_pitches
  from magenta.music.chord_symbols_lib import chord_symbol_quality
  from magenta.music.chord_symbols_lib import chord_symbol_root
  from magenta.music.chord_symbols_lib import ChordSymbolError
  from magenta.music.chord_symbols_lib import pitches_to_chord_symbol
  from magenta.music.chord_symbols_lib import transpose_chord_symbol
  
  from magenta.music.chords_encoder_decoder import ChordEncodingError
  from magenta.music.chords_encoder_decoder import MajorMinorChordOneHotEncoding
  from magenta.music.chords_encoder_decoder import PitchChordsEncoderDecoder
  from magenta.music.chords_encoder_decoder import TriadChordOneHotEncoding
  
  from magenta.music.chords_lib import BasicChordRenderer
  from magenta.music.chords_lib import ChordProgression
  from magenta.music.chords_lib import extract_chords
  from magenta.music.chords_lib import extract_chords_for_melodies
  
  from magenta.music.constants import *  # pylint: disable=wildcard-import
  
  from magenta.music.drums_encoder_decoder import MultiDrumOneHotEncoding
  
  from magenta.music.drums_lib import DrumTrack
  from magenta.music.drums_lib import extract_drum_tracks
  from magenta.music.drums_lib import midi_file_to_drum_track
  
  from magenta.music.encoder_decoder import ConditionalEventSequenceEncoderDecoder
  from magenta.music.encoder_decoder import EncoderPipeline
  from magenta.music.encoder_decoder import EventSequenceEncoderDecoder
  from magenta.music.encoder_decoder import LookbackEventSequenceEncoderDecoder
  from magenta.music.encoder_decoder import MultipleEventSequenceEncoder
  from magenta.music.encoder_decoder import OneHotEncoding
  from magenta.music.encoder_decoder import OneHotEventSequenceEncoderDecoder
  from magenta.music.encoder_decoder import OneHotIndexEventSequenceEncoderDecoder
  from magenta.music.encoder_decoder import OptionalEventSequenceEncoder
  
  from magenta.music.events_lib import NonIntegerStepsPerBarError
  
  from magenta.music.lead_sheets_lib import extract_lead_sheet_fragments
  from magenta.music.lead_sheets_lib import LeadSheet
  
  from magenta.music.melodies_lib import BadNoteError
  from magenta.music.melodies_lib import extract_melodies
  from magenta.music.melodies_lib import Melody
  from magenta.music.melodies_lib import midi_file_to_melody
  from magenta.music.melodies_lib import PolyphonicMelodyError
  
  from magenta.music.melody_encoder_decoder import KeyMelodyEncoderDecoder
  from magenta.music.melody_encoder_decoder import MelodyOneHotEncoding
  
  from magenta.music.midi_io import midi_file_to_note_sequence
  from magenta.music.midi_io import midi_file_to_sequence_proto
  from magenta.music.midi_io import midi_to_note_sequence
  from magenta.music.midi_io import midi_to_sequence_proto
  from magenta.music.midi_io import MIDIConversionError
  from magenta.music.midi_io import sequence_proto_to_midi_file
  from magenta.music.midi_io import sequence_proto_to_pretty_midi
  
  from magenta.music.midi_synth import fluidsynth
  from magenta.music.midi_synth import synthesize
  
  from magenta.music.model import BaseModel
  
  from magenta.music.musicxml_parser import MusicXMLDocument
  from magenta.music.musicxml_parser import MusicXMLParseError
  
  from magenta.music.musicxml_reader import musicxml_file_to_sequence_proto
  from magenta.music.musicxml_reader import musicxml_to_sequence_proto
  from magenta.music.musicxml_reader import MusicXMLConversionError
  
  from magenta.music.notebook_utils import play_sequence
  from magenta.music.notebook_utils import plot_sequence
  
  from magenta.music.performance_controls import all_performance_control_signals
  from magenta.music.performance_controls import NoteDensityPerformanceControlSignal
  from magenta.music.performance_controls import PitchHistogramPerformanceControlSignal
  
  from magenta.music.performance_encoder_decoder import ModuloPerformanceEventSequenceEncoderDecoder
  from magenta.music.performance_encoder_decoder import NotePerformanceEventSequenceEncoderDecoder
  from magenta.music.performance_encoder_decoder import PerformanceModuloEncoding
  from magenta.music.performance_encoder_decoder import PerformanceOneHotEncoding
  
  from magenta.music.performance_lib import extract_performances
  from magenta.music.performance_lib import MetricPerformance
  from magenta.music.performance_lib import Performance
  
  from magenta.music.pianoroll_encoder_decoder import PianorollEncoderDecoder
  
  from magenta.music.pianoroll_lib import extract_pianoroll_sequences
  from magenta.music.pianoroll_lib import PianorollSequence
  
  
  from magenta.music.sequence_generator import BaseSequenceGenerator
  from magenta.music.sequence_generator import SequenceGeneratorError
  
  from magenta.music.sequence_generator_bundle import GeneratorBundleParseError
  from magenta.music.sequence_generator_bundle import read_bundle_file
  
  from magenta.music.sequences_lib import apply_sustain_control_changes
  from magenta.music.sequences_lib import BadTimeSignatureError
  from magenta.music.sequences_lib import extract_subsequence
  from magenta.music.sequences_lib import infer_dense_chords_for_sequence
  from magenta.music.sequences_lib import MultipleTempoError
  from magenta.music.sequences_lib import MultipleTimeSignatureError
  from magenta.music.sequences_lib import NegativeTimeError
  from magenta.music.sequences_lib import quantize_note_sequence
  from magenta.music.sequences_lib import quantize_note_sequence_absolute
  from magenta.music.sequences_lib import quantize_to_step
  from magenta.music.sequences_lib import steps_per_bar_in_quantized_sequence
  from magenta.music.sequences_lib import steps_per_quarter_to_steps_per_second
  from magenta.music.sequences_lib import trim_note_sequence
  