Skip to content
BADIM-PC\Vadim edited this page May 4, 2017 · 26 revisions

sfx

'sfx id [note] [duration=-1] [channel=0] [volume=15] [speed]'

Parameters:

  • 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 like C#4
  • duration : how many ticks to play (sfx == -1 by default to play sfx infinitely)
  • channel : 0,1:square, 2:triangle and 3:noise.
  • 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

Description:

This function will play a sound from the sfx editor. [how do you change channels' waveform?]

Clone this wiki locally