Browse files

Added snippet descriptions

  • Loading branch information...
1 parent 84775bb commit 18a45b6974956a6395328da0ce320109c5200b4b @ptrv ptrv committed Dec 7, 2009
Showing with 118 additions and 43 deletions.
  1. +3 −1 Out
  2. +0 −7 README.markdown
  3. +4 −2 any
  4. +3 −1 ascs
  5. +3 −1 avars
  6. +2 −0 break
  7. +3 −1 buf
  8. +2 −0 case
  9. +3 −1 class
  10. +3 −1 co
  11. +3 −1 collect
  12. +3 −1 da
  13. +3 −1 di
  14. +3 −1 dm
  15. +3 −1 do
  16. +3 −1 egen
  17. +4 −2 every
  18. +3 −1 flow
  19. +2 −0 func
  20. +3 −1 get
  21. +3 −1 he
  22. +3 −1 if
  23. +3 −1 ife
  24. +3 −1 int
  25. +3 −1 is
  26. +3 −1 mb
  27. +3 −1 nn
  28. +2 −0 np
  29. +3 −1 play
  30. +3 −1 po
  31. +2 −0 qn
  32. +3 −1 rout
  33. +3 −1 rsup
  34. +2 −0 sdef
  35. +3 −1 select
  36. +3 −1 set
  37. +3 −1 sk
  38. +3 −1 sp
  39. +2 −0 switch
  40. +3 −1 syn
  41. +3 −1 while
  42. +3 −1 win
