Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. /*** DDWSnippets config ***/
  2.  
  3. DDWSnippets.autoEnable = nil;
  4. DDWSnippets.verbose = true;
  5.  
  6. DDWSnippets.hotkeyCode = 50; // `
  7. DDWSnippets.hotkeyMods = 262144; // control key
  8.  
  9. DDWSnippets.put("SynthDef",
  10. "SynthDef(\\##name##, { arg outbus = 0;
  11. var sig;
  12. sig = ;
  13. Out.ar(outbus, sig)
  14. }).add;"
  15. );
  16.  
  17. DDWSnippets.put("CtkSynthDef",
  18. "CtkSynthDef(\\##name##, { arg outbus = 0;
  19. var sig;
  20. sig = ;
  21. Out.ar(outbus, sig)
  22. });"
  23. );
  24.  
  25. DDWSnippets.put("do(_)",
  26. ".do(_.##method##);"
  27. );
  28.  
  29. DDWSnippets.put("collect(_)",
  30. ".collect(_.##method##);"
  31. );
  32. DDWSnippets.put("do({ |elem| })",
  33. ".do({ |elem| elem.##method##});"
  34. );
  35.  
  36. DDWSnippets.put("collect({ |elem| })",
  37. ".collect({ |elem, i| elem.##method##});"
  38. );
  39.  
  40. DDWSnippets.put("do({ |elem, i| })",
  41. ".do({ |elem| elem.##method##});"
  42. );
  43.  
  44. DDWSnippets.put("collect({ |elem, i| })",
  45. ".collect({ |elem, i| elem.##method##});"
  46. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement