From 4f262c849e4d79c72e889454056f873d53b50e34 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 11 Oct 2015 11:40:40 +0100 Subject: [PATCH] Supercollider synthedef --- UltiSnips/supercollider.snippets | 5 +++++ snippets/supercollider.snippets | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/UltiSnips/supercollider.snippets b/UltiSnips/supercollider.snippets index d59ce43..b8538aa 100644 --- a/UltiSnips/supercollider.snippets +++ b/UltiSnips/supercollider.snippets @@ -3,3 +3,8 @@ for (${1:1}, ${2:10}) {${3: |i}|} $0 } endsnippet +snippet sdef +SynthDef(\\${1:synthName}, {${2: |${3:x}|} + ${0} +}).add; +endsnippet diff --git a/snippets/supercollider.snippets b/snippets/supercollider.snippets index 988f9e8..afaefb6 100644 --- a/snippets/supercollider.snippets +++ b/snippets/supercollider.snippets @@ -2,10 +2,6 @@ snippet b ( ${0} ) -snippet { - { - ${0} - } snippet if if (${1}) { ${0} @@ -20,3 +16,7 @@ snippet for for (${1:1}, ${2:10}) { |i| ${0} } +snippet sdef + SynthDef(\\${1:synthName}, {${2} + ${0} + }).add;