26
26
catch ( err ) {
27
27
}
28
28
//-->
29
- var methods = { "i0" :10 , "i1" :10 , "i2" :10 , "i3" :10 , "i4" :10 , "i5" :10 , "i6" :10 , "i7" :10 , "i8" :10 , "i9" :10 , "i10" :10 , "i11" :10 , "i12" :10 , "i13" :10 , "i14" :10 , "i15" :10 , "i16" :10 , "i17" :10 , "i18" :10 , "i19" :10 , "i20" :10 , "i21" :10 , "i22" :10 , "i23" :10 , "i24" :10 , "i25" :10 , "i26" :10 , "i27" :10 , "i28" :10 , "i29" :10 , "i30" :10 , "i31" :10 , "i32" :10 , "i33" :10 , "i34" :10 , "i35" :10 , "i36" :10 , "i37" :10 } ;
29
+ var methods = { "i0" :10 , "i1" :10 , "i2" :10 , "i3" :10 , "i4" :10 , "i5" :10 , "i6" :10 , "i7" :10 , "i8" :10 , "i9" :10 , "i10" :10 , "i11" :10 , "i12" :10 , "i13" :10 , "i14" :10 , "i15" :10 , "i16" :10 , "i17" :10 , "i18" :10 , "i19" :10 , "i20" :10 , "i21" :10 , "i22" :10 , "i23" :10 , "i24" :10 , "i25" :10 , "i26" :10 , "i27" :10 , "i28" :10 , "i29" :10 , "i30" :10 , "i31" :10 , "i32" :10 , "i33" :10 , "i34" :10 , "i35" :10 , "i36" :10 , "i37" :10 , "i38" : 10 } ;
30
30
var tabs = { 65535 :[ "t0" , "All Methods" ] , 2 :[ "t2" , "Instance Methods" ] , 8 :[ "t4" , "Concrete Methods" ] } ;
31
31
var altColor = "altColor" ;
32
32
var rowColor = "rowColor" ;
@@ -147,10 +147,6 @@ <h2 title="Class AudioSample" class="title">Class AudioSample</h2>
147
147
148
148
If you want to pre-load your audio sample with an audio file from disk you
149
149
can do so using the SoundFile subclass.</ div >
150
- < dl >
151
- < dt > < span class ="seeLabel "> See Also:</ span > </ dt >
152
- < dd > < a href ="../../processing/sound/SoundFile.html " title ="class in processing.sound "> < code > SoundFile</ code > </ a > </ dd >
153
- </ dl >
154
150
</ li >
155
151
</ ul >
156
152
</ div >
@@ -213,6 +209,12 @@ <h3>Constructor Summary</h3>
213
209
< div class ="block "> Allocate a new audiosample buffer with the given number of frames.</ div >
214
210
</ td >
215
211
</ tr >
212
+ < tr class ="rowColor ">
213
+ < th class ="colConstructorName " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#AudioSample-processing.core.PApplet-int-int- "> AudioSample</ a > </ span > ​(processing.core.PApplet parent,
214
+ int frames,
215
+ int frameRate)</ code > </ th >
216
+ < td class ="colLast "> </ td >
217
+ </ tr >
216
218
</ table >
217
219
</ li >
218
220
</ ul >
@@ -272,43 +274,50 @@ <h3>Method Summary</h3>
272
274
</ td >
273
275
</ tr >
274
276
< tr id ="i6 " class ="altColor ">
277
+ < td class ="colFirst "> < code > boolean</ code > </ td >
278
+ < th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#isPlaying-- "> isPlaying</ a > </ span > ​()</ code > </ th >
279
+ < td class ="colLast ">
280
+ < div class ="block "> Check whether this audiosample is currently playing.</ div >
281
+ </ td >
282
+ </ tr >
283
+ < tr id ="i7 " class ="rowColor ">
275
284
< td class ="colFirst "> < code > void</ code > </ td >
276
285
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#jump-float- "> jump</ a > </ span > ​(float time)</ code > </ th >
277
286
< td class ="colLast ">
278
287
< div class ="block "> Jump to a specific position in the audiosample without interrupting playback.</ div >
279
288
</ td >
280
289
</ tr >
281
- < tr id ="i7 " class ="rowColor ">
290
+ < tr id ="i8 " class ="altColor ">
282
291
< td class ="colFirst "> < code > void</ code > </ td >
283
292
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#jumpFrame-int- "> jumpFrame</ a > </ span > ​(int frameNumber)</ code > </ th >
284
293
< td class ="colLast ">
285
294
< div class ="block "> Jump to a specific position in the audiosample without interrupting playback.</ div >
286
295
</ td >
287
296
</ tr >
288
- < tr id ="i8 " class ="altColor ">
297
+ < tr id ="i9 " class ="rowColor ">
289
298
< td class ="colFirst "> < code > void</ code > </ td >
290
299
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#loop-- "> loop</ a > </ span > ​()</ code > </ th >
291
300
< td class ="colLast "> </ td >
292
301
</ tr >
293
- < tr id ="i9 " class ="rowColor ">
302
+ < tr id ="i10 " class ="altColor ">
294
303
< td class ="colFirst "> < code > void</ code > </ td >
295
304
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#loop-float- "> loop</ a > </ span > ​(float rate)</ code > </ th >
296
305
< td class ="colLast "> </ td >
297
306
</ tr >
298
- < tr id ="i10 " class ="altColor ">
307
+ < tr id ="i11 " class ="rowColor ">
299
308
< td class ="colFirst "> < code > void</ code > </ td >
300
309
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#loop-float-float- "> loop</ a > </ span > ​(float rate,
301
310
float amp)</ code > </ th >
302
311
< td class ="colLast "> </ td >
303
312
</ tr >
304
- < tr id ="i11 " class ="rowColor ">
313
+ < tr id ="i12 " class ="altColor ">
305
314
< td class ="colFirst "> < code > void</ code > </ td >
306
315
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#loop-float-float-float- "> loop</ a > </ span > ​(float rate,
307
316
float pos,
308
317
float amp)</ code > </ th >
309
318
< td class ="colLast "> </ td >
310
319
</ tr >
311
- < tr id ="i12 " class ="altColor ">
320
+ < tr id ="i13 " class ="rowColor ">
312
321
< td class ="colFirst "> < code > void</ code > </ td >
313
322
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#loop-float-float-float-float- "> loop</ a > </ span > ​(float rate,
314
323
float pos,
@@ -318,61 +327,61 @@ <h3>Method Summary</h3>
318
327
< div class ="block "> Starts playback which loops from the beginning to the end of the sample.</ div >
319
328
</ td >
320
329
</ tr >
321
- < tr id ="i13 " class ="rowColor ">
330
+ < tr id ="i14 " class ="altColor ">
322
331
< td class ="colFirst "> < code > void</ code > </ td >
323
332
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#pan-float- "> pan</ a > </ span > ​(float pos)</ code > </ th >
324
333
< td class ="colLast ">
325
334
< div class ="block "> Move the sound in a stereo panorama.</ div >
326
335
</ td >
327
336
</ tr >
328
- < tr id ="i14 " class ="altColor ">
337
+ < tr id ="i15 " class ="rowColor ">
329
338
< td class ="colFirst "> < code > void</ code > </ td >
330
339
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#pause-- "> pause</ a > </ span > ​()</ code > </ th >
331
340
< td class ="colLast ">
332
341
< div class ="block "> Stop the playback of the sample, but cue it to the current position.</ div >
333
342
</ td >
334
343
</ tr >
335
- < tr id ="i15 " class ="rowColor ">
344
+ < tr id ="i16 " class ="altColor ">
336
345
< td class ="colFirst "> < code > float</ code > </ td >
337
346
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#percent-- "> percent</ a > </ span > ​()</ code > </ th >
338
347
< td class ="colLast ">
339
348
< div class ="block "> Get current sound file playback position in percent.</ div >
340
349
</ td >
341
350
</ tr >
342
- < tr id ="i16 " class ="altColor ">
351
+ < tr id ="i17 " class ="rowColor ">
343
352
< td class ="colFirst "> < code > void</ code > </ td >
344
353
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-- "> play</ a > </ span > ​()</ code > </ th >
345
354
< td class ="colLast ">
346
355
< div class ="block "> Start the generator</ div >
347
356
</ td >
348
357
</ tr >
349
- < tr id ="i17 " class ="rowColor ">
358
+ < tr id ="i18 " class ="altColor ">
350
359
< td class ="colFirst "> < code > void</ code > </ td >
351
360
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-float- "> play</ a > </ span > ​(float rate)</ code > </ th >
352
361
< td class ="colLast "> </ td >
353
362
</ tr >
354
- < tr id ="i18 " class ="altColor ">
363
+ < tr id ="i19 " class ="rowColor ">
355
364
< td class ="colFirst "> < code > void</ code > </ td >
356
365
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-float-float- "> play</ a > </ span > ​(float rate,
357
366
float amp)</ code > </ th >
358
367
< td class ="colLast "> </ td >
359
368
</ tr >
360
- < tr id ="i19 " class ="rowColor ">
369
+ < tr id ="i20 " class ="altColor ">
361
370
< td class ="colFirst "> < code > void</ code > </ td >
362
371
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-float-float-float- "> play</ a > </ span > ​(float rate,
363
372
float pos,
364
373
float amp)</ code > </ th >
365
374
< td class ="colLast "> </ td >
366
375
</ tr >
367
- < tr id ="i20 " class ="altColor ">
376
+ < tr id ="i21 " class ="rowColor ">
368
377
< td class ="colFirst "> < code > void</ code > </ td >
369
378
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-float-float-float-float- "> play</ a > </ span > ​(float rate,
370
379
float pos,
371
380
float amp,
372
381
float add)</ code > </ th >
373
382
< td class ="colLast "> </ td >
374
383
</ tr >
375
- < tr id ="i21 " class ="rowColor ">
384
+ < tr id ="i22 " class ="altColor ">
376
385
< td class ="colFirst "> < code > void</ code > </ td >
377
386
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#play-float-float-float-float-float- "> play</ a > </ span > ​(float rate,
378
387
float pos,
@@ -383,12 +392,12 @@ <h3>Method Summary</h3>
383
392
< div class ="block "> Starts the playback of the audiosample.</ div >
384
393
</ td >
385
394
</ tr >
386
- < tr id ="i22 " class ="altColor ">
395
+ < tr id ="i23 " class ="rowColor ">
387
396
< td class ="colFirst "> < code > void</ code > </ td >
388
397
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#playFor-float- "> playFor</ a > </ span > ​(float duration)</ code > </ th >
389
398
< td class ="colLast "> </ td >
390
399
</ tr >
391
- < tr id ="i23 " class ="rowColor ">
400
+ < tr id ="i24 " class ="altColor ">
392
401
< td class ="colFirst "> < code > void</ code > </ td >
393
402
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#playFor-float-float- "> playFor</ a > </ span > ​(float duration,
394
403
float cue)</ code > </ th >
@@ -397,40 +406,40 @@ <h3>Method Summary</h3>
397
406
end of the audiosample, whichever comes first.</ div >
398
407
</ td >
399
408
</ tr >
400
- < tr id ="i24 " class ="altColor ">
409
+ < tr id ="i25 " class ="rowColor ">
401
410
< td class ="colFirst "> < code > float</ code > </ td >
402
411
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#position-- "> position</ a > </ span > ​()</ code > </ th >
403
412
< td class ="colLast ">
404
413
< div class ="block "> Get current sound file playback position in seconds.</ div >
405
414
</ td >
406
415
</ tr >
407
- < tr id ="i25 " class ="rowColor ">
416
+ < tr id ="i26 " class ="altColor ">
408
417
< td class ="colFirst "> < code > int</ code > </ td >
409
418
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#positionFrame-- "> positionFrame</ a > </ span > ​()</ code > </ th >
410
419
< td class ="colLast ">
411
420
< div class ="block "> Get frame index of current sound file playback position.</ div >
412
421
</ td >
413
422
</ tr >
414
- < tr id ="i26 " class ="altColor ">
423
+ < tr id ="i27 " class ="rowColor ">
415
424
< td class ="colFirst "> < code > void</ code > </ td >
416
425
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#rate-float- "> rate</ a > </ span > ​(float rate)</ code > </ th >
417
426
< td class ="colLast ">
418
427
< div class ="block "> Set the playback rate of the audiosample.</ div >
419
428
</ td >
420
429
</ tr >
421
- < tr id ="i27 " class ="rowColor ">
430
+ < tr id ="i28 " class ="altColor ">
422
431
< td class ="colFirst "> < code > void</ code > </ td >
423
432
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#read-float:A- "> read</ a > </ span > ​(float[] data)</ code > </ th >
424
433
< td class ="colLast ">
425
434
< div class ="block "> Get the current sample data and write it into the given array.</ div >
426
435
</ td >
427
436
</ tr >
428
- < tr id ="i28 " class ="altColor ">
437
+ < tr id ="i29 " class ="rowColor ">
429
438
< td class ="colFirst "> < code > float</ code > </ td >
430
439
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#read-int- "> read</ a > </ span > ​(int index)</ code > </ th >
431
440
< td class ="colLast "> </ td >
432
441
</ tr >
433
- < tr id ="i29 " class ="rowColor ">
442
+ < tr id ="i30 " class ="altColor ">
434
443
< td class ="colFirst "> < code > void</ code > </ td >
435
444
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#read-int-float:A-int-int- "> read</ a > </ span > ​(int startFrame,
436
445
float[] data,
@@ -440,12 +449,12 @@ <h3>Method Summary</h3>
440
449
< div class ="block "> Read some frames of this audio sample into an array.</ div >
441
450
</ td >
442
451
</ tr >
443
- < tr id ="i30 " class ="altColor ">
452
+ < tr id ="i31 " class ="rowColor ">
444
453
< td class ="colFirst "> < code > void</ code > </ td >
445
454
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#resize-int- "> resize</ a > </ span > ​(int frames)</ code > </ th >
446
455
< td class ="colLast "> </ td >
447
456
</ tr >
448
- < tr id ="i31 " class ="rowColor ">
457
+ < tr id ="i32 " class ="altColor ">
449
458
< td class ="colFirst "> < code > void</ code > </ td >
450
459
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#resize-int-boolean- "> resize</ a > </ span > ​(int frames,
451
460
boolean stereo)</ code > </ th >
@@ -454,14 +463,14 @@ <h3>Method Summary</h3>
454
463
frames.</ div >
455
464
</ td >
456
465
</ tr >
457
- < tr id ="i32 " class ="altColor ">
466
+ < tr id ="i33 " class ="rowColor ">
458
467
< td class ="colFirst "> < code > int</ code > </ td >
459
468
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#sampleRate-- "> sampleRate</ a > </ span > ​()</ code > </ th >
460
469
< td class ="colLast ">
461
470
< div class ="block "> Returns the underlying sample rate of the audiosample.</ div >
462
471
</ td >
463
472
</ tr >
464
- < tr id ="i33 " class ="rowColor ">
473
+ < tr id ="i34 " class ="altColor ">
465
474
< td class ="colFirst "> < code > void</ code > </ td >
466
475
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#set-float-float-float-float- "> set</ a > </ span > ​(float rate,
467
476
float pos,
@@ -471,27 +480,27 @@ <h3>Method Summary</h3>
471
480
< div class ="block "> Set multiple parameters at once</ div >
472
481
</ td >
473
482
</ tr >
474
- < tr id ="i34 " class ="altColor ">
483
+ < tr id ="i35 " class ="rowColor ">
475
484
< td class ="colFirst "> < code > void</ code > </ td >
476
485
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#stop-- "> stop</ a > </ span > ​()</ code > </ th >
477
486
< td class ="colLast ">
478
487
< div class ="block "> Stops the playback.</ div >
479
488
</ td >
480
489
</ tr >
481
- < tr id ="i35 " class ="rowColor ">
490
+ < tr id ="i36 " class ="altColor ">
482
491
< td class ="colFirst "> < code > void</ code > </ td >
483
492
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#write-float:A- "> write</ a > </ span > ​(float[] data)</ code > </ th >
484
493
< td class ="colLast ">
485
494
< div class ="block "> Overwrite the sample with the data from the given array.</ div >
486
495
</ td >
487
496
</ tr >
488
- < tr id ="i36 " class ="altColor ">
497
+ < tr id ="i37 " class ="rowColor ">
489
498
< td class ="colFirst "> < code > void</ code > </ td >
490
499
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#write-int-float- "> write</ a > </ span > ​(int index,
491
500
float value)</ code > </ th >
492
501
< td class ="colLast "> </ td >
493
502
</ tr >
494
- < tr id ="i37 " class ="rowColor ">
503
+ < tr id ="i38 " class ="altColor ">
495
504
< td class ="colFirst "> < code > void</ code > </ td >
496
505
< th class ="colSecond " scope ="row "> < code > < span class ="memberNameLink "> < a href ="../../processing/sound/AudioSample.html#write-int-float:A-int-int- "> write</ a > </ span > ​(int startFrame,
497
506
float[] data,
@@ -514,7 +523,7 @@ <h3>Methods inherited from class java.lang.Object</h3>
514
523
<!-- -->
515
524
</ a >
516
525
< h3 > Methods inherited from class processing.sound.< a href ="../../processing/sound/SoundObject.html " title ="class in processing.sound "> SoundObject</ a > </ h3 >
517
- < code > < a href ="../../processing/sound/SoundObject.html#add-float- "> add</ a > , < a href =" ../../processing/sound/SoundObject.html#isPlaying-- " > isPlaying </ a > </ code > </ li >
526
+ < code > < a href ="../../processing/sound/SoundObject.html#add-float- "> add</ a > </ code > </ li >
518
527
</ ul >
519
528
</ li >
520
529
</ ul >
@@ -572,6 +581,17 @@ <h4>AudioSample</h4>
572
581
</ dl >
573
582
</ li >
574
583
</ ul >
584
+ < a name ="AudioSample-processing.core.PApplet-int-int- ">
585
+ <!-- -->
586
+ </ a >
587
+ < ul class ="blockList ">
588
+ < li class ="blockList ">
589
+ < h4 > AudioSample</ h4 >
590
+ < pre > public AudioSample​(processing.core.PApplet parent,
591
+ int frames,
592
+ int frameRate)</ pre >
593
+ </ li >
594
+ </ ul >
575
595
< a name ="AudioSample-processing.core.PApplet-float:A- ">
576
596
<!-- -->
577
597
</ a >
@@ -630,6 +650,23 @@ <h4>AudioSample</h4>
630
650
<!-- -->
631
651
</ a >
632
652
< h3 > Method Detail</ h3 >
653
+ < a name ="isPlaying-- ">
654
+ <!-- -->
655
+ </ a >
656
+ < ul class ="blockList ">
657
+ < li class ="blockList ">
658
+ < h4 > isPlaying</ h4 >
659
+ < pre > public boolean isPlaying​()</ pre >
660
+ < div class ="block "> Check whether this audiosample is currently playing.</ div >
661
+ < dl >
662
+ < dt > < span class ="overrideSpecifyLabel "> Overrides:</ span > </ dt >
663
+ < dd > < code > < a href ="../../processing/sound/SoundObject.html#isPlaying-- "> isPlaying</ a > </ code > in class < code > < a href ="../../processing/sound/SoundObject.html " title ="class in processing.sound "> SoundObject</ a > </ code > </ dd >
664
+ < dt > < span class ="returnLabel "> Returns:</ span > </ dt >
665
+ < dd > `true` if this sound object is currently playing, `false` if it is
666
+ not.</ dd >
667
+ </ dl >
668
+ </ li >
669
+ </ ul >
633
670
< a name ="amp-float- ">
634
671
<!-- -->
635
672
</ a >
@@ -715,8 +752,6 @@ <h4>frames</h4>
715
752
< dl >
716
753
< dt > < span class ="returnLabel "> Returns:</ span > </ dt >
717
754
< dd > The number of frames of the audiosample.</ dd >
718
- < dt > < span class ="seeLabel "> See Also:</ span > </ dt >
719
- < dd > < a href ="../../processing/sound/AudioSample.html#duration-- "> < code > duration()</ code > </ a > </ dd >
720
755
</ dl >
721
756
</ li >
722
757
</ ul >
0 commit comments