"""Mappings for track participants.""" DEFAULT_PERFORMER_ROLE_ID = 27 PRIMARY_TYPE = 'primary' FEATURED_TYPE = 'featured' NON_FEATURED_TYPE = 'non-featured' PRIMARY_PERFORMER_ROLES = [ 'Performer', 'Primary', 'MainArtist', 'Original' ] FEATURED_PERFORMER_ROLES = [ 'Featured', 'With', 'FeaturedArtist' ] NON_FEATURED_PERFORMER_ROLES = [ 'Replacement', 'Additional', 'Unknown' ] PERFORMER_ROLE_MAPPING = { 'Primary': DEFAULT_PERFORMER_ROLE_ID, 'Featured': DEFAULT_PERFORMER_ROLE_ID, 'With': DEFAULT_PERFORMER_ROLE_ID, 'FeaturedArtist': DEFAULT_PERFORMER_ROLE_ID, 'MainArtist': DEFAULT_PERFORMER_ROLE_ID, 'Replacement': DEFAULT_PERFORMER_ROLE_ID, 'Additional': DEFAULT_PERFORMER_ROLE_ID, 'Unknown': DEFAULT_PERFORMER_ROLE_ID, '12-StringGuitar': 20, 'AcousticBassGuitar': 19, 'AcousticGuitar': 20, 'Actor': DEFAULT_PERFORMER_ROLE_ID, 'AgogoBells': DEFAULT_PERFORMER_ROLE_ID, 'Alpenhorn': 1, 'AltoSaxophone': 106, 'AltoVoice': 73, 'Autoharp': DEFAULT_PERFORMER_ROLE_ID, 'BackgroundVocalist': 74, 'Bagpipes': 94, 'Balafon': 65, 'Balalaika': DEFAULT_PERFORMER_ROLE_ID, 'BandLeader': DEFAULT_PERFORMER_ROLE_ID, 'Bandoneon': 93, 'Banjo': 21, 'Bansuri': DEFAULT_PERFORMER_ROLE_ID, 'BaritoneSaxophone': 107, 'BaritoneVoice': 75, 'Bass': 22, 'BassBaritoneVoice': 76, 'BassClarinet': 96, 'BassDrum(Concert)': 29, 'BassGuitar': 22, 'Bassoon': 95, 'BassVoice': 77, 'Bendir': DEFAULT_PERFORMER_ROLE_ID, 'BirdWhistle': 136, 'Bodhran': DEFAULT_PERFORMER_ROLE_ID, 'Bongos': 31, 'BrassBand': 110, 'Bugle': 2, 'Cabasa': 32, 'Caja': DEFAULT_PERFORMER_ROLE_ID, 'Castanet': DEFAULT_PERFORMER_ROLE_ID, 'Caxixi': DEFAULT_PERFORMER_ROLE_ID, 'Celesta': 135, 'Cello': 66, 'CelticHarp': 69, 'Chimes': 33, 'Choir': 129, 'ChorusMaster': 128, 'Clarinet': 96, 'Claves': 35, 'Clavichord': DEFAULT_PERFORMER_ROLE_ID, 'ConcertHarp': 69, 'ConcertMaster': DEFAULT_PERFORMER_ROLE_ID, 'Conductor': DEFAULT_PERFORMER_ROLE_ID, 'Congas': 36, 'Contrabassoon': 95, 'ContrabassVoice': 130, 'ContraltoVoice': 80, 'Cornet': 3, 'CountertenorVoice': 81, 'Cowbell': 37, 'Cymbals': 38, 'Dancer': DEFAULT_PERFORMER_ROLE_ID, 'DJ': 10, 'Djembe': 39, 'DjScratching': 114, 'DobroGuitar': 115, 'DoubleBass': 67, 'DrumKit': 41, 'DrumMachine': 40, 'ElectricGuitar': 24, 'EnglishHorn': 6, 'Erhu': 132, 'Euphonium': 4, 'Fiddle': 68, 'FingerCymbals': 44, 'Flugelhorn': 108, 'Flute': 99, 'FrenchHorn': 5, 'FretlessBassGuitar': 23, 'Glockenspiel': 45, 'Gong': 46, 'Guacharaca': DEFAULT_PERFORMER_ROLE_ID, 'Guiro': 47, 'Guitar': 24, 'GuitarSynth': 25, 'HandBells': 48, 'HandClaps': 34, 'Harmonica': 100, 'Harmonium': 123, 'Harpsichord': 15, 'HiHatCymbal': 49, 'Jawharp': DEFAULT_PERFORMER_ROLE_ID, 'Kazoo': DEFAULT_PERFORMER_ROLE_ID, 'Keyboard': 14, 'Kora': 133, 'Koto': DEFAULT_PERFORMER_ROLE_ID, 'LapSteelGuitar': 20, 'Looping': 112, 'Lute': 117, 'Lyre': 69, 'Mandolin': 118, 'Maracas': 50, 'Marimba': 51, 'Melodica': DEFAULT_PERFORMER_ROLE_ID, 'MezzoSopranoVoice': 84, 'MusicBox': DEFAULT_PERFORMER_ROLE_ID, 'Narrator': 88, 'NeyFlute': 99, 'NylonStringGuitar': 20, 'Oboe': 101, 'OboeDAmore': 101, 'Orchestra': DEFAULT_PERFORMER_ROLE_ID, 'OriginalArtist': DEFAULT_PERFORMER_ROLE_ID, 'Pandeiro': DEFAULT_PERFORMER_ROLE_ID, 'PanFlute': DEFAULT_PERFORMER_ROLE_ID, 'PercussionSection': 41, 'Performer': DEFAULT_PERFORMER_ROLE_ID, 'Piano': 17, 'PianoAccordion': 93, 'PiccoloFlute': 102, 'PiccoloTrumpet': 8, 'Pipa': 134, 'PipeOrgan': 16, 'PluckedDulcimer': 116, 'Programmer': 113, 'Recorder': 103, 'Sampler': 11, 'Santoor': DEFAULT_PERFORMER_ROLE_ID, 'Sarrusophone': DEFAULT_PERFORMER_ROLE_ID, 'Saxophone': 104, 'Shaker': 52, 'Shakuhachi': 99, 'Shekere': 52, 'Sheng': DEFAULT_PERFORMER_ROLE_ID, 'Sitar': 120, 'SlideGuitar': 121, 'SnareDrum': 53, 'Soloist': 89, 'SopranoSaxophone': 110, 'SopranoVoice': 87, 'Speaker': 88, 'SteelDrums': 54, 'StringSection': DEFAULT_PERFORMER_ROLE_ID, 'Surdo': 29, 'Synthesizer': 18, 'Tabla': 126, 'Tambour': DEFAULT_PERFORMER_ROLE_ID, 'Tambourine': 55, 'Tanpura': DEFAULT_PERFORMER_ROLE_ID, 'TempleBlocks': 56, 'Tenor': 90, 'TenorSaxophone': 111, 'Theremin': 12, 'Timbales': 57, 'Timpani': 58, 'TinWhistle': 105, 'Tompak': DEFAULT_PERFORMER_ROLE_ID, 'Toms': 59, 'Triangle': 60, 'Trombone': 7, 'Trumpet': 8, 'Tuba': 9, 'UilleanPipes': 94, 'Ukulele': 122, 'UserDefined:Afoxé': 52, 'UserDefined:AllInstruments': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:BeatBoxing': 78, 'UserDefined:Bells': 30, 'UserDefined:Bongo Bell': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:BrushesOnSnare': 53, 'UserDefined:Chains': 26, 'UserDefined:Chanting': 79, 'UserDefined:Dulcimer': 116, 'UserDefined:ElectronicDrums': 42, 'UserDefined:ElectronicPercussion': 43, 'UserDefined:Falsetto': 82, 'UserDefined:Horn': 6, 'UserDefined:Kamancheh': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:Mezzo-Contralto': 83, 'UserDefined:Other': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:Rap': 85, 'UserDefined:Shouting': 86, 'UserDefined:StepDancer': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:Supefi': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:Vocoder': 13, 'UserDefined:Water Drum': DEFAULT_PERFORMER_ROLE_ID, 'UserDefined:Whistles': 28, 'Vibraphone': 62, 'Vibraslap': 61, 'Viola': 70, 'ViolaDaGamba': 70, 'ViolaDAmore': 70, 'Violin': 71, 'Voice': 89, 'WindChimes': 63, 'WoodBlock': 64, 'WoodwindInstrument': DEFAULT_PERFORMER_ROLE_ID, 'Xylophone': 65, 'Zither': 72, # Temp role mappings - till SONY have implemented remaining DDEX roles 'Accordion': 93, 'Drums': 41, 'Violoncello': 66, 'Horn': 6, 'Harp': 69, 'Band Leader': DEFAULT_PERFORMER_ROLE_ID, 'Chorus Master': 128, 'Mezzo-Soprano': 84, 'Bass Baritone': 76, 'Bass Vocal': 77, 'Classical Guitar': 20, 'Fretless Bass': 23, 'Brass': DEFAULT_PERFORMER_ROLE_ID, 'Performance': DEFAULT_PERFORMER_ROLE_ID, 'Oboe D\'amore': 101, 'Dulcimer': 116, 'Steel Guitar': 20, '12-String Guitar': 20, 'Step Dancer': DEFAULT_PERFORMER_ROLE_ID, 'Fluegelhorn': 108, 'Celeste': 135, 'Loops': 112, 'Scratches': DEFAULT_PERFORMER_ROLE_ID, 'Rap': 85, 'Alto': 73, 'Supefi': DEFAULT_PERFORMER_ROLE_ID, 'Pandereta': DEFAULT_PERFORMER_ROLE_ID, 'Water Drum': DEFAULT_PERFORMER_ROLE_ID, 'Whistles': 28, 'Dobro': 115, 'Bells': 30, 'Afoxé': 52, 'Agogo': DEFAULT_PERFORMER_ROLE_ID, 'Alaúde': DEFAULT_PERFORMER_ROLE_ID, 'Panpipes': DEFAULT_PERFORMER_ROLE_ID, 'Original Performer': DEFAULT_PERFORMER_ROLE_ID, 'Jaw Harp': DEFAULT_PERFORMER_ROLE_ID, 'Penny Whistle': 105, 'Music Box': DEFAULT_PERFORMER_ROLE_ID, 'Concert Master': DEFAULT_PERFORMER_ROLE_ID, 'Contrabass': DEFAULT_PERFORMER_ROLE_ID, 'Santur': DEFAULT_PERFORMER_ROLE_ID, 'Ney': 99, 'Kamancheh': DEFAULT_PERFORMER_ROLE_ID, 'Alphorn': 1, 'Chains': 26, 'Brushes on Snare': 53, 'Bongo Bell': DEFAULT_PERFORMER_ROLE_ID, 'Zarb': DEFAULT_PERFORMER_ROLE_ID, 'All Instruments': DEFAULT_PERFORMER_ROLE_ID, 'Other': DEFAULT_PERFORMER_ROLE_ID, 'Hi-Hat': 49, 'Drum Programmer': 40, 'Vocoder': 13 }