Einzelnen Beitrag anzeigen
Alt 14.10.2012, 02:45   #203
leecher
Moderator
MUSIC

E r g e b n i s / R e s u l t

Send tone to speaker based on frequency and duration

B e s c h r e i b u n g / D e s c r i p t i o n

This language call allows you to send a frequency to your computers speaker. This works identical to the music command found in the Compiler application.

S y n t a x
Code:
ok = CALL ("music", frequency, duration)
P a r a m e t e r

frequency - The frequency of the tone to generate
duration - The duration in msec.

R e t u r n s
A boolean value.

B e i s p i e l / E x a m p l e
Code:
ATTACH "music"
ok = CALL ("music", 264, 10) 
DETACH "music"
Angehängte Dateien
Dateityp: oac music.oac‎ (13.5 KB, 3x aufgerufen)
Dateityp: zip MUSIC.ZIP‎ (8.2 KB, 2x aufgerufen)
leecher ist offline   Mit Zitat antworten