csound_orchestra.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ace.define("ace/snippets/csound_orchestra",[], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "# else\n\
  4. snippet else\n\
  5. else\n\
  6. ${1:/* statements */}\n\
  7. # elseif\n\
  8. snippet elseif\n\
  9. elseif ${1:/* condition */} then\n\
  10. ${2:/* statements */}\n\
  11. # if\n\
  12. snippet if\n\
  13. if ${1:/* condition */} then\n\
  14. ${2:/* statements */}\n\
  15. endif\n\
  16. # instrument block\n\
  17. snippet instr\n\
  18. instr ${1:name}\n\
  19. ${2:/* statements */}\n\
  20. endin\n\
  21. # i-time while loop\n\
  22. snippet iwhile\n\
  23. i${1:Index} = ${2:0}\n\
  24. while i${1:Index} < ${3:/* count */} do\n\
  25. ${4:/* statements */}\n\
  26. i${1:Index} += 1\n\
  27. od\n\
  28. # k-rate while loop\n\
  29. snippet kwhile\n\
  30. k${1:Index} = ${2:0}\n\
  31. while k${1:Index} < ${3:/* count */} do\n\
  32. ${4:/* statements */}\n\
  33. k${1:Index} += 1\n\
  34. od\n\
  35. # opcode\n\
  36. snippet opcode\n\
  37. opcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\
  38. ${4:/* statements */}\n\
  39. endop\n\
  40. # until loop\n\
  41. snippet until\n\
  42. until ${1:/* condition */} do\n\
  43. ${2:/* statements */}\n\
  44. od\n\
  45. # while loop\n\
  46. snippet while\n\
  47. while ${1:/* condition */} do\n\
  48. ${2:/* statements */}\n\
  49. od\n\
  50. ";
  51. exports.scope = "csound_orchestra";
  52. });
  53. (function() {
  54. ace.require(["ace/snippets/csound_orchestra"], function(m) {
  55. if (typeof module == "object" && typeof exports == "object" && module) {
  56. module.exports = m;
  57. }
  58. });
  59. })();