-
-
Notifications
You must be signed in to change notification settings - Fork 494
LinCerely edited this page Nov 4, 2017
·
26 revisions
sfx id [note] [duration=-1] [channel=0] [volume=15] [speed=0]
- id : From 0 to 63, -1 will stop playing the sfx on the channel.
-
note : From 0 to 95, 12 notes in each 8 octaves
= octave * 12 + note
or string likeC#4
-
duration : how many ticks to play (
sfx == -1
by default to play sfx infinitely) - channel : 0..3
- volume : The volume, from 0 to 15 (15 by default).
- speed : The speed, from -4 to 3 (0 by default), means how many 'ticks+1' to play each step, speed == 0 means 1 tick per step
This function will play a sound from the sfx editor. [how do you change channels' waveform?]
TIC-80 tiny computer https://tic80.com | Twitter | Telegram | Terms
Built-in Editors
Console
Platform
RAM & VRAM | Display | Palette | Bits per Pixel (BPP) |
.tic
Format | Supported Languages
Other
Tutorials | Code Snippets | Libraries | External Tools | FFT
API
- BDR (0.90)
- BOOT (1.0)
- MENU
- OVR (deprecated)
- SCN (deprecated)
- TIC
- btn & btnp
- circ & circb
- clip
- cls
- elli & ellib (0.90)
- exit
- fget & fset (0.80)
- font
- key & keyp
- line
- map
- memcpy & memset
- mget & mset
- mouse
- music
- peek, peek4
- peek1, peek2 (1.0)
- pix
- pmem
- poke, poke4
- poke1, poke2 (1.0)
- rect & rectb
- reset
- sfx
- spr
- sync
- ttri (1.0)
- time
- trace
- tri & trib (0.90)
- tstamp (0.80)
- vbank (1.0)