User Tools

Site Tools


en:sound

Differences

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

Link to this comparison view

Next revision
Previous revision
en:sound [2016/01/01 22:42]
127.0.0.1 external edit
en:sound [2020/02/28 10:46] (current)
Line 3: Line 3:
 **sound** //frequency//, //duration//\\ **sound** //frequency//, //duration//\\
 **sound** ( //frequency//, //duration// )\\ **sound** ( //frequency//, //duration// )\\
-**sound** //numeric_array//\\ +**sound** [[arrays|array[]]]\\ 
-**sound** ( //numeric_array// )\\ +**sound** ( [[arrays|array[]]] )\\ 
-**sound** { frequency1, duration1, frequency2, duration2, ... }+**sound** [[lists|{ frequency1, duration1, frequency2, duration2, ... }]]\\ 
 + 
 +===Polyphonic Sounds=== 
 +**sound** [[arrays|array[,]]]\\ 
 +**sound** ( [[arrays|array[,]]] )\\ 
 +**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.
  
 ==== See Also ==== ==== See Also ====
Line 15: Line 23:
 |0.9.5g|Sound support for LINUX systems was added| |0.9.5g|Sound support for LINUX systems was added|
 |0.9.5h|Windows sound was changed to use the default sound device| |0.9.5h|Windows sound was changed to use the default sound device|
 +|1.99.99.55|two dimensional list support was added|
 +|1.99.99.72|polyphonic sounds were added and the [] on array variables is now required|
  
en/sound.1451713323.txt.gz · Last modified: 2020/02/28 10:46 (external edit)