Programmable real-time audio signal processing application
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.

notes.txt 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  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. =============================================================================
  12. Equipment List:
  13. 1) Two DPA 4011 cardioid mic's.
  14. 2) Two boom mic. stands.
  15. 3) FMR Audio RNP8380 pre-amp.
  16. 4) Presonus Audiobox 181VLS.
  17. 5) Mackie 1604 or equivalent mixer.
  18. 6) One MIDI cable (15-20 feet)
  19. 7) Four 25 foot power extension cables.
  20. 8) Two power strips.
  21. 9) Eight short (3-4 ft) balanced 1/4" cables.
  22. 10) 8 (25 ft) XLR mic cables.
  23. 11) 4 balanced 1/4" to male XLR cables (10 ft)
  24. 12) 2 balanced 1/4" to female XLR cables (10 ft)
  25. 13) One set of the best headphones you can give me.
  26. 14) Diskclavier remote control,power supply, and manual.
  27. 0) Contact Mics
  28. 1) MIDI interface and USB
  29. 2) MIDI cable
  30. 3) MIDI barrel adapter
  31. 4) Speakers
  32. 5) Speaker power cables
  33. 6) Tape for contact mics
  34. 7) Scissors for contact mics
  35. =============================================================================
  36. CHANGES TO SIMULATE MODE TO ALLOW MIDI FILE PLAYER TO DRIVE SCORE
  37. FOLLOWER DIRECTLY RATHER THAN FEEDING SCORE FOLLOWER FROM MIDI INPUT PORT:
  38. CHANGE:
  39. LINE 1150 cmDspSysInstallCb(h, siRt, "f-out-1", sfp, "smpidx",NULL );
  40. 1154 cmDspSysInstallCb(h, d0Rt, "f-out-1", sfp, "d0", NULL );
  41. 1160 cmDspSysInstallCb(h, d1Rt, "f-out-1", sfp, "d1", NULL );
  42. 1166 cmDspSysInstallCb(h, stRt, "f-out-1", sfp, "status",NULL );
  43. BACK TO:
  44. cmDspSysInstallCb(h, siRt, "f-out-0", sfp, "smpidx",NULL );
  45. cmDspSysInstallCb(h, d0Rt, "f-out-0", sfp, "d0", NULL );
  46. cmDspSysInstallCb(h, d1Rt, "f-out-0", sfp, "d1", NULL );
  47. cmDspSysInstallCb(h, stRt, "f-out-0", sfp, "status",NULL );
  48. =============================================================================
  49. Session Notes 12/12/14
  50. 1. Write a tool to create multiple MIDI preformances of the piece.
  51. a) Map each segment to the score using the score follower.
  52. b) Where parts overlap allow interactive selection of which part should be selected.
  53. c) Where parts are missing - insert notes from the score.
  54. d) Display the pedal and allow it to be edited.
  55. e) Allow parameter changes to be assigned to performance locations.
  56. Session Notes 11/08/14
  57. 1. 127 dynamic level values are not adequate.
  58. we loose quiet notes. the new Steinway instr. should have more velocity bits.
  59. 2. Display the next target score location of cmScModulator() so that it is clear
  60. that cmScoreModulator() is waiting for a score location in the expected place.
  61. Adding a button to dump the cmScModulator() score might also be useful.
  62. 3. JSON parser errors are being sent to the terminal output not the console
  63. output - so they are not easy to not notice.
  64. 4. We need transitsions
  65. We need to be able to audtion presets faster
  66. We need to insert missing pedal information.
  67. 5. Build a complete MIDI version of the piece so that long sections can be run.
  68. Session Notes: 10/18/14
  69. 1) Contact and air mics ogain all set to 1.0
  70. Sometimes igain on air mics reduced to control feedback.
  71. Speakers are 10 ft in front of piano
  72. AudioBox Gains all at 10 oclock.
  73. FMR Preamp 2nd notch on air mics
  74. Mixer 2.5 kHz 10 oclock, 80 Hz 9 oclock.
  75. Mixer in gains 11 oclock w/ 75 Hz low cut engaged
  76. 2) Need input Eq for contact mic's. LP,BP,HP with adjustable xover Fc and Gain.
  77. 3) Preset G works best. With 'offset' used to control radicalization between 20 and 80.
  78. 4) Add a control cmSpecDist() to interpolate between the input and output
  79. spectrum. This would allow a smooth transition between transformed
  80. and untransformed signal.
  81. The interpolation can be made to be frequency dependent. This could
  82. also be used to counter the bass boost which the transform tends
  83. to produce.
  84. 5) Add 'offset' as a modulator variable.
  85. 6) Are the dynamic modulator parameter controls working: line, sline
  86. 7) Many of the modulator file labels are redundant - can they be left out?
  87. (When modulator file values are missing they should default to their last set value).
  88. 8) When the score follower triggers a change the change seems to come
  89. before the Disklavier note sounds due to Disklavier system latency.
  90. Add a delay to the input of scMod to compensate for this delay.
  91. 9) The scMod data file would be easier to work with if it was in columnar form.
  92. Session Notes: 9/28/14
  93. 1) Problems with feedback were mitigated by brining down the input gain.
  94. In generate the input/output gain were set to:
  95. In Gain: 0.7 0.2
  96. Out Gain: 2.0 2.0
  97. 2) Turning the piano away from the microphones also reduced feedback; probably
  98. due to the fact that the piano lid sheilds the mic's from direct path
  99. from the speakers.
  100. 3) Increasing the threshold and and use of mode 4 (Bump Mode) produced the
  101. best transformations. See Preset G in mod_44_45.js
  102. 4) Input signal conditioning needs to be added to keep the piano signal
  103. in the effective range of the transform.
  104. 5) The Sine Tracking feedback controller is in an uncertain state.
  105. a. The attenThresh setting range needs to be verified.
  106. b. The scoring function was changed and then not verified.
  107. c. The algorithm which compares the trajectory of a given harmonic
  108. to the trajectory of the overall sound needs to be writen.
  109. Harmonics that are increasing relative the overall envelope
  110. should be attenuated.
  111. 6) A noise gate might help the reberberation feedback problem (i.e.
  112. the dense wash of sound with tends to build with time)
  113. 7) The transform algorithm needs to be developed further to increase
  114. it's reliability and range of effect.
  115. 8) Changing window length from the score didn't seem to be working.
  116. Session Notes: 8/24/14
  117. 0) Investigate using omni mic. in front of speakers to feed input to cmFrqTrk.
  118. 1) Feedback from Mark 178, m144, Preset C.
  119. Session Notes: 5/24/14
  120. 1) Move mic's back from the Disklavier to decrease damper noise.
  121. 2) The head phone signal sounds correct.
  122. 3) The the L410 computer is running out of time in release mode.
  123. 4) Better quality speakers are required.
  124. 5) Build a spectrum analyzer and bank of notch filters or graphic EQ to deal with feedback.
  125. 6) The DPA 4011 mics and FMR Audio RNP8380 preamp work well.
  126. 7) Whenever the speaker signal gets to the point where the transform can be heard
  127. the feedback begins to occur.
  128. Session Notes: 1/14/14
  129. 1) The non-grace evenness notes should include a tempo quality evaluation
  130. based on using the 'tfrac' values from column S of the score.
  131. 2) Sliver fade outs are currently tied to the reat-time performance not the captured performance.
  132. In the event that the score follower is lost after beginning a sliver playback
  133. and therefore misses the programmed fade out times begin fading out the
  134. sliver after the attack of the last captured note. This means that
  135. the time location of the captured notes must be accurately indicated
  136. in the sliver.
  137. 3) Allow fades to be tied to the capture notes - this is easy if 2) is done first.
  138. LANGUAGE NOTES:
  139. The primary goal of the language is to initialize a dataflow system.
  140. Sub-goals:
  141. 1) Avoid describing domain specific computation in the language. As much as possible constrain the
  142. language to describe initialization tasks (e.g. object allocation, object connection, initialization
  143. parameters, preset grouping, thread/process allocation, UI layout, ...)
  144. 2) Network Distrubution
  145. 3) UI Layout
  146. Runtime:
  147. + Extensible data-object system.
  148. + Library organization (platform independent UI description, application objects, app-independent objects, vector library)
  149. - Platform independent UI description is a protocol for describing a UI object and a runtime protocol
  150. for communitcating with the UI which is independent of the UI implementation itself. The UI should be
  151. implementable in FLTK, or Javascript. The UI will always run in separate thread and may run in a
  152. separate process.
  153. - Application objects are plug-ins which follow a similar design to the cmDspProc() objects.
  154. + xs
  155. NEW DESIGN NOTES:
  156. + The current designs fundamental weakness is that it uses callbacks to communicate where sequential program
  157. flow would produce a more comprehensible program.
  158. + Dataflow is a natural way to express DSP programs but if it is implemented in a textual, rather than
  159. graphical language, then their are some design princles that must be followed in order
  160. to produce comprehensible programs.
  161. 1) Limit the number of connections as much as possible.
  162. - There are many simple UI->param connections - these should be made automatically and UI
  163. objects should not have to be explicitely created - they should be created by the runtime
  164. environment.
  165. - If multiple pieces of data are part of a single message then they should be sent as a unit
  166. rather than separately. This decreases the number of connections and also removes timing
  167. dependencies - where the application programmer has to know the order of transmission of the
  168. individual pieces. (e.g. MIDI messages always contain {status,d0,d1} rather than having to
  169. send d0 and d1 followed by status to indicate the end of the message {status,d0,d1} should
  170. be sent as a single record.
  171. 2) Eliminate as many event ordering issues as possible
  172. See the example in 1).
  173. 3) Alllow the connections between objects to be made as part of the object allocation.
  174. 4) Allow subprograms to be made. This decreases the complexity of the programs and because
  175. it allows the programs to be organized hierarchically. It also allows the subprograms to
  176. be tested idenpendently.
  177. 5) A natural way to express object multiplicity is required. (e.g. multiple channels).
  178. This leads to a way to naturally create parallel/fan-in/fan-out connections.
  179. + One way to solve some of the problems of the current program would be to add debugging tools.
  180. - Generate dataflow diagrams that show execution order and the order of connections.
  181. The actual sending order of the outputs is not accessible to a static network analyzer because it is
  182. implementation dependent.
  183. - Generate reports of network activity that show the timed order of events.
  184. + The audio system (cmAudioSys) needs to be able to support multiple parallel DSP chains in separate threads.
  185. + UI Related Issues:
  186. - Automatic UI's should be generated by scanning the objects parameters.
  187. - Custom UI's should be created by explicitily naming object variables along with layout info.
  188. + Processors should be able to contain their own processing chains - embeddding processors should be possible.
  189. This naturally leads to a tree address space. (e.g. fx.filter.param1)
  190. + Communication between threads should not necessarily require serialization.
  191. - Use a blackboard approach where object values are read/written from a blackboard. Objects on the same
  192. thread use the same physical blackboard. Blackboards on remote processes stream data in the background.
  193. - This scheme may require double buffering of complex objects to prevent accessing invalid data states.
  194. + Objects that send multiple valued messages should use 'record' based data so that only one connection
  195. is necessary.
  196. STRATEGY:
  197. + implement highly parallel version - which can take advantage of multiple processors
  198. to do more - acoustic pitch tracking, source separation based fades
  199. TODO:
  200. + When a cmMsgList item is selected it should send out the selected index
  201. after the individual data items rather than before them - this way the index
  202. can be used as a definitive signal to perform some action on the previously
  203. transmitted data items.
  204. + cmJson and cmLex should report the name of the file when with syntax error messages.
  205. + Use CSV for mod score file format (to eliminate need for labels)
  206. + Autoload of default pgm cfg, program, enable audio, sequence, score location.
  207. + (done) Circuit switcher patch.
  208. + Review and document the app threading and locking during audio file loading.
  209. + Remove old performance evaluation code from cmScore.
  210. + All programs should be able to reload without crashing via enabling/disabling audio.
  211. + (in new version) Select and save audio devices.
  212. + (done) Mac Conversion
  213. + (done) Live MIDI - to test audio/MIDI delay.
  214. + (done) As threshold increases overall volume decreases - add a compensation algorithm.
  215. + There are unintialized variable warnings on the release build.
  216. + Add preset delete.
  217. + All uses of va_copy() should have a complimentary va_end()
  218. + The list boxes do not show the currently selected item.
  219. + (done)MIDI note messages are sent but do not trigger notes on OSX.
  220. *** Usage Notes
  221. live - Disconnects WT cmd input (WT will not receive an 'on' msg)
  222. Disconnects TL reset input (TL will not receive a 'reset' msg)
  223. Disconnects MFP sel input (MPF will not receive an 'on' msg)
  224. Switches audio input to KR from WT to AIN.
  225. Turn the 'meas' checkbox 'on'.
  226. simulate - Turn the 'audio in' checkbox 'on'.
  227. Switch MFP output from SF to Nano.
  228. (SF MIDI input then comes from the MIDI port.)
  229. audio in - Switch audio input to KR from WT to AIN.
  230. meas - Instruct the SF to generate measurement outputs for the active meas. unit.
  231. Otherwise the measurements must be loaded from the recorded measurment list.
  232. print - Print a report from the SF.
  233. quiet - Turn off SF output.
  234. LA Secs - Fragment recd/play unit look-ahead time in seconds.
  235. Fade DbpSec - Framgent recd/play unit fade out time
  236. (time to fade to 0 following a fade msg)
  237. *** Cross-fade Notes
  238. Cross-fades are initiated by sending any msg to the 'AvailCh.trig' input.
  239. The 'AvailCh' object then toggles the parameter router channels and xfader gates.
  240. Only after this should the new parameter values be transmitted either from
  241. the 'ActiveMeas' object (through the scale range chains) or directly from the
  242. 'ScMod' object.
  243. Sending parameter values prior to triggering the 'AvailCh' will result in the
  244. parameters being sent to the currently active 'Kr'. This will result in two
  245. possibly unintended effects:
  246. 1) The effect of the parameter will be heard immediately - possibly resulting in distortion.
  247. 2) If a subsequent trigger is sent to 'AvailCh' the parameters will be routed to
  248. the fade-out (current) channel rather than the fade-in (next) channel.
  249. **** Live Test Score
  250. + Line 1048 has a red G#5 immediiately following another G#5. Is this correct?
  251. For now the second G#5 has been marked as a 'skip'.
  252. + Changed Tempo sections 25,26,27 to 40,47,47a
  253. + Measurements are taken for sections 51-54 but these sections follow bar 136 and
  254. are therefore outside the test. These sections have therefore been redirected
  255. to the downbeat of 201-204.
  256. *** Testing Notes:
  257. + Equipment List:
  258. Four Microphones: Four performance/ Four recording
  259. 2 inside 2 inside
  260. 2 overhead 2 overhead
  261. 4 powered speakers
  262. 2 Mixers (1 performance 1 recording)
  263. Performance Computer (harpo)/ Audio Interface (delta1010) / MIDI interface (Fastlane)
  264. Recording Computer (crel) / Audio Interface (delta 1010) / MIDI interface (???)
  265. Sensor Strip
  266. + Performance Setup
  267. +------ +
  268. Mic0 ----------->| |
  269. Mic1 ----------->| | sends +-----+ +-------+
  270. Mic2 ----------->| |------->| A/D | | | +------+ +--------+
  271. Mic3 ----------->| Mixer |------->| |------>| harpo |<-------| MIDI |<-----| sensor |
  272. aux | | | | | | +------+ | strip |
  273. Spkr0 <----------| |<-------| |<------| | +--------+
  274. Spkr1 <----------| |<-------| | +------ +
  275. main | | | |
  276. Spkr2 <----------| |<-------| D/A |
  277. Spkr3 <----------| |<-------| |
  278. +-------+ +-----+
  279. + Software Development
  280. - Create Score File
  281. - Create Recording Program (test with long MIDI playback generating audio - look for drift)
  282. Record the index of each MIDI event at it's location in an audio channel.
  283. - Allow all variables and patch connections to be set from the scMod script and have
  284. multiple scripts with varynig effects setups.
  285. - When scanning past ramping variables in scMod the end value should be
  286. taken as the next variable(???) - this is not necessarily correct
  287. because one never knows where a timed change may end - maybe ramped
  288. variables should include a 'skip value' giving the next ambient value
  289. for the ramped variable - experiment with this to figure out what works.
  290. - Add comb filters tuned according to the current MIDI notes as an additional effect.
  291. - Add EQ output stage (use mixer).
  292. - Add an input Compressor.
  293. - The dry signal should be able to be routed to seperate output channels - around the compressor.
  294. (Better would be to output a delayed version of the dry signal that was in sync with the transformed
  295. signal - this might mean simply passing the dry version as separate outputs from KR).
  296. - Create a mode in scMod which increments values based on an onset detector. So that
  297. changes only happen on attacks. This still doesn't help if the pedal is down (or
  298. if notes are sustained) but otherwise might be a better way to ramp parameters.
  299. - (DONE) The ability for the measurements to be called at the correct time must be built in.
  300. (or alternatively to use stored effects).
  301. - (DONE) Effects applied to the playback fragments.
  302. - (DONE?) CROSSFADE BUG - This may be fixed by the change to cmDspAvailCh which
  303. handles the case where no channels are available by sending an error message
  304. but not actually changing the state of the cross fader.
  305. + Experiments:
  306. 1) Speaker placement and live/electronics mix.
  307. 2) Sliver mix level
  308. 3) Try varying degree's of effects
  309. *** 11/19
  310. + The recd/play fade should be able to trigger from a capture note as well as
  311. playback note. An offset might also be useful.
  312. (Should be a default fade for each fragment - keyed to the input. This
  313. will be the fade that will occur when
  314. + Allow setting fade time in the score.
  315. + Allow setting fade rate based on 1.0 to 0.0 from fade point to end point.
  316. + Allow for multiple fades markers per fragment. (what does this mean?)
  317. + Write code to ignore playback when the score follower is not stable -
  318. or to throw out fragments where there is a mistake.
  319. + At the end of each fragment recording the fragment should be truncated by the look-ahead time
  320. to avoid capturing the attack of the marked note.
  321. + Part 2 data analysis: analyze the order of notes in counter rhythms.
  322. + Allow 'evenness' sequences to have non-even relationships.
  323. *** 11/1
  324. + Change the wavetable to read stereo files or add a second wavetable to play the other channel.
  325. + The console window is not always updating from the bottom.
  326. + The 'Dump' button results are not going to the console window.
  327. + Put dry signal into separate output channels.
  328. + Add 'adaptive' mode parameters to scale/range mappings.
  329. + The 'meas'->'parameter' mappings should changable from scMod (mod0.js)
  330. + The 'adaptive' mode parameters (e.g. offset and invert) need to be connected in the patch.
  331. + Create a mode in scMod which increments values based on an onset detector. So that
  332. changes only happen on attacks. This still doesn't help if the pedal is down (or
  333. if notes are sustained) but otherwise might be a better way to ramp parameters.
  334. + Mark all notes in the score according to how well they would act as places to transition.
  335. Notes held while the pedal is down would not be good places to transition.
  336. These indicators would then be used to determine where a section change can occur
  337. when the actual section change is missed.
  338. + (done) All score_loc's and event indexes in meas0.js that beginning with
  339. score location 743 must be decremented by two. (e.g. loc 743 becomes 741 ...)
  340. (score_loc_1.txt is now the correct score file)
  341. + When scanning past ramping variables in scMod the end value should be
  342. taken as the next variable(???) - this is not necessarily correct
  343. because one never knows where a timed change may end - maybe ramped
  344. variables should include a 'skip value' giving the next ambient value
  345. for the ramped variable - experiment with this to figure out what works.
  346. *** 10/17
  347. Select bar 129.
  348. Start on F5 before 129.
  349. Score follower jumps to loc. 978 then backs up to 973.
  350. *** 9/27
  351. * (DONE) Implement live recording for use in part 2.
  352. * Implement a delay between when a new section is set to trigger and when
  353. it actually does. This might allow transitions to be set up prior to when they are heard.
  354. * (DONE) OS-X version crashes when the printf("PROCSET ...) is removed from _cmScProcSets().
  355. * Add ability to set mappings and perf. measure settings to scMod.
  356. * The scMod should play through all changes up to the cur starting location so that
  357. we can mimic the state of playing the piece through but allow starting from any location.
  358. * Experiment with changing settings using the scMod ramping functions.
  359. * Make a source separation based fade using an filter/inverse filter based on the
  360. spectrum prior to the cross-fade. As an extra feature notice the state of the pedal
  361. and decay appropriately.
  362. * The electronic score needs the ability to specify that the output is sent to the audible
  363. cross-fade channel rather than the inactive channel.
  364. * Add a score mode that performs some action (e.g. incr/decr) on each incoming score follower
  365. event.
  366. * In AvailCh what happens when no available channels are found - this may be the cause
  367. of the cross-fade cut-out problem.
  368. * Add eq stage to output.
  369. * Setting the upper slope to a negative value is effective.
  370. * Demo Material: Seq 8 Mark 204 (1024-4 2048-4) Fade 10ms Cost->Threshold.
  371. - recd7 Mark 151
  372. - recd8 Mark 145 - same settings a previous take.
  373. - (recd9) Mark 145 - w/ changing xfade switch to mode 4 at 38
  374. - recd10 Mark 145 - same w/ no mode change
  375. - recd11 Mark 145 - a. 3 different takes w/ score constant - no perf. parameters used - fixed threshold=65
  376. - recd12 Mark 148 b.(same settings as recd9)
  377. - recd13 Mark 151 c.
  378. - recd14 Mark 161 Section 40 - fixed changes see mod0.js for note
  379. - Seq 6 Mark 145 M-92 (38,39,39a) (recd16) (recd17) (recd18) (recd19)
  380. - Seq 7 Mark 167 M-100
  381. *** 8/13
  382. * Cross-fade was cutting out during demo.
  383. * Missing takes between seq 7 and seq 8.
  384. * The MIDI is mis-aligned against the audio.
  385. * Are cost / tempo working? ... test changing mode.
  386. * Add an automatic volume adjustment to prevent parameter changes from causing large volume changes.
  387. * What can we actually do between after a MIDI note is received? Is it already too late to
  388. send parameters w/o affecting the attack of the note.
  389. * Live Test material
  390. Part 1: Meas:76 - (one measure) to get measurments for later sections
  391. Part 1: Meas:94 (sect 38 (Seq 6)) through Meas:136 (include 136 stop at 137).
  392. Part 2: ("/Users/kevin/temp/piano score part 2 draft 1 master m 232 - 241 1st 2 bts.sib")
  393. The downbeat of part two aligns with the 3rd beat (in 4/4) of 122 in the first part.
  394. Ends on measure 131 at end of beat 3.
  395. MISSING MIDI for measures 114:126
  396. *** July 10
  397. ** (done) Make separate mappings and scale/range controls for left and right.
  398. ** Add EQ output stage.
  399. ** Work out the speaker setup.
  400. ** Add capture/playback. Analyze notes on capture and do not play if there are
  401. any wrong notes. (Skipped notes however are acceptable.)
  402. **
  403. ** When a section transition is occurs late - (e.g. due to dropped notes) do not apply
  404. the transformation all at once - instead either ramp it in or step it in on subsequent
  405. attacks. Section transitions which are positively identified are intended to have
  406. dramatic changes so applying the updated parameters immediately is acceptable - but
  407. when the parameters are changed mid-section they should be much applied subtely.
  408. ** (done) Build a database of measurements and setup the program to be able to
  409. apply a given measurement at it's assigned section.
  410. ** Redevelop spectral distortion algorithm to use a spline as the transform.
  411. ** use Log frequency frequency transform instead of FFT.
  412. ** Allow for a continous window size via zero padding.
  413. ** Add a 'write' preset file button - so the preset file can be saved prior to next crash.
  414. ** measurement values can generate MAX_DBL - be sure that are not being sent through to the audio algorithm.
  415. (see ln:965 cmDspKr.c for a hack to fix this)
  416. ** add invert to scale/range to cause output to go in opposite direction.
  417. ** non-grace eveneess are used to generate a measurement value from previous tempo calibration section.
  418. (non-grace evenness notes therefore have two scores: 'evenness' and 'overall-duration').
  419. ** note that the default setting for dyn and even.
  420. ** add dyn,even,tempo,cost number boxes to allow artificial setting of these parameters.
  421. add dyn,even,tempo,cost as modulator variables to allow them to be set from the modulator
  422. With these additions we can simulate apply measurements at the 'application' section.
  423. ** add begining and ending measure numbers to 'seq' labels
  424. ** Gain compensation for mode 4.
  425. ** Do IFFT using cos()^c + i * sin()^c - these bases are orthognal but cause harmonic distortion.
  426. To be efficient this might involve writing an FFT function.
  427. // May 22
  428. ** Crashers (Should be tested but are probably already fixed following score follower debugging.)
  429. Seq 2 m24 Mark 36 & 38
  430. Seq 4: Mark 115
  431. Seq 4: m76-79 Mark 129 (W/ meas: even & dyn -> thresh change min Thresh to 40) - use 4th seq w/ b1
  432. Seq 6: m92 Mark 143
  433. Seq 7: m103 Mark 173
  434. Seq 7: Mark 172 Meas 103 - always crashes on playback.
  435. Seq 4: Mark 76 Meas 40 - crash!
  436. Seq 2: First mark meas 23
  437. Crash seems to happen in cmProc4.c: _cmScMatchInitMtx() ln:1311.
  438. It looks like a memory overrun. Looks like the first line is wrong
  439. shouldn't:
  440. if( rn >p->mrn && cn > p->mcn )
  441. be
  442. if(rn*cn > p->mrn*p->mcn)
  443. BUGS:
  444. // Apr 20
  445. The tempo measurement can produce invalid values. Set score to 22 then play Mark 38.
  446. First tempo measurement is a non-sense value - probably produced by an div by zero.
  447. Also: Mark 8, Meas 10.
  448. Crash on playing Mark 37.
  449. Click on list control outside below list item - crash!
  450. Select Mark 171 (Seq 7) Section 43, m103 crash
  451. // Feb 27
  452. + Audio seems to preceded MIDI by around 250ms this probably arises
  453. from a delay that was inserted by 'mas'. Can the delay be removed?
  454. // Feb 25
  455. + Fix the audio file input/output ports
  456. //
  457. // Feb 6 & 7
  458. //
  459. + Performed notes which arrive which about 50ms could be
  460. considered chords. Extra notes notes which were not part of
  461. the chord are probably common and should be discounted during
  462. the cost analysis.
  463. + (done) Add alignment cost as a 4th variable along with dyn,even,tempo.
  464. + (done) In the score print out (score_loc.txt) Section 2 is starting on Bar 5
  465. when it should start inside Bar 7.
  466. + In Take 1 the 2nd dynamics set is not triggered.
  467. + In Take 3 Eveness 2 the C2 and F#4 are NOT missing althrough they are in the
  468. evalation. Also E7 which ends that set is not marked with an 'e'.
  469. + It is possible to have even-non-grace sets where the note rythm value's are not
  470. all the same (e.g. bar 20 )
  471. + User soft-thresholds for the dynamics categories.
  472. + Set 39 even measure 25 shows the first note as G#2 when it should be C#1
  473. + Missig MIDI note sounded:
  474. C1 score-loc:132
  475. A#2 140
  476. A5 173
  477. C#2 195 Marker 36
  478. E5,G33,A#2,C#1 212-218 Marker 36
  479. E3 185 Marker 37
  480. F5,C#4,G#5 986 Marker-Down 204
  481. -------------------------------------------------------------------------------
  482. OSX - Install Notes
  483. -------------------------------------------------------------------------------
  484. 1. Install XQuartz (from xquartz.macosforge.org)
  485. 0. Install Xcode
  486. 1. Install macports
  487. 2. sudo port install autoconf
  488. 3. sudo port install automake
  489. 4. sudo port install libtool
  490. 5. sudo port install fftw-3
  491. 6. sudo port install fftw-3--single
  492. 7. port select --list gcc (which gcc is active)
  493. 8. sudo port install gcc47
  494. 9. sudo port --set gcc mp-gcc47
  495. 10. sudo port install fltk
  496. 11. sudo port install xorg-libX11
  497. 12.sudo port install git-core
  498. 13.sudo port install emacs +x11
  499. 14 install ~/Library/Preferences/org.larke.kc.txt (is this required?)
  500. 15 create ~/Library/Preferences/kc
  501. 16 Install ~/Library/Preferences/time_line.js, time_line_preset.js, time_line_preset.csv
  502. -------------------------------------------------------------------------------
  503. Linux - Install Notes
  504. -------------------------------------------------------------------------------
  505. 1. autoconf
  506. 2. automake
  507. 3. gcc-c++ (to get g++)
  508. 4. blas-devel x64
  509. 5. atlas-devel x64
  510. 6. lapack-devel x64
  511. 7. download fftw-3: ./configure --prefix=/usr
  512. 8. fftwf-3 : ./configure --prefix=/usr --enable-single
  513. 9. fltk-devel x64