User Tools

Site Tools


en:sound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:sound [2016/11/07 12:34]
admin
en:sound [2017/02/15 13:03]
admin
Line 6: Line 6:
 **sound** ( [[arrays|array[]]] )\\ **sound** ( [[arrays|array[]]] )\\
 **sound** [[lists|{ frequency1, duration1, frequency2, duration2, ... }]]\\ **sound** [[lists|{ frequency1, duration1, frequency2, duration2, ... }]]\\
-**sound** [[lists|{ { frequency1, duration1 }, { frequency2, duration2 }, ... }]] 
  
 ===Polyphonic Sounds=== ===Polyphonic Sounds===
-**sound** voicevoice, ...\\ +**sound** [[arrays|array[,]]]\\ 
-**sound** ( voice, voice, ... )\\ +**sound** ( [[arrays|array[,]]] )\\ 
-where voice may be either an [[arrays|variable[]]] or a [[lists|list]].+**sound** [[lists|{ { frequency1, duration1 }, { frequency2, duration2 }, ... }]]
  
 ==== Description ==== ==== Description ====
-Play a sound from the computer's speakers.Frequency is expressed in Hz and duration is expressed in milliseconds (1000 in a second). An array or list containing frequency and durations may also be passed.  This eliminates any clicking between sounds when more than one is being output sequentially.+Play a sound from the computer's speakers.Frequency is expressed in Hz and duration is expressed in milliseconds (1000 in a second). An array or list containing frequency and duration may also be passed.  This eliminates any clicking between sounds when more than one is being output sequentially.
  
 One dimensional arrays and lists must have an even number of values.  A two dimensional array may have any number of rows but must have two columns. One dimensional arrays and lists must have an even number of values.  A two dimensional array may have any number of rows but must have two columns.
en/sound.txt · Last modified: 2020/02/28 10:46 (external edit)