Advertisement
Aslai

Sequencer tokens

Dec 7th, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.13 KB | None | 0 0
  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, then it is ignored.]
  15.  
  16. GOTOCOUNTID "ID" count "countid"    [Same as GOTOCOUNT, but with an associated ID]
  17.  
  18. GOTORAND num "labels"           [Go to a random label. num dictates the number of labels.
  19.                     "labels" contains a list of labels in this format:
  20.                     "|ID|Weight|ID|Weight|...|" where ID is a label ID and weight
  21.                     is any number. The higher the number is relative to the other weights,
  22.                     the more likely it will be jumped to.]
  23.  
  24. GOTORANDCOUNT count num "labels"    [Same as GOTORAND and decrements count. If count is <= 0, then it is ignored.]
  25.  
  26. GOTORANDCOUNTID count "countid"     [Same as GOTORANDCOUNT, but with an associated ID]
  27.         num "labels"
  28.  
  29. RESETCOUNT              [Resets all counts]
  30.  
  31. RESETCOUNTID "countid"          [Resets the count of "countid" only.]
  32.  
  33. DECAY ChannelNum amount toward      [(Anti)decay applied to channel ChannelNum with amount
  34.     "type" "towhat"         (Which is multiplied by 10000) of "type" ("LIN"/"LINEAR",
  35.                     "QUAD"/"QUADRATIC", "EXP"/"EXPONENTIAL" ) applied to volume or frequency
  36.                     ("VOL"/"VOLUME", "FRQ"/"FREQ"/"FREQUENCY") moving towards toward]  
  37.  
  38. DECAYTIME samples           [Changes the number of samples that must pass to apply decay. Not affected by DURMULT.]
  39.  
  40. START ChannelNum freq duration      [Starts sounding out in ChannelNum at frequency freq for duration samples (<0 means forever)]
  41.  
  42. STOP ChannelNum             [Stops sound in channel]
  43.  
  44. LOOPPCM ChannelNum  which       [chooses whether or not a PCM sample should be looped (0=no, !0=yes)]
  45.  
  46. FREQ ChannelNum freq            [Changes the frequency playing in channel ChannelNum]
  47.  
  48. WAIT duration               [Waits for duration samples to pass]
  49.  
  50. DURMULT samples             [Multiplies all succeeding durations by samples (Default 1)]
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement