picadae calibration programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p_ac.yml 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. {
  2. p_ac: {
  3. # Audio device setup
  4. audio: {
  5. inPortLabel: "8 USB Audio CODEC:", #"HDA Intel PCH: CS4208", # "5 USB Audio CODEC:", #"5 USB Sound Device",
  6. outPortLabel: ,
  7. },
  8. midi: {
  9. inMonitorFl: False,
  10. outMonitorFl: False,
  11. throughFl: False,
  12. inPortLabel: "Fastlane:Fastlane MIDI A",
  13. outPortLabel: "Fastlane:Fastlane MIDI A"
  14. #inPortLabel: "picadae:picadae MIDI 1",
  15. #outPortLabel: "picadae:picadae MIDI 1"
  16. },
  17. # Picadae API args
  18. serial_dev: "/dev/ttyACM0",
  19. serial_baud: 38400,
  20. i2c_base_addr: 21,
  21. prescaler_usec: 16,
  22. pwm_div: 5,
  23. serial_sync_timeout_ms: 10000,
  24. # MeasureSeq args
  25. outDir: "~/temp/p_ac_3_oe",
  26. noteDurMs: 500,
  27. pauseDurMs: 500,
  28. reversePulseListFl: True,
  29. useFullPulseListFl: True,
  30. maxSilentNoteCount: 4,
  31. silentNoteMaxPulseUs: 15000,
  32. silentNoteMinDurMs: 180, #250,
  33. # Midi file player
  34. midiFileFn: "/home/kevin/media/audio/midi/txt/round4.txt",
  35. full_pulse0L: [ 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 8000, 9000, 10000, 12000, 14000, 18000, 22000, 26000, 30000, 34000, 40000],
  36. full_pulse1L: [ 10000, 11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 20000, 22000, 24000, 26000, 30000, 32000, 34000, 36000, 40000],
  37. full_pulse2L: [ 10000, 10500, 11000, 11500, 12000, 12500, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 20000, 22000, 24000, 26000, 30000, 32000, 34000, 36000, 40000],
  38. full_pulse3L: [ 10000, 10125, 10250, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14500, 14625, 14750, 14875, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 20000, 22000, 24000, 26000, 30000, 32000, 34000, 36000, 40000],
  39. full_pulse4L: [ 8000, 8125, 8250, 8375, 8500, 8625, 8750, 8875, 9000, 9125, 9250, 9375, 9500, 9625, 9750, 9875, 10000, 10125, 10250, 10375, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14375, 14250, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 20000, 21000, 22000, 23000, 24000, 25000, 26000, 27000, 28000, 30000, 32000, 34000, 36000, 40000],
  40. full_pulse5L: [ 10000, 10125, 10250, 10375, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 20000, 21000, 22000, 23000, 24000, 25000, 26000, 27000, 28000, 30000, 32000, 34000, 36000, 40000],
  41. full_pulse6L: [ 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 19000, 19500, 20000, 20500, 21000, 21500, 22000, 22500, 23000, 23500, 24000, 24500, 25000, 25500, 26000, 26500, 27000, 27500, 28000, 28500, 29000, 30000, 31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000 ],
  42. full_pulseMainL: [ 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 19000, 19500, 20000, 20500, 21000, 21500, 22000, 22500, 23000, 23500, 24000, 24500, 25000, 25500, 26000, 26500, 27000, 27500, 28000, 28500, 29000, 30000, 31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000 ],
  43. full_pulse8L: [ 10000, 10050, 10100, 10150, 10200, 10250, 10300, 10350, 10400, 10450, 10500, 10550, 10600, 10650, 10700, 10750, 10800, 10850, 10900, 10950, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 19000, 19500, 20000, 20500, 21000, 21500, 22000, 22500, 23000, 23500, 24000, 24500, 25000, 25500, 26000, 26500, 27000, 27500, 28000, 28500, 29000, 30000, 31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000 ],
  44. # full_pulse9L was the last pulse list used on Matt's piano
  45. full_pulse9L: [11000, 11075, 11150, 11225, 11300, 11375, 11450, 11525, 11600,11675, 11750, 11825, 11900, 11975, 12050, 12125, 12200, 12275,12350, 12425, 12500, 12575, 12650, 12725, 12800, 12875, 12950, 13025, 13100, 13175, 13250, 13325, 13400, 13475, 13550, 13625, 13700, 13775, 13850, 13925, 14000, 14075, 14150, 14225, 14300, 14375, 14450, 14525, 14600, 14675, 14750, 14825, 14900, 14975],
  46. full_pulse10L: [ 8750, 8800, 8850, 8900, 8950, 9000, 9050, 9100, 9150, 9200, 9250, 9300, 9350, 9400, 9450,9500, 9550, 9600, 9650, 9700, 9750, 9800, 9850, 9900, 9950, 10000, 10050, 10100, 10150, 10200, 10250, 10300, 10350, 10400, 10450, 10500, 10550, 10600, 10650, 10700, 10750, 10800, 10850, 10900, 10950, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000, 15250, 15375, 15500, 15750, 16000, 16250, 16500, 16750, 17000, 17250, 17500, 17750, 18000, 18250, 18500, 18750, 19000, 19500, 20000, 20500, 21000, 21500, 22000, 22500, 23000, 23500, 24000, 24500, 25000, 25500, 26000, 26500, 27000, 27500, 28000, 28500, 29000, 30000, 31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000 ],
  47. full_pulse11L: [ 9000, 9050, 9100, 9150, 9200, 9250, 9300, 9350, 9400, 9450,9500, 9550, 9600, 9650, 9700, 9750, 9800, 9850, 9900, 9950, 10000, 10050, 10100, 10150, 10200, 10250, 10300, 10350, 10400, 10450, 10500, 10550, 10600, 10650, 10700, 10750, 10800, 10850, 10900, 10950, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000 ],
  48. full_pulse12L: [ 8750, 8800, 8850, 8900, 8950, 9000, 9050, 9100, 9150, 9200, 9250, 9300, 9350, 9400, 9450,9500, 9550, 9600, 9650, 9700, 9750, 9800, 9850, 9900, 9950, 10000, 10050, 10100, 10150, 10200, 10250, 10300, 10350, 10400, 10450, 10500, 10550, 10600, 10650, 10700, 10750, 10800, 10850, 10900, 10950, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13125, 13250, 13375, 13500, 13625, 13750, 13875, 14000, 14125, 14250, 14375, 14500, 14625, 14750, 14875, 15000 ],
  49. # pulse lists below this line were developed on Steinway D (11/14/20)
  50. # 60
  51. full_pulse13L: [8000, 8250, 8500, 8750, 9000, 9250, 9500, 9750, 10000, 10250, 10500, 10750, 11000, 11250, 11500, 11750, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 19000, 19500, 20000 ],
  52. full_pulse14L: [ 9000, 9125, 9250, 9375, 9500, 9625, 9750, 9875, 10000, 10125, 10250, 10375, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 19000, 19500, 20000, 20500, 21000, 21500, 22000 ],
  53. full_pulse15L: [ 8000, 9000,10000, 11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000, 20000 ],
  54. full_pulse16L: [ 8000, 8125, 8250, 8375, 8500, 8625, 8750, 8875, 9000, 9125, 9250, 9375, 9500, 9625, 9750, 9875, 10000, 10125, 10250, 10375, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 19000, 19500, 20000, 20500, 21000, 21500, 22000 ],
  55. full_pulse17L: [ 8100, 8150, 8200, 8250, 8300, 8350, 8400, 8450, 8500, 8550, 8600, 8650, 8700, 8750, 8800, 8850, 8900, 8950, 9000, 9125, 9250, 9375, 9500, 9625, 9750, 9875, 10000, 10125, 10250, 10375, 10500, 10625, 10750, 10875, 11000, 11125, 11250, 11375, 11500, 11625, 11750, 11875, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000, 18500, 19000, 19500, 20000, 20500, 21000, 21500, 22000 ],
  56. full_pulse18L: [ 11500, 11625, 11750, 11875, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500 ],
  57. full_pulse19L: [ 11875, 12000, 12125, 12250, 12375, 12500, 12625, 12750, 12875, 13000, 13250, 13500, 13750, 14000, 14500, 15000, 15500, 16000, 16500 ],
  58. # pulse lists below this line were developed on Steinway D w/ new firmware (11/21/20)
  59. full_pulse20L: [ 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000, 3250, 3500, 3750, 4000, 4250, 4500, 4750, 5000, 5250, 5500, 5750, 6000, 6250, 6500, 6750, 7000, 7250, 7500, 7750, 8000, 8250, 8500, 8750, 9000, 9250, 9500, 9750, 10000, 10250, 10500, 10750, 11000, 11250, 11500, 11750, 12000, 12250, 12500, 12750, 13000, 13500, 14000, 14500, 15000, 15500 ],
  60. # 60,72
  61. full_pulse21L: [ 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000, 3250, 3500, 3750, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000 ],
  62. # 48,36,85
  63. full_pulse22L: [ 3500, 3750, 4000, 4250, 4500, 4750, 5000, 5250, 5500, 5750, 6000, 6250, 6500, 6750, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 10500, 11000, 12000, 12500, 13000, 14000, 15000, 16000, 17000, 18000, 19000 ],
  64. # 84
  65. full_pulseL: [ 2000, 2250, 2500,2750, 3000, 3250, 3500, 3750, 4000, 4250, 4500, 4750, 5000, 5250, 5500, 5750, 6000, 6250, 6500, 6750, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 10500, 11000, 12000, 12500, 13000, 14000, 15000, 16000 ],
  66. # RMS analysis args
  67. analysisArgs: {
  68. rmsAnalysisArgs: {
  69. rmsWndMs: 300, # length of the RMS measurment window
  70. rmsHopMs: 30, # RMS measurement inter window distance
  71. dbLinRef: 0.01, # length of initial portion of signal to use to calculate the dB reference level
  72. harmCandN: 5, # count of harmonic candidates to locate during harmonic based RMS analysis
  73. harmN: 3, # count of harmonics to use to calculate harmonic based RMS analysis
  74. durDecayPct: 40, # percent drop in RMS to indicate the end of a note
  75. },
  76. resampleMinDb: -5.0, # note's less than this will be skipped
  77. resampleNoiseLimitPct: 5.0, #
  78. resampleMinDurMs: 150, # notes's whose duration is less than this will be skipped
  79. useLastTakeOnlyFl: True,
  80. minAttkDb: -5.0, # threshold of silence level
  81. maxDbOffset: 0.25, # travel down the from the max. note level by at most this amount to locate the max. peak
  82. maxDeltaDb: 1.5, # maximum db change between volume samples (changes greater than this will trigger resampling)
  83. samplesPerDb: 4, # count of samples per dB to resample ranges whose range is less than maxDeltaDb
  84. minSampleDistUs: 50, # minimum distance between sample points in microseconds
  85. auditionNoteN: 19, # count of notes to play for audition
  86. finalPulseListCacheFn: "/home/kevin/temp/final_pulse_list_cache.pickle",
  87. rmsAnalysisCacheFn: "/home/kevin/temp/rms_analysis_cache.pickle"
  88. },
  89. manualMinD: {
  90. 36: [2, 10],
  91. 48: [2, 10],
  92. 60: [2, 10],
  93. 72: [2, 10],
  94. 84: [2, 10]
  95. },
  96. manualAnchorPitchMinDbL: [ 36,48,72,84 ],
  97. manualAnchorPitchMaxDbL: [ 36,48,60,72,84 ],
  98. manualMinD_0: {
  99. 23: [2, 24],
  100. 24: [2, 18],
  101. 25: [2, 41],
  102. 26: [2, 26], #
  103. 27: [2, 35], # (36 is an outlier)
  104. 28: [2, 35], # /36 (resample?)
  105. 29: [2, 22], # /23 (resample?)
  106. 30: [2, 28], # /29
  107. 31: [2, 39], #
  108. 32: [2, 27], #
  109. 33: [2, 10], #
  110. 34: [2, 27], # (29 outlier)
  111. 35: [2, 15], #
  112. 36: [2, 16], # ngz: (0 32 36) (1 31 36)
  113. 37: [2, 18], #
  114. 38: [2, 33], #
  115. 39: [2, 18], #
  116. 40: [2, 6], # ngz: (0 25 41)
  117. 41: [2, 22], # ngz: (2 9 22)
  118. 42: [2, 11], #
  119. 43: [2, 7], #(8 outlier)], #
  120. 44: [2, 19],
  121. 45: [4, 7], # 5 sample traes
  122. 46: [2, 4],
  123. 47: [2, 11], # /12
  124. 48: [2, 27], # /28
  125. 49: [2, 12],
  126. 50: [2, 6],
  127. 51: [2, 14],
  128. 52: [2, 26],
  129. 53: [3, 24 ], # ngz at onset
  130. 54: [2, 21], # /22
  131. 55: [2, 10], # /11
  132. 56: [2, 5],
  133. 57: [2, 6],
  134. 58: [2, 11],
  135. 59: [2, 5],
  136. 60: [2, 13],
  137. 61: [4, 5],
  138. 62: [2, 7],
  139. 63: [2, 12],
  140. 64: [3, 33],
  141. 65: [2, 23],
  142. 66: [2, 36],
  143. 67: [2, 16],
  144. 68: [2, 1], # needs decreased start us
  145. 69: [1, 7],
  146. 70: [2, 34],
  147. 71: [2, 23],
  148. 72: [2, 14],
  149. 73: [2, 30],
  150. 74: [2, 26],
  151. 75: [2, 31],
  152. 76: [2, 20],
  153. 77: [2, 28],
  154. 78: [2, 28],
  155. 79: [2, 44],
  156. 80: [2, 25],
  157. 81: [2, 36],
  158. 82: [2, 51], # incorrect hold voltages (resample)
  159. 83: [2, 43],
  160. 84: [2, 38],
  161. 85: [2, 27],
  162. 86: [2, 43],
  163. 87: [2, 33],
  164. 88: [2, 42],
  165. 89: [3, 21], # ngz (3 15 19)
  166. 91: [2, 4], # bad samples (resample)
  167. 92: [2, 10],
  168. 93: [2, 42],
  169. 94: [2, 39],
  170. 95: [2, 19],
  171. 96: [2, 1], # needs decreaed start us ngz: (0 22 38)
  172. 97: [2, 51],
  173. 98: [2, 30],
  174. 99: [2, 41],
  175. 100: [2, 24],
  176. 101: [2, 39],
  177. },
  178. manualAnchorPitchMinDbL_0: [ 23, 27, 31, 34, 44, 51, 61, 70, 74, 81, 87, 93, 96, 101 ],
  179. manualAnchorPitchMaxDbL_0: [ 23, 32, 49, 57, 67, 76, 83, 93, 99, 101 ],
  180. calibrateArgs: {
  181. outDir: "~/temp/calib2",
  182. outLabel: "test_3",
  183. inDir: "~/temp/p_ac_3f",
  184. analysisD: {
  185. rmsWndMs: 300, # length of the RMS measurment window
  186. rmsHopMs: 30, # RMS measurement inter window distance
  187. dbLinRef: 0.01, # length of initial portion of signal to use to calculate the dB reference level
  188. harmCandN: 5, # count of harmonic candidates to locate during harmonic based RMS analysis
  189. harmN: 3, # count of harmonics to use to calculate harmonic based RMS analysis
  190. durDecayPct: 40 # percent drop in RMS to indicate the end of a note
  191. },
  192. noteOnDurMs: 500,
  193. noteOffDurMs: 500,
  194. #pitchL: [ 31, 33, 34, 35 ], # list of pitches
  195. #pitchL: [ 80,81,82 ], # 8
  196. pitchL: [ 40,41,42 ], # 12
  197. targetDbL: [ 13 ], # list of target db
  198. minMeasDurMs: 140, # minimum candidate note duration
  199. tolDbPct: 2.0, # tolerance as a percent of targetDb above/below used to form match db window
  200. maxPulseUs: 45000, # max. allowable pulse us
  201. minPulseUs: 8000, # min. allowable pulse us
  202. initPulseUs: 15000, # pulseUs for first note
  203. minMatchN: 3, # at least 3 candidate notes must be within tolDbPct to move on to a new targetDb
  204. maxAttemptN: 30, # give up if more than 20 candidate notes fail for a given targetDb
  205. dbSrcLabel: 'hm', # source of the db measurement 'td' (time-domain) or 'hm' (harmonic)
  206. holdDutyPctD: {
  207. 23: [[0, 40]],
  208. 24: [[0, 40]],
  209. 25: [[0, 40]],
  210. 26: [[0, 40]],
  211. 27: [[0, 40]],
  212. 28: [[0, 40]],
  213. 29: [[0, 40]],
  214. 30: [[0, 40]],
  215. 31: [[0, 40]],
  216. 32: [[0, 40]],
  217. 33: [[0, 40]],
  218. 34: [[0, 40]],
  219. 35: [[0, 40]],
  220. 36: [[0, 45]],
  221. 37: [[0, 40]],
  222. 38: [[0, 40]],
  223. 39: [[0, 40]],
  224. 40: [[0, 40]],
  225. 41: [[0, 40]],
  226. 42: [[0, 40]],
  227. 43: [[0, 40]],
  228. 44: [[0, 40]],
  229. 45: [[0, 40]],
  230. 46: [[0, 40]],
  231. 47: [[0, 40]],
  232. 48: [[0, 40]],
  233. 49: [[0, 40]],
  234. 50: [[0, 40]],
  235. 51: [[0, 40]],
  236. 52: [[0, 40]],
  237. 53: [[0, 40]],
  238. 54: [[0, 40]],
  239. 55: [[0, 40]],
  240. 56: [[0, 40]],
  241. 57: [[0, 40]],
  242. 58: [[0, 40]],
  243. 59: [[0, 40]],
  244. 60: [[0, 50]],
  245. 61: [[0, 43]],
  246. 62: [[0, 43]],
  247. 63: [[0, 43]],
  248. 64: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  249. 65: [[0, 99]],
  250. 66: [[0, 40]],
  251. 67: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  252. 68: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  253. 69: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  254. 70: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  255. 71: [[0, 40],[14000, 45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  256. 72: [[0, 45],[11000, 65] ],
  257. 73: [[0, 45],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  258. 74: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  259. 75: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  260. 76: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  261. 77: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  262. 78: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  263. 79: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  264. 80: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  265. 81: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  266. 82: [[0, 40],[14000,45],[15000,50],[16000,55],[17000,60],[18000,65],[19000,55]],
  267. 83: [[0, 42]],
  268. 84: [[0, 42],[10000,50],[11000,60]],
  269. 85: [[0, 42],[9000,45],[10000,50],[11000,60]],
  270. 86: [[0, 40]],
  271. 87: [[0, 40]],
  272. 88: [[0, 40]],
  273. 89: [[0, 40]],
  274. 91: [[0, 40]],
  275. 92: [[0, 40]],
  276. 93: [[0, 40]],
  277. 94: [[0, 40]],
  278. 95: [[0, 40]],
  279. 96: [[0, 40]],
  280. 97: [[0, 40]],
  281. 98: [[0, 40]],
  282. 99: [[0, 40]],
  283. 100: [[0, 40]],
  284. 101: [[0, 40]],
  285. 106: [[0, 40]]
  286. },
  287. # Final for Matt's piano
  288. holdDutyPct0D: {
  289. 23: [[0, 70]],
  290. 24: [[0, 75]],
  291. 25: [[0, 70]],
  292. 26: [[0, 65]],
  293. 27: [[0, 70]],
  294. 28: [[0, 70]],
  295. 29: [[0, 65]],
  296. 30: [[0, 65]],
  297. 31: [[0, 65]],
  298. 32: [[0, 60]],
  299. 33: [[0, 65]],
  300. 34: [[0, 65]],
  301. 35: [[0, 65]],
  302. 36: [[0, 65]],
  303. 37: [[0, 65]],
  304. 38: [[0, 60]],
  305. 39: [[0, 60]],
  306. 40: [[0, 55]],
  307. 41: [[0, 60]],
  308. 42: [[0, 60]],
  309. 43: [[0, 65]],
  310. 44: [[0, 60]],
  311. 45: [[0, 60]],
  312. 46: [[0, 60]],
  313. 47: [[0, 60]],
  314. 48: [[0, 70]],
  315. 49: [[0, 60]],
  316. 50: [[0, 50]],
  317. 51: [[0, 50]],
  318. 52: [[0, 55]],
  319. 53: [[0, 50]],
  320. 54: [[0, 50]],
  321. 55: [[0, 50], [22000, 55]],
  322. 56: [[0, 50]],
  323. 57: [[0, 50]],
  324. 58: [[0, 50]],
  325. 59: [[0, 60]],
  326. 60: [[0, 50]],
  327. 61: [[0, 50]],
  328. 62: [[0, 55]],
  329. 63: [[0, 50]],
  330. 64: [[0, 50]],
  331. 65: [[0, 50], [17000, 65]],
  332. 66: [[0, 53]],
  333. 67: [[0, 55]],
  334. 68: [[0, 53]],
  335. 69: [[0, 55]],
  336. 70: [[0, 50]],
  337. 71: [[0, 50]],
  338. 72: [[0, 60]],
  339. 73: [[0, 50]],
  340. 74: [[0, 60]],
  341. 75: [[0, 55]],
  342. 76: [[0, 70]],
  343. 77: [[0, 50], [15000, 60], [19000, 70]],
  344. 78: [[0, 60]],
  345. 79: [[0, 50], [15000, 60], [19000, 70]],
  346. 80: [[0, 45]],
  347. 81: [[0, 50], [15000, 70]],
  348. 82: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  349. 83: [[0, 50], [15000, 65]],
  350. 84: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  351. 85: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  352. 86: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  353. 87: [[0, 50], [14000, 60]],
  354. 88: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  355. 89: [[0, 50], [12500, 60], [14000, 65], [17000, 70]],
  356. 91: [[0, 40], [12500, 50], [14000, 60], [17000, 65]],
  357. 92: [[0, 40], [14000, 50]],
  358. 93: [[0, 40], [12500, 50], [14000, 60], [17000, 65]],
  359. 94: [[0, 40], [14000, 50]],
  360. 95: [[0, 40], [12500, 50], [14000, 60], [17000, 65]],
  361. 96: [[0, 40], [12500, 50], [14000, 60], [17000, 65]],
  362. 97: [[0, 40], [14000, 50]],
  363. 98: [[0, 50]],
  364. 99: [[0, 50]],
  365. 100: [[0, 50]],
  366. 101: [[0, 50]],
  367. 106: [[0, 50]]
  368. },
  369. },
  370. key_mapL: [
  371. { index: 0, board: 1, ch: 1, type: 'wB', midi: 21, class: 'A' },
  372. { index: 1, board: 1, ch: 2, type: 'Bl', midi: 22, class: 'A#' },
  373. { index: 2, board: 1, ch: 3, type: 'wF', midi: 23, class: 'B' },
  374. { index: 3, board: 1, ch: 4, type: 'wB', midi: 24, class: 'C' },
  375. { index: 4, board: 1, ch: 5, type: 'Bl', midi: 25, class: 'C#' },
  376. { index: 5, board: 1, ch: 6, type: 'wF', midi: 26, class: 'D' },
  377. { index: 6, board: 1, ch: 7, type: 'Bl', midi: 27, class: 'D#' },
  378. { index: 7, board: 1, ch: 8, type: 'wB', midi: 28, class: 'E' },
  379. { index: 8, board: 1, ch: 9, type: 'wF', midi: 29, class: 'F' },
  380. { index: 9, board: 1, ch: 10, type: 'Bl', midi: 30, class: 'F#' },
  381. { index: 10, board: 1, ch: 11, type: 'wB', midi: 31, class: 'G' },
  382. { index: 11, board: 2, ch: 1, type: 'Bl', midi: 32, class: 'G#' },
  383. { index: 12, board: 2, ch: 2, type: 'wF', midi: 33, class: 'A' },
  384. { index: 13, board: 2, ch: 3, type: 'Bl', midi: 34, class: 'A#' },
  385. { index: 14, board: 2, ch: 4, type: 'wB', midi: 35, class: 'B' },
  386. { index: 15, board: 2, ch: 5, type: 'wF', midi: 36, class: 'C' },
  387. { index: 16, board: 2, ch: 6, type: 'Bl', midi: 37, class: 'C#' },
  388. { index: 17, board: 2, ch: 7, type: 'wB', midi: 38, class: 'D' },
  389. { index: 18, board: 2, ch: 8, type: 'Bl', midi: 39, class: 'D#' },
  390. { index: 19, board: 2, ch: 9, type: 'wF', midi: 40, class: 'E' },
  391. { index: 20, board: 2, ch: 10, type: 'wB', midi: 41, class: 'F' },
  392. { index: 21, board: 2, ch: 11, type: 'Bl', midi: 42, class: 'F#' },
  393. { index: 22, board: 3, ch: 1, type: 'wF', midi: 43, class: 'G' },
  394. { index: 23, board: 3, ch: 2, type: 'Bl', midi: 44, class: 'G#' },
  395. { index: 24, board: 3, ch: 3, type: 'wB', midi: 45, class: 'A' },
  396. { index: 25, board: 3, ch: 4, type: 'Bl', midi: 46, class: 'A#' },
  397. { index: 26, board: 3, ch: 5, type: 'wF', midi: 47, class: 'B' },
  398. { index: 27, board: 3, ch: 6, type: 'wB', midi: 48, class: 'C' },
  399. { index: 28, board: 3, ch: 7, type: 'Bl', midi: 49, class: 'C#' },
  400. { index: 29, board: 3, ch: 8, type: 'wF', midi: 50, class: 'D' },
  401. { index: 30, board: 3, ch: 9, type: 'Bl', midi: 51, class: 'D#' },
  402. { index: 31, board: 3, ch: 10, type: 'wB', midi: 52, class: 'E' },
  403. { index: 32, board: 3, ch: 11, type: 'wF', midi: 53, class: 'F' },
  404. { index: 33, board: 4, ch: 1, type: 'Bl', midi: 54, class: 'F#' },
  405. { index: 34, board: 4, ch: 2, type: 'wB', midi: 55, class: 'G' },
  406. { index: 35, board: 4, ch: 3, type: 'Bl', midi: 56, class: 'G#' },
  407. { index: 36, board: 4, ch: 4, type: 'wF', midi: 57, class: 'A' },
  408. { index: 37, board: 4, ch: 5, type: 'Bl', midi: 58, class: 'A#' },
  409. { index: 38, board: 4, ch: 6, type: 'wB', midi: 59, class: 'B' },
  410. { index: 39, board: 4, ch: 7, type: 'wF', midi: 60, class: 'C' },
  411. { index: 40, board: 4, ch: 8, type: 'Bl', midi: 61, class: 'C#' },
  412. { index: 41, board: 4, ch: 9, type: 'wB', midi: 62, class: 'D' },
  413. { index: 42, board: 4, ch: 10, type: 'Bl', midi: 63, class: 'D#' },
  414. { index: 43, board: 4, ch: 11, type: 'wF', midi: 64, class: 'E' },
  415. { index: 44, board: 5, ch: 1, type: 'wB', midi: 65, class: 'F' },
  416. { index: 45, board: 5, ch: 2, type: 'Bl', midi: 66, class: 'F#' },
  417. { index: 46, board: 5, ch: 3, type: 'wF', midi: 67, class: 'G' },
  418. { index: 47, board: 5, ch: 4, type: 'Bl', midi: 68, class: 'G#' },
  419. { index: 48, board: 5, ch: 5, type: 'wB', midi: 69, class: 'A' },
  420. { index: 49, board: 5, ch: 6, type: 'Bl', midi: 70, class: 'A#' },
  421. { index: 50, board: 5, ch: 7, type: 'wF', midi: 71, class: 'B' },
  422. { index: 51, board: 5, ch: 8, type: 'wB', midi: 72, class: 'C' },
  423. { index: 52, board: 5, ch: 9, type: 'Bl', midi: 73, class: 'C#' },
  424. { index: 53, board: 5, ch: 10, type: 'wF', midi: 74, class: 'D' },
  425. { index: 54, board: 5, ch: 11, type: 'Bl', midi: 75, class: 'D#' },
  426. { index: 55, board: 6, ch: 1, type: 'wB', midi: 76, class: 'E' },
  427. { index: 56, board: 6, ch: 2, type: 'wF', midi: 77, class: 'F' },
  428. { index: 57, board: 6, ch: 3, type: 'Bl', midi: 78, class: 'F#' },
  429. { index: 58, board: 6, ch: 4, type: 'wB', midi: 79, class: 'G' },
  430. { index: 59, board: 6, ch: 5, type: 'Bl', midi: 80, class: 'G#' },
  431. { index: 60, board: 6, ch: 6, type: 'wF', midi: 81, class: 'A' },
  432. { index: 61, board: 6, ch: 7, type: 'Bl', midi: 82, class: 'A#' },
  433. { index: 62, board: 6, ch: 8, type: 'wB', midi: 83, class: 'B' },
  434. { index: 63, board: 6, ch: 9, type: 'wF', midi: 84, class: 'C' },
  435. { index: 64, board: 6, ch: 10, type: 'Bl', midi: 85, class: 'C#' },
  436. { index: 65, board: 6, ch: 11, type: 'wB', midi: 86, class: 'D' },
  437. { index: 66, board: 6, ch: 1, type: 'Bl', midi: 87, class: 'D#' },
  438. { index: 67, board: 6, ch: 2, type: 'wF', midi: 88, class: 'E' },
  439. { index: 68, board: 6, ch: 3, type: 'wB', midi: 89, class: 'F' },
  440. { index: 69, board: 6, ch: 4, type: 'Bl', midi: 90, class: 'F#' },
  441. { index: 70, board: 6, ch: 5, type: 'wF', midi: 91, class: 'G' },
  442. { index: 71, board: 6, ch: 6, type: 'Bl', midi: 92, class: 'G#' },
  443. { index: 72, board: 6, ch: 7, type: 'wB', midi: 93, class: 'A' },
  444. { index: 73, board: 6, ch: 8, type: 'Bl', midi: 94, class: 'A#' },
  445. { index: 74, board: 6, ch: 9, type: 'wF', midi: 95, class: 'B' },
  446. { index: 75, board: 6, ch: 10, type: 'wB', midi: 96, class: 'C' },
  447. { index: 76, board: 6, ch: 11, type: 'Bl', midi: 97, class: 'C#' },
  448. { index: 77, board: 7, ch: 1, type: 'wF', midi: 98, class: 'D' },
  449. { index: 78, board: 7, ch: 2, type: 'Bl', midi: 99, class: 'D#' },
  450. { index: 79, board: 7, ch: 3, type: 'wB', midi: 100, class: 'E' },
  451. { index: 80, board: 7, ch: 4, type: 'wF', midi: 101, class: 'F' },
  452. { index: 81, board: 7, ch: 5, type: 'Bl', midi: 102, class: 'F#' },
  453. { index: 82, board: 7, ch: 6, type: 'wB', midi: 103, class: 'G' },
  454. { index: 83, board: 7, ch: 7, type: 'Bl', midi: 104, class: 'G#' },
  455. { index: 84, board: 7, ch: 8, type: 'wF', midi: 105, class: 'A' },
  456. { index: 85, board: 7, ch: 9, type: 'Bl', midi: 106, class: 'A#' },
  457. { index: 86, board: 7, ch: 10, type: 'wB', midi: 107, class: 'B' },
  458. { index: 87, board: 7, ch: 11, type: 'wF', midi: 108, class: 'C' },
  459. ]
  460. }
  461. }