View
4 Out
@@ -1,3 +1,5 @@
+#name : Out.ar( ... )
+# --
Out.ar(${1:out},
$2
-);
+);
View
7 README.markdown
@@ -1,7 +0,0 @@
-### sclang-mode
-
-
-
-
-
-sclang snippets for yasnippets.
View
6 any
@@ -1,3 +1,5 @@
-any { |${1:i}tem, $1|
+#name : any { |item| ... }
+# --
+any { |${1:item}|
$2
-};
+};
View
4 ascs
@@ -1 +1,3 @@
-asCompileString
+#name : asCompileString
+# --
+asCompileString
View
4 avars
@@ -1 +1,3 @@
-instVarNames.dump;
+#name : instVarNames.dump
+# --
+instVarNames.dump;
View
2 break
@@ -1,3 +1,5 @@
+#name : block { |break| ... }
+# --
block {|break|
if (${1:true}) { break.value(${2:nil}) };
View
4 buf
@@ -1 +1,3 @@
-Buffer.read(${1:s}, "${2:sounds/Amen.wav}");
+#name : Buffer.read( ... )
+# --
+Buffer.read(${1:s}, "${2:sounds/Amen.wav}");
View
2 case
@@ -1,3 +1,5 @@
+#name : case { ... } { ... }
+# --
case
{$1} {$2}
{$3} {$4};
View
4 class
@@ -1,3 +1,5 @@
+#name : Class : Object { ... }
+# --
${1:Classname} : ${2:Object} {
*new { $3
^super.new.init$4;
@@ -6,4 +8,4 @@ ${1:Classname} : ${2:Object} {
init { $5
$6
}
-}
+}
View
4 co
@@ -1 +1,3 @@
-openCodeFile
+#name : openCodeFile
+# --
+openCodeFile
View
4 collect
@@ -1 +1,3 @@
-collect({|${1:i}tem, $1| $2 })
+#name : collect({ ... })
+# --
+collect({|${1:item}| $2 })
View
4 da
@@ -1 +1,3 @@
-doneAction: ${1:2}$2
+#name : doneAction: ...
+# --
+doneAction: ${1:2}$2
View
4 di
@@ -1 +1,3 @@
-dumpInterface;
+#name : dumpInterface
+# --
+dumpInterface;
View
4 dm
@@ -1 +1,3 @@
-dumpAllMethods;
+#name : dumpAllMethods
+# --
+dumpAllMethods;
View
4 do
@@ -1,3 +1,5 @@
+#name : do { |arg| ... }
+# --
do { |${1:arg}|
$2
-};
+};
View
4 egen
@@ -1 +1,3 @@
-EnvGen.kr(${1:env}, doneAction: ${2:2})
+#name : EnvGen.kr( ... )
+# --
+EnvGen.kr(${1:env}, doneAction: ${2:2})
View
6 every
@@ -1,3 +1,5 @@
-every { |${1:i}tem, $1|
+#name : every { |item| ... }
+# --
+every { |${1:item}|
$2
-};
+};
View
4 flow
@@ -1 +1,3 @@
-w.view.decorator = FlowLayout(w.view.bounds);
+#name : FlowLayout
+# --
+w.view.decorator = FlowLayout(w.view.bounds);
View
2 func
@@ -1,3 +1,5 @@
+#name : { |arg| ... }
+# --
{ |${1:arg=value}|
$2
}
View
4 get
@@ -1 +1,3 @@
-get(${1:0}, {|msg| ${2:msg.postln}});
+#name : get( ..., {|msg| ... }
+# --
+get(${1:0}, {|msg| ${2:msg.postln}});
View
4 he
@@ -1 +1,3 @@
-openHelpFile
+#name : openHelpFile
+# --
+openHelpFile
View
4 if
@@ -1,3 +1,5 @@
+#name : if () { ... }
+# --
if(${1:condition}) {
${2:true}
-};
+};
View
4 ife
@@ -1,5 +1,7 @@
+#name : if () { ... } { ... }
+# --
if(${1:condition}) {
${2:true}
} {
${3:false}
-};
+};
View
4 int
@@ -1 +1,3 @@
-interpolation:
+#name : interpolation:
+# --
+interpolation:
View
4 is
@@ -1 +1,3 @@
-isNil
+#name : isNil
+# --
+isNil
View
4 mb
@@ -1,3 +1,5 @@
+#name : makeBundle( ... , { ... } )
+# --
makeBundle(${1:0.2}, {
$2
-});
+});
View
4 nn
@@ -1 +1,3 @@
-notNil
+#name : notNil
+# --
+notNil
View
2 np
@@ -1,3 +1,5 @@
+#name : n.postln
+# --
//
$1.postln;
//
View
4 play
@@ -1 +1,3 @@
-{ ${1:SinOsc.ar} }.play
+#name : { ... }.play
+# --
+{ ${1:SinOsc.ar} }.play
View
4 po
@@ -1 +1,3 @@
-postln;
+#name : postln
+# --
+postln;
View
2 qn
@@ -1 +1,3 @@
+#name : queryAllNodes
+# --
queryAllNodes
View
4 rout
@@ -1,4 +1,6 @@
+#name : Routine { ... }
+# --
Routine {
${1:1.wait}
-};
+};
View
4 rsup
@@ -1 +1,3 @@
-^super.new.init$0;
+#name : ^super.new.init
+# --
+^super.new.init$0;
View
2 sdef
@@ -1,3 +1,5 @@
+#name : SynthDef( ... , { ... } ).play(s)
+# --
SynthDef(\\${1:foobar}) { |${2:out=0}|
$0
}.play(s);
View
4 select
@@ -1 +1,3 @@
-select({|${1:i}tem, $1| $2 })
+#name : select({ |item| ... })
+# --
+select({|${1:item}| $2 })
View
4 set
@@ -1 +1,3 @@
-set(\\${1:arg}, ${2:val});
+#name : set( arg, val )
+# --
+set(\\${1:arg}, ${2:val});
View
4 sk
@@ -1 +1,3 @@
-Server.killAll; Server.default.boot
+#name : Server kill and boot
+# --
+Server.killAll; Server.default.boot
View
4 sp
@@ -1 +1,3 @@
-standardizePath$0
+#name : standardizePath
+# --
+standardizePath$0
View
2 switch
@@ -1,3 +1,5 @@
+#name : switch (...) {...}
+# --
switch ($1)
{$2} {$3}
{$4} {$5};
View
4 syn
@@ -1 +1,3 @@
-Synth(\\${1:foobar}, [\\${2:arg}, ${3:value}]);
+#name : Synth( ... , [ ... ])
+# --
+Synth(\\${1:foobar}, [\\${2:arg}, ${3:value}]);
View
4 while
@@ -1,3 +1,5 @@
+#name : while() { ... }
+# --
while({${1:condition}}, {
${2:do}
-});
+});
View
4 win
@@ -1 +1,3 @@
-SCWindow("${1:window title}", Rect(${2:x}, ${3:y}, ${4:width}, ${5:height}));
+#name : SCWindow( ... )
+# --
+SCWindow("${1:window title}", Rect(${2:x}, ${3:y}, ${4:width}, ${5:height}));

0 comments on commit 18a45b6

Please sign in to comment.