Programmable real-time audio signal processing application
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. CONTENTS:
  2. 1) TODO List
  3. 2) OSX Install Notes
  4. SPAT LAB SETUP:
  5. + 1. Stereo
  6. a. TotalMix - select 'diff. stereo' snapshot
  7. b. mixer: Recall preset 91 ('stereo diff')
  8. + 2. Direct - 24 channels - each channel goes in and out on same number.
  9. a. TotalMix - select 'DTS_24ch'
  10. b. mixer: Recall preset 96 ('24ch firecac ufx')
  11. STRATEGY:
  12. + implement highly parallel version - which can take advantage of multiple processors
  13. to do more - acoustic pitch tracking, source separation based fades
  14. TODO:
  15. + When a cmMsgList item is selected it should send out the selected index
  16. after the individual data items rather than before them - this way the index
  17. can be used as a definitive signal to perform some action on the previously
  18. transmitted data items.
  19. + cmJson and cmLex should report the name of the file when with syntax error messages.
  20. + Use CSV for mod score file format (to eliminate need for labels)
  21. + Autoload of default pgm cfg, program, enable audio, sequence, score location.
  22. + (done) Circuit switcher patch.
  23. + Review and document the app threading and locking during audio file loading.
  24. + Remove old performance evaluation code from cmScore.
  25. + All programs should be able to reload without crashing via enabling/disabling audio.
  26. + (in new version) Select and save audio devices.
  27. + (done) Mac Conversion
  28. + (done) Live MIDI - to test audio/MIDI delay.
  29. + (done) As threshold increases overall volume decreases - add a compensation algorithm.
  30. + There are unintialized variable warnings on the release build.
  31. + Add preset delete.
  32. + All uses of va_copy() should have a complimentary va_end()
  33. + The list boxes do not show the currently selected item.
  34. + (don)MIDI note messages are sent but do not trigger notes on OSX.
  35. *** Testing Notes:
  36. + Equipment List:
  37. Four Microphones: Four performance/ Four recording
  38. 2 inside 2 inside
  39. 2 overhead 2 overhead
  40. 4 powered speakers
  41. 2 Mixers (1 performance 1 recording)
  42. Performance Computer (harpo)/ Audio Interface (delta1010) / MIDI interface (Fastlane)
  43. Recording Computer (crel) / Audio Interface (delta 1010) / MIDI interface (???)
  44. Sensor Strip
  45. + Performance Setup
  46. +------ +
  47. Mic0 ----------->| |
  48. Mic1 ----------->| | sends +-----+ +-------+
  49. Mic2 ----------->| |------->| A/D | | | +------+ +--------+
  50. Mic3 ----------->| Mixer |------->| |------>| harpo |<-------| MIDI |<-----| sensor |
  51. aux | | | | | | +------+ | strip |
  52. Spkr0 <----------| |<-------| |<------| | +--------+
  53. Spkr1 <----------| |<-------| | +------ +
  54. main | | | |
  55. Spkr2 <----------| |<-------| D/A |
  56. Spkr3 <----------| |<-------| |
  57. +-------+ +-----+
  58. + Software Development
  59. 1) Create Score File
  60. 2) Create Recording Program (test with long MIDI playback generating audio - look for drift)
  61. Record the index of each MIDI event at it's location in an audio channel.
  62. 3) The ability for the measurements to be called at the correct time must be built in.
  63. (or alternatively to use stored effects).
  64. 4) Effects applied to the playback fragments.
  65. 5) Allow all variables and patch connections to be set from the scMod script and have
  66. multiple scripts with varynig effects setups.
  67. 6) All 4 input mic's should go through the computer in order that they remain in phase
  68. (even though the overhead mics will not be used in the effect).
  69. 7) Add comb filters tuned according to the current MIDI notes as an additional effect.
  70. 8) Add EQ output stage.
  71. 9) Compressor on input (???).
  72. 10) The dry signal should be able to be routed to seperate output channels - around the compressor.
  73. 11) CROSSFADE BUG.
  74. 12) Create a mode in scMod which increments values based on an onset detector. So that
  75. changes only happen on attacks. This still doesn't help if the pedal is down (or
  76. if notes are sustained) but otherwise might be a better way to ramp parameters.
  77. 13) When scanning past ramping variables in scMod the end value should be
  78. taken as the next variable(???) - this is not necessarily correct
  79. because one never knows where a timed change may end - maybe ramped
  80. variables should include a 'skip value' giving the next ambient value
  81. for the ramped variable - experiment with this to figure out what works.
  82. + Experiments:
  83. 1) Speaker placement and live/electronics mix.
  84. 2) Sliver mix level
  85. 3) Try varying degree's of effects
  86. *** 11/19
  87. + The recd/play fade should be able to trigger from a capture note as well as
  88. playback note. An offset might also be useful.
  89. (Should be a default fade for each fragment - keyed to the input. This
  90. will be the fade that will occur when
  91. + Allow setting fade time in the score.
  92. + Allow setting fade rate based on 1.0 to 0.0 from fade point to end point.
  93. + Allow for multiple fades markers per fragment. (what does this mean?)
  94. + Write code to ignore playback when the score follower is not stable -
  95. or to throw out fragments where there is a mistake.
  96. + At the end of each fragment recording the fragment should be truncated by the look-ahead time
  97. to avoid capturing the attack of the marked note.
  98. + FX on fragments.
  99. + MUST be able to record synchronized audio and MIDI during test performance.
  100. + Part 2 data analysis: analyze the order of notes in counter rhythms.
  101. *** 11/1
  102. + Change the wavetable to read stereo files or add a second wavetable to play the other channel.
  103. + The console window is not always updating from the bottom.
  104. + The 'Dump' button results are not going to the console window.
  105. + Put dry signal into separate output channels.
  106. + Add 'adaptive' mode parameters to scale/range mappings.
  107. + The 'meas'->'parameter' mappings should changable from scMod (mod0.js)
  108. + The 'adaptive' mode parameters (e.g. offset and invert) need to be connected in the patch.
  109. + Create a mode in scMod which increments values based on an onset detector. So that
  110. changes only happen on attacks. This still doesn't help if the pedal is down (or
  111. if notes are sustained) but otherwise might be a better way to ramp parameters.
  112. + Mark all notes in the score according to how well they would act as places to transition.
  113. Notes held while the pedal is down would not be good places to transition.
  114. These indicators would then be used to determine where a section change can occur
  115. when the actual section change is missed.
  116. + (done) All score_loc's and event indexes in meas0.js that beginning with
  117. score location 743 must be decremented by two. (e.g. loc 743 becomes 741 ...)
  118. (score_loc_1.txt is now the correct score file)
  119. + When scanning past ramping variables in scMod the end value should be
  120. taken as the next variable(???) - this is not necessarily correct
  121. because one never knows where a timed change may end - maybe ramped
  122. variables should include a 'skip value' giving the next ambient value
  123. for the ramped variable - experiment with this to figure out what works.
  124. *** 10/17
  125. Select bar 129.
  126. Start on F5 before 129.
  127. Score follower jumps to loc. 978 then backs up to 973.
  128. *** 9/27
  129. * Implement live recording for use in part 2.
  130. * Implement a delay between when a new section is set to trigger and when
  131. it actually does. This might allow transitions to be set up prior to when they are heard.
  132. * OS-X version crashes when the printf("PROCSET ...) is removed from _cmScProcSets().
  133. * Add ability to set mappings and perf. measure settings to scMod.
  134. * The scMod should play through all changes up to the cur starting location so that
  135. we can mimic the state of playing the piece through but allow starting from any location.
  136. * Experiment with changing settings using the scMod ramping functions.
  137. * Make a source separation based fade using an filter/inverse filter based on the
  138. spectrum prior to the cross-fade. As an extra feature notice the state of the pedal
  139. and decay appropriately.
  140. * The electronic score needs the ability to specify that the output is sent to the audible
  141. cross-fade channel rather than the inactive channel.
  142. * Add a score mode that performs some action (e.g. incr/decr) on each incoming score follower
  143. event.
  144. * In AvailCh what happens when no available channels are found - this may be the cause
  145. of the cross-fade cut-out problem.
  146. * Add eq stage to output.
  147. * Setting the upper slope to a negative value is effective.
  148. * Demo Material: Seq 8 Mark 204 (1024-4 2048-4) Fade 10ms Cost->Threshold.
  149. - recd7 Mark 151
  150. - recd8 Mark 145 - same settings a previous take.
  151. - (recd9) Mark 145 - w/ changing xfade switch to mode 4 at 38
  152. - recd10 Mark 145 - same w/ no mode change
  153. - recd11 Mark 145 - a. 3 different takes w/ score constant - no perf. parameters used - fixed threshold=65
  154. - recd12 Mark 148 b.(same settings as recd9)
  155. - recd13 Mark 151 c.
  156. - recd14 Mark 161 Section 40 - fixed changes see mod0.js for note
  157. - Seq 6 Mark 145 M-92 (38,39,39a) (recd16) (recd17) (recd18) (recd19)
  158. - Seq 7 Mark 167 M-100
  159. *** 8/13
  160. * Cross-fade was cutting out during demo.
  161. * Missing takes between seq 7 and seq 8.
  162. * The MIDI is mis-aligned against the audio.
  163. * Are cost / tempo working? ... test changing mode.
  164. * Add an automatic volume adjustment to prevent parameter changes from causing large volume changes.
  165. * What can we actually do between after a MIDI note is received? Is it already too late to
  166. send parameters w/o affecting the attack of the note.
  167. * Live Test material
  168. Part 1: Meas:76 - (one measure) to get measurments for later sections
  169. Part 1: Meas:94 (sect 38 (Seq 6)) through Meas:136 (include 136 stop at 137).
  170. Part 2: ("/Users/kevin/temp/piano score part 2 draft 1 master m 232 - 241 1st 2 bts.sib")
  171. The downbeat of part two aligns with the 3rd beat (in 4/4) of 122 in the first part.
  172. Ends on measure 131 at end of beat 3.
  173. MISSING MIDI for measures 114:126
  174. *** July 10
  175. ** (done) Make separate mappings and scale/range controls for left and right.
  176. ** Add EQ output stage.
  177. ** Work out the speaker setup.
  178. ** Add capture/playback. Analyze notes on capture and do not play if there are
  179. any wrong notes. (Skipped notes however are acceptable.)
  180. **
  181. ** When a section transition is occurs late - (e.g. due to dropped notes) do not apply
  182. the transformation all at once - instead either ramp it in or step it in on subsequent
  183. attacks. Section transitions which are positively identified are intended to have
  184. dramatic changes so applying the updated parameters immediately is acceptable - but
  185. when the parameters are changed mid-section they should be much applied subtely.
  186. ** (done) Build a database of measurements and setup the program to be able to
  187. apply a given measurement at it's assigned section.
  188. ** Redevelop spectral distortion algorithm to use a spline as the transform.
  189. ** use Log frequency frequency transform instead of FFT.
  190. ** Allow for a continous window size via zero padding.
  191. ** Add a 'write' preset file button - so the preset file can be saved prior to next crash.
  192. ** measurement values can generate MAX_DBL - be sure that are not being sent through to the audio algorithm.
  193. (see ln:965 cmDspKr.c for a hack to fix this)
  194. ** add invert to scale/range to cause output to go in opposite direction.
  195. ** non-grace eveneess are used to generate a measurement value from previous tempo calibration section.
  196. (non-grace evenness notes therefore have two scores: 'evenness' and 'overall-duration').
  197. ** note that the default setting for dyn and even.
  198. ** add dyn,even,tempo,cost number boxes to allow artificial setting of these parameters.
  199. add dyn,even,tempo,cost as modulator variables to allow them to be set from the modulator
  200. With these additions we can simulate apply measurements at the 'application' section.
  201. ** add begining and ending measure numbers to 'seq' labels
  202. ** Gain compensation for mode 4.
  203. ** Do IFFT using cos()^c + i * sin()^c - these bases are orthognal but cause harmonic distortion.
  204. To be efficient this might involve writing an FFT function.
  205. // May 22
  206. ** Crashers (Should be tested but are probably already fixed following score follower debugging.)
  207. Seq 2 m24 Mark 36 & 38
  208. Seq 4: Mark 115
  209. Seq 4: m76-79 Mark 129 (W/ meas: even & dyn -> thresh change min Thresh to 40) - use 4th seq w/ b1
  210. Seq 6: m92 Mark 143
  211. Seq 7: m103 Mark 173
  212. Seq 7: Mark 172 Meas 103 - always crashes on playback.
  213. Seq 4: Mark 76 Meas 40 - crash!
  214. Seq 2: First mark meas 23
  215. Crash seems to happen in cmProc4.c: _cmScMatchInitMtx() ln:1311.
  216. It looks like a memory overrun. Looks like the first line is wrong
  217. shouldn't:
  218. if( rn >p->mrn && cn > p->mcn )
  219. be
  220. if(rn*cn > p->mrn*p->mcn)
  221. BUGS:
  222. // Apr 20
  223. The tempo measurement can produce invalid values. Set score to 22 then play Mark 38.
  224. First tempo measurement is a non-sense value - probably produced by an div by zero.
  225. Also: Mark 8, Meas 10.
  226. Crash on playing Mark 37.
  227. Click on list control outside below list item - crash!
  228. Select Mark 171 (Seq 7) Section 43, m103 crash
  229. // Feb 27
  230. + Audio seems to preceded MIDI by around 250ms this probably arises
  231. from a delay that was inserted by 'mas'. Can the delay be removed?
  232. // Feb 25
  233. + Fix the audio file input/output ports
  234. //
  235. // Feb 6 & 7
  236. //
  237. + Performed notes which arrive which about 50ms could be
  238. considered chords. Extra notes notes which were not part of
  239. the chord are probably common and should be discounted during
  240. the cost analysis.
  241. + (done) Add alignment cost as a 4th variable along with dyn,even,tempo.
  242. + (done) In the score print out (score_loc.txt) Section 2 is starting on Bar 5
  243. when it should start inside Bar 7.
  244. + In Take 1 the 2nd dynamics set is not triggered.
  245. + In Take 3 Eveness 2 the C2 and F#4 are NOT missing althrough they are in the
  246. evalation. Also E7 which ends that set is not marked with an 'e'.
  247. + It is possible to have even-non-grace sets where the note rythm value's are not
  248. all the same (e.g. bar 20 )
  249. + User soft-thresholds for the dynamics categories.
  250. + Set 39 even measure 25 shows the first note as G#2 when it should be C#1
  251. + Missig MIDI note sounded:
  252. C1 score-loc:132
  253. A#2 140
  254. A5 173
  255. C#2 195 Marker 36
  256. E5,G33,A#2,C#1 212-218 Marker 36
  257. E3 185 Marker 37
  258. F5,C#4,G#5 986 Marker 204
  259. -------------------------------------------------------------------------------
  260. OSX - Install Notes
  261. -------------------------------------------------------------------------------
  262. 1. Install macports
  263. 2. Install git-core (sudo port install git-core)
  264. 3. sudo port install fftw-3
  265. 4. sudo port install fftw-3--single
  266. 5. port select --list gcc (which gcc is active)
  267. 6. sudo port install gcc47
  268. 7. sudo port --set gcc mp-gcc47
  269. 8. sudo port install fltk
  270. 9. sudo port install xorg-libX11
  271. 10.sudo port install git-core
  272. 11.sudo port install emacs +x11
  273. 10 install ~/Library/Preferences/org.larke.kc.txt (is this required?)
  274. 11 create ~/Library/Preferences/kc
  275. 12 Install ~/Library/Preferences/time_line.js, time_line_preset.js, time_line_preset.csv