Advertisement
Aslai

Synth Tokens

Dec 7th, 2011
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SAMPLERATE rate             [Sets the global sample rate (1-99680, default 22050)]
  2.  
  3. CHAN ChannelNum "voice"         [Establish a channel with voice "voice"
  4.                     ("PCM", "TRIANGLE"/"TRI", "SQUARE"/"SQU", "Noise"/"NSE")]
  5.  
  6. PCM samplenum rate freq "samples"   [Establish a PCM sample]
  7.  
  8. SETSAMPLE ChannelNum            [Associate a PCM sample with a channel]
  9.  
  10. LBL "ID"                [Make a label with tag "ID"]
  11.  
  12. GOTO "ID"               [Go to label "ID"]
  13.  
  14. GOTOCOUNT "ID" count            [Go to label "ID", and decrements count. If count is <= 0,
  15.                     then it is ignored.]
  16.  
  17. GOTOCOUNTID "ID" count "countid"    [Same as GOTOCOUNT, but with an associated ID]
  18.  
  19. GOTORAND num "labels"           [Go to a random label. num dictates the number of labels.
  20.                     "labels" contains a list of labels in this format:
  21.                     "|ID|Weight|ID|Weight|...|" where ID is a label ID and
  22.                     weight is any number. The higher the number is relative
  23.                     to the other weights, the more likely it will be jumped to.]
  24.  
  25. GOTORANDCOUNT count num "labels"    [Same as GOTORAND and decrements count. If count is <= 0,
  26.                     then it is ignored.]
  27.  
  28. GOTORANDCOUNTID count "countid"     [Same as GOTORANDCOUNT, but with an associated ID]
  29.         num "labels"
  30.  
  31. RESETCOUNT              [Resets all counts]
  32.  
  33. RESETCOUNTID "countid"          [Resets the count of "countid" only.]
  34.  
  35. DECAY ChannelNum amount toward      [(Anti)decay applied to channel ChannelNum with amount
  36.     "type" "towhat"         (Which is multiplied by 10000) of "type" ("LIN"/"LINEAR",
  37.                     "QUAD"/"QUADRATIC", "EXP"/"EXPONENTIAL" ) applied to
  38.                     volume or frequency ("VOL"/"VOLUME", "FRQ"/"FREQ"/
  39.                     "FREQUENCY") moving towards toward]
  40.  
  41. DECAYTIME samples           [Changes the number of samples that must pass to apply decay.
  42.                     Not affected by DURMULT.]
  43.  
  44. START ChannelNum freq duration      [Starts sounding out in ChannelNum at frequency freq for
  45.                     duration samples (<0 means forever)]
  46.  
  47. STOP ChannelNum             [Stops sound in channel]
  48.  
  49. LOOPPCM ChannelNum which        [chooses whether or not a PCM sample should be looped
  50.                     (0=no, !0=yes)]
  51.  
  52. FREQ ChannelNum freq            [Changes the frequency playing in channel ChannelNum]
  53.  
  54. WAIT duration               [Waits for duration samples to pass]
  55.  
  56. DURMULT samples             [Multiplies all succeeding durations by samples (Default 1)]
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement