/flash/python-javascript-comparison.html

http://echo-nest-remix.googlecode.com/ · HTML · 432 lines · 423 code · 9 blank · 0 comment · 0 complexity · 273ca84e460f2ee26292106174045d34 MD5 · raw file

  1. <html>
  2. <head>
  3. <title>Python/JavaScript Remix API Comparison</title>
  4. <style type="text/css">
  5. th {
  6. text-align: left;
  7. }
  8. .status-complete {
  9. background-color: green;
  10. }
  11. .status-works {
  12. background-color: #5f5;
  13. }
  14. .status-untested {
  15. background-color: yellow;
  16. }
  17. .status-unimplemented {
  18. background-color: red;
  19. }
  20. </style>
  21. <body>
  22. <h1>Python/JavaScript Remix API Comparison</h1>
  23. <p>The tables below document the progress of the ActionScript/JavaScript port of the Python Remix API.</p>
  24. <h2>audio.py</h2>
  25. <h3><code>AudioQuantum</code></h3>
  26. <table>
  27. <tr>
  28. <th><code>start</code></th>
  29. <td><code>start</code></td>
  30. <td class="status-complete">complete</td>
  31. </tr>
  32. <tr>
  33. <th><code>duration</code></th>
  34. <td><code>duration</code></td>
  35. <td class="status-complete">complete</td>
  36. </tr>
  37. <tr>
  38. <th><code>kind</code></th>
  39. <td></td>
  40. <td class="status-unimplemented">unimplemented</td>
  41. <td>use <code>container.kind</code></td>
  42. </tr>
  43. <tr>
  44. <th><code>confidence</code></th>
  45. <td><code>confidence</code></td>
  46. <td class="status-complete">complete</td>
  47. </tr>
  48. <tr>
  49. <th><code>get_end()</code></th>
  50. <td><code>end</code></td>
  51. <td class="status-complete">complete</td>
  52. </tr>
  53. <tr>
  54. <th><code>get_source()</code></th>
  55. <td></td>
  56. <td class="status-unimplemented">unimplemented</td>
  57. </tr>
  58. <tr>
  59. <th><code>set_source()</code></th>
  60. <td></td>
  61. <td class="status-unimplemented">unimplemented</td>
  62. </tr>
  63. <tr>
  64. <th><code>source</code></th>
  65. <td></td>
  66. <td>n/a</td>
  67. <td>see <code>get_source()</code>, <code>set_source()</code></td>
  68. </tr>
  69. <tr>
  70. <th><code>parent()</code></th>
  71. <td><code>parent()</code></td>
  72. <td class="status-works">works</td>
  73. </tr>
  74. <tr>
  75. <th><code><code>children()</code></code></th>
  76. <td><code><code>children()</code></code></td>
  77. <td class="status-works">works</td>
  78. </tr>
  79. <tr>
  80. <th><code>group()</code></th>
  81. <td><code>group()</code></td>
  82. <td class="status-complete">complete</td>
  83. </tr>
  84. <tr>
  85. <th><code>prev()</code></th>
  86. <th></th>
  87. <td class="status-unimplemented">unimplemented</td>
  88. </tr>
  89. <tr>
  90. <th><code>next()</code></th>
  91. <th></th>
  92. <td class="status-unimplemented">unimplemented</td>
  93. </tr>
  94. <tr>
  95. <th><code>local_context()</code></th>
  96. <td><code>localContext()</code></td>
  97. <td class="status-works">works</td>
  98. </tr>
  99. <tr>
  100. <th><code>absolute_context()</code></th>
  101. <td></td>
  102. <td class="status-unimplemented">unimplemented</td>
  103. </tr>
  104. <tr>
  105. <th><code>context_string()</code></th>
  106. <td></td>
  107. <td class="status-unimplemented">unimplemented</td>
  108. </tr>
  109. <tr>
  110. <th><code>toxml()</code></th>
  111. <td></td>
  112. <td class="status-unimplemented">unimplemented</td>
  113. </tr>
  114. <tr>
  115. <th><code>render()</code></th>
  116. <td></td>
  117. <td>n/a</td>
  118. </tr>
  119. </table>
  120. <h3><code>AudioSegment</code></h3>
  121. <p>There is no <code>AudioQuantum</code> subclass for segments. Segment properties are added directly to instances of <code>AudioQuantum</code>.</p>
  122. <table>
  123. <tr>
  124. <th>Python</th>
  125. <th>JavaScript</th>
  126. <th>Status</th>
  127. <th>Notes</th>
  128. </tr>
  129. <tr>
  130. <th><code>pitches</code></th>
  131. <td><code>pitches</code></td>
  132. <td class="status-complete">complete</td>
  133. </tr>
  134. <tr>
  135. <th><code>timbre</code></th>
  136. <td><code>timbre</code></td>
  137. <td class="status-complete">complete</td>
  138. </tr>
  139. <tr>
  140. <th><code>loudness_begin</code></th>
  141. <td><code>loudnessBegin</code></td>
  142. <td class="status-complete">complete</td>
  143. </tr>
  144. <tr>
  145. <th><code>loudness_max</code></th>
  146. <td><code>loudnessMax</code></td>
  147. <td class="status-complete">complete</td>
  148. </tr>
  149. <tr>
  150. <th><code>time_loudness_max</code></th>
  151. <td><code>timeLoudnessMax</code></td>
  152. <td class="status-complete">complete</td>
  153. </tr>
  154. <tr>
  155. <th><code>loudness_end</code></th>
  156. <td><code>loudnessEnd</code></td>
  157. <td class="status-complete">complete</td>
  158. <td>available on all <code>AudioSegment</code>s.</td>
  159. </tr>
  160. </table>
  161. <h3><code>AudioQuantumList</code></h3>
  162. <table>
  163. <tr>
  164. <th><code>get_many()</code></th>
  165. <td></td>
  166. <td class="status-unimplemented">unimplemented</td>
  167. </tr>
  168. <tr>
  169. <th><code>get_many_if_segment()</code></th>
  170. <td></td>
  171. <td class="status-unimplemented">unimplemented</td>
  172. </tr>
  173. <tr>
  174. <th><code>get_duration()</code></th>
  175. <td></td>
  176. <td class="status-unimplemented">unimplemented</td>
  177. </tr>
  178. <tr>
  179. <th><code>get_source()</code></th>
  180. <td></td>
  181. <td class="status-unimplemented">unimplemented</td>
  182. </tr>
  183. <tr>
  184. <th><code>set_source()</code></th>
  185. <td></td>
  186. <td class="status-unimplemented">unimplemented</td>
  187. </tr>
  188. <tr>
  189. <th><code>durations</code></th>
  190. <td></td>
  191. <td class="status-unimplemented">unimplemented</td>
  192. </tr>
  193. <tr>
  194. <th><code>kinds</code></th>
  195. <td></td>
  196. <td class="status-unimplemented">unimplemented</td>
  197. </tr>
  198. <tr>
  199. <th><code>start</code></th>
  200. <td></td>
  201. <td class="status-unimplemented">unimplemented</td>
  202. </tr>
  203. <tr>
  204. <th><code>confidence</code></th>
  205. <td></td>
  206. <td class="status-unimplemented">unimplemented</td>
  207. </tr>
  208. <tr>
  209. <th><code>pitches</code></th>
  210. <td></td>
  211. <td class="status-unimplemented">unimplemented</td>
  212. </tr>
  213. <tr>
  214. <th><code>timbre</code></th>
  215. <td></td>
  216. <td class="status-unimplemented">unimplemented</td>
  217. </tr>
  218. <tr>
  219. <th><code>loudness_begin</code></th>
  220. <td></td>
  221. <td class="status-unimplemented">unimplemented</td>
  222. </tr>
  223. <tr>
  224. <th><code>loudness_max</code></th>
  225. <td></td>
  226. <td class="status-unimplemented">unimplemented</td>
  227. </tr>
  228. <tr>
  229. <th><code>time_loudness_max</code></th>
  230. <td></td>
  231. <td class="status-unimplemented">unimplemented</td>
  232. </tr>
  233. <tr>
  234. <th><code>loudness_end</code></th>
  235. <td></td>
  236. <td class="status-unimplemented">unimplemented</td>
  237. </tr>
  238. <tr>
  239. <th><code>source</code></th>
  240. <td></td>
  241. <td>n/a</td>
  242. <td>see <code>get_source()</code>, <code>set_source()</code></td>
  243. </tr>
  244. <tr>
  245. <th><code>duration</code></th>
  246. <td></td>
  247. <td>n/a</td>
  248. <td>see <code>get_duration()</code></td>
  249. </tr>
  250. <tr>
  251. <th><code>sources()</code></th>
  252. <td></td>
  253. <td class="status-unimplemented">unimplemented</td>
  254. </tr>
  255. <tr>
  256. <th><code>that()</code></th>
  257. <td><code>that()</code></td>
  258. <td class="status-complete">complete</td>
  259. </tr>
  260. <tr>
  261. <th><code>ordered_by()</code></th>
  262. <td><code>orderedBy()</code></td>
  263. <td class="status-complete">complete</td>
  264. </tr>
  265. <tr>
  266. <th><code>beget()</code></th>
  267. <td></td>
  268. <td class="status-unimplemented">unimplemented</td>
  269. </tr>
  270. <tr>
  271. <th><code>attach()</code></th>
  272. <td></td>
  273. <td>n/a</td>
  274. </tr>
  275. <tr>
  276. <th><code>toxml</code></th>
  277. <td></td>
  278. <td class="status-unimplemented">unimplemented</td>
  279. </tr>
  280. <tr>
  281. <th><code>render()</code></th>
  282. <td></td>
  283. <td>n/a</td>
  284. </tr>
  285. </table>
  286. <h2>selection.py</h2>
  287. <table>
  288. <tr>
  289. <th><code>are_contained_by_range()</code></th>
  290. <td><code>areContainedByRange()</code></td>
  291. <td class="status-untested">untested</td>
  292. </tr>
  293. <tr>
  294. <th><code>are_contained_by()</code></th>
  295. <td><code>areContainedBy()</code></td>
  296. <td class="status-complete">complete</td>
  297. </tr>
  298. <tr>
  299. <th><code>overlap_range()</code></th>
  300. <td><code>overlapRange()</code></td>
  301. <td class="status-works">works</td>
  302. </tr>
  303. <tr>
  304. <th><code>overlap()</code></th>
  305. <td><code>overlap()</code></td>
  306. <td class="status-complete">complete</td>
  307. </tr>
  308. <tr>
  309. <th><code>end_during_range()</code></th>
  310. <td><code>endDuringRange()</code></td>
  311. <td class="status-untested">untested</td>
  312. </tr>
  313. <tr>
  314. <th><code>end_during()</code></th>
  315. <td><code>endDuring()</code></td>
  316. <td class="status-untested">untested</td>
  317. </tr>
  318. <tr>
  319. <th><code>start_during_range()</code></th>
  320. <td><code>startDuringRange()</code></td>
  321. <td class="status-untested">untested</td>
  322. </tr>
  323. <tr>
  324. <th><code>start_during()</code></th>
  325. <td><code>startDuring()</code></td>
  326. <td class="status-works">works</td>
  327. </tr>
  328. <tr>
  329. <th><code>contain_point()</code></th>
  330. <td><code>containPoint()</code></td>
  331. <td class="status-works">works</td>
  332. </tr>
  333. <tr>
  334. <th><code>have_pitch_max()</code></th>
  335. <td><code>havePitchMax()</code></td>
  336. <td class="status-works">works</td>
  337. </tr>
  338. <tr>
  339. <th><code>have_pitches_max()</code></th>
  340. <td><code>havePitchesMax()</code></td>
  341. <td class="status-untested">untested</td>
  342. </tr>
  343. <tr>
  344. <th><code>lie_immediately_before()</code></th>
  345. <td><code>lieImmediatelyBefore()</code></td>
  346. <td class="status-untested">untested</td>
  347. </tr>
  348. <tr>
  349. <th><code>lie_immediately_after()</code></th>
  350. <td><code>lieImmediatelyAfter()</code></td>
  351. <td class="status-untested">untested</td>
  352. </tr>
  353. <tr>
  354. <th><code>fall_on_the()</code></th>
  355. <td><code>fallOnThe()</code></td>
  356. <td class="status-untested">untested</td>
  357. </tr>
  358. <tr>
  359. <th><code>overlap_ends_of()</code></th>
  360. <td><code>overlapEndsOf()</code></td>
  361. <td class="status-works">works</td>
  362. </tr>
  363. <tr>
  364. <th><code>overlap_starts_of()</code></th>
  365. <td><code>overlapStartsOf()</code></td>
  366. <td class="status-works">works</td>
  367. </tr>
  368. <tr>
  369. <th><code>start_during_any()</code></th>
  370. <td><code>startDuringAny()</code></td>
  371. <td class="status-untested">untested</td>
  372. </tr>
  373. <tr>
  374. <th><code>all_of()</code></th>
  375. <td></td>
  376. <td>n/a</td>
  377. </tr>
  378. </table>
  379. <h2>sorting.py</h2>
  380. <table>
  381. <tr>
  382. <th><code>confidence()</code></th>
  383. <td><code></code></td>
  384. <td class="status-complete">complete</td>
  385. </tr>
  386. <tr>
  387. <th><code>duration()</code></th>
  388. <td><code></code></td>
  389. <td class="status-complete">complete</td>
  390. </tr>
  391. <tr>
  392. <th><code>timbre_value()</code></th>
  393. <td><code>timbreValue()</code></td>
  394. <td class="status-untested">untested</td>
  395. </tr>
  396. <tr>
  397. <th><code>pitch_value()</code></th>
  398. <td><code>pitchValue()</code></td>
  399. <td class="status-untested">untested</td>
  400. </tr>
  401. <tr>
  402. <th><code>pitch_distance_from()</code></th>
  403. <td><code>pitchDistanceFrom()</code></td>
  404. <td class="status-untested">untested</td>
  405. </tr>
  406. <tr>
  407. <th><code>timbre_distance_from()</code></th>
  408. <td><code>timbreDistanceFrom()</code></td>
  409. <td class="status-works">works</td>
  410. </tr>
  411. <tr>
  412. <th><code>noisiness()</code></th>
  413. <td><code>noisiness()</code></td>
  414. <td class="status-untested">untested</td>
  415. </tr>
  416. <tr>
  417. <th><code>_diff_squared()</code></th>
  418. <td></td>
  419. <td>n/a</td>
  420. </tr>
  421. </table>
  422. </body>
  423. </html>