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