Skip to content

Commit

Permalink
Added some own new snippets...
Browse files Browse the repository at this point in the history
  • Loading branch information
bennigraf committed Jan 17, 2011
1 parent 80d4cbf commit 8a7ec0b
Show file tree
Hide file tree
Showing 17 changed files with 262 additions and 7 deletions.
22 changes: 22 additions & 0 deletions Commands/Current Environment.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd sc3c
export SC_INTERPRET_TEXT="currentEnvironment"
sc3c -x SC_INTERPRET_TEXT;</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>Current Environment</string>
<key>output</key>
<string>replaceSelectedText</string>
<key>tabTrigger</key>
<string>ce</string>
<key>uuid</key>
<string>C7B4E800-33FF-46B2-AC69-648F8028E4E8</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Snippets/Create Synth.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>Synth(\\${1:foobar}, [\\${2:arg}, ${3:value}]);</string>
<key>name</key>
<string>Create Synth</string>
<string>syn</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
Expand Down
8 changes: 5 additions & 3 deletions Snippets/Create SynthDef.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>SynthDef(\\${1:foobar}) { |${2:out=0}$3|
<string>(
SynthDef(\\${1:foobar}, { |${2:out=0}$3|
$0
}.play(s);</string>
}).${4:add};
)</string>
<key>name</key>
<string>Create SynthDef</string>
<string>sdef</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Create function.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>{ |${1:arg=value}|
$2
<string>{ ${2:|${1:arg=value}|}
$3
</string>
<key>name</key>
<string>Create function</string>
Expand Down
18 changes: 18 additions & 0 deletions Snippets/Filter: Amp.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${4:~${1:snd}[${2:60}] = \filter -&gt; { |in|
in * ${3:1.2};
\}}</string>
<key>name</key>
<string>Filter: Amp</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>famp</string>
<key>uuid</key>
<string>D7CC0BBC-C4B0-4612-AA3C-67D33801469A</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: BPF.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${5:~${1:snd}[${2:40}] = \filter -&gt; { |in|
BPF.ar(in, ${3:1500}, ${4:1});
\}}</string>
<key>name</key>
<string>Filter: BPF</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fbpf</string>
<key>uuid</key>
<string>83843534-95B0-4575-BBB7-7468B02033BF</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: Bitcrusher.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${4:~${1:snd}[${2:40}] = \filter -&gt; { |in|
in.round(0.5 ** ${3:16});
\}}</string>
<key>name</key>
<string>Filter: Bitcrusher</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fbit</string>
<key>uuid</key>
<string>0EFE90FC-8A6F-4EC1-ACAB-65E68F5FAE35</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: Comp.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${8:~${1:snd}[${2:50}] = \filter -&gt; { |in|
Compander.ar(in, in, ${3:0.6}, ${4:1}, ${5:1/3}, ${6:10}, ${7:10}); // In, Ctrl, Thresh, Below, Above, Attack, Release
\}}</string>
<key>name</key>
<string>Filter: Comp</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fcomp</string>
<key>uuid</key>
<string>3E857CDC-1970-42C0-B984-B5A46C3B4589</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: Delay.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${6:~${1:snd}[${2:60}] = \filter -&gt; { |in|
CombC.ar(in, ${3:2}, ${4:0.4}, ${5:1.7}); // MaxDelay, Delay, Decay
\}}</string>
<key>name</key>
<string>Filter: Delay</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fdel</string>
<key>uuid</key>
<string>A5B7E56B-7793-4E6B-9A2F-9E2CABE34076</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: HPF.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${5:~${1:snd}[${2:40}] = \filter -&gt; { |in|
${3:R}HPF.ar(in, ${4:3000}); // note: RHPF takes q as 3rd arg
\}}</string>
<key>name</key>
<string>Filter: HPF</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fhpf</string>
<key>uuid</key>
<string>6B741BAA-6AB0-4586-A937-CE4F80CD52AB</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: LPF.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${5:~${1:snd}[${2:40}] = \filter -&gt; { |in|
${3:R}LPF.ar(in, ${4:3000}); // note: RLPF takes q as 3rd arg
\}}</string>
<key>name</key>
<string>Filter: LPF</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>flpf</string>
<key>uuid</key>
<string>1C1809CD-1C69-4800-84E1-537C61002CDB</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions Snippets/Filter: MidEQ.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${5:~${1:snd}[${2:40}] = \filter -&gt; { |in|
MidEQ.ar(in, ${3:1500}, ${4:1}, ${5:-12});
// in, freq, q, +-db
\}}</string>
<key>name</key>
<string>Filter: MidEQ</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fmeq</string>
<key>uuid</key>
<string>352B1CA4-58C2-4ED7-BBE9-8CF30AD4BC3B</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Filter: Reverb.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${6:~${1:snd}[${2:20}] = \filter -&gt; { |in|
FreeVerb.ar(in, ${3:0.6}, ${4:0.4}, ${5:0.4}); // Mix, Room, Damp
\}}</string>
<key>name</key>
<string>Filter: Reverb</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>frev</string>
<key>uuid</key>
<string>AD748184-F7EF-4F2B-B54B-F952C3AF7A57</string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions Snippets/Filter: Set.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${10:~${1:snd}[${2:1}] = \set -&gt; Pbind(
${3:\trig, 1,}
${4:\freq, ${5:Pseq([${6:1}], inf)},}
${7:\dur, ${8:Pseq([${9:1}], inf)}}
)}</string>
<key>name</key>
<string>Filter: Set</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>fset</string>
<key>uuid</key>
<string>E5C48288-2B8F-4318-B430-682CCC07C27A</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Proxy Space Function.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>~${1:snd} = {
$2
}</string>
<key>name</key>
<string>Proxy Space Function</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>~</string>
<key>uuid</key>
<string>8D930094-FA29-48FD-9A42-D2765D311864</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/s_plotTree.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>s.plotTree</string>
<key>name</key>
<string>s.plotTree</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>s.p</string>
<key>uuid</key>
<string>1CC9F07D-D317-443A-8A46-0B0B637D280C</string>
</dict>
</plist>
16 changes: 15 additions & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@
<string>C0F1C9B0-6393-4B2B-86B4-40010363DCDE</string>
<string>CD1B6200-5017-4892-9A71-8C217F308C5A</string>
<string>99EFA3F0-FDE6-4209-BED6-E051109CC51A</string>
<string>7BF22058-5A13-443D-9809-BD68A75EAFB3</string>
<string>5C56B0A4-BC6D-4A15-8876-BF43BE54AC63</string>
<string>AD748184-F7EF-4F2B-B54B-F952C3AF7A57</string>
<string>3E857CDC-1970-42C0-B984-B5A46C3B4589</string>
<string>D7CC0BBC-C4B0-4612-AA3C-67D33801469A</string>
<string>A5B7E56B-7793-4E6B-9A2F-9E2CABE34076</string>
<string>1C1809CD-1C69-4800-84E1-537C61002CDB</string>
<string>6B741BAA-6AB0-4586-A937-CE4F80CD52AB</string>
<string>83843534-95B0-4575-BBB7-7468B02033BF</string>
<string>352B1CA4-58C2-4ED7-BBE9-8CF30AD4BC3B</string>
<string>0EFE90FC-8A6F-4EC1-ACAB-65E68F5FAE35</string>
<string>E5C48288-2B8F-4318-B430-682CCC07C27A</string>
<string>7BF22058-5A13-443D-9809-BD68A75EAFB3</string>
<string>AAB067B5-0CF4-476D-8EF6-A5240A1883F1</string>
<string>F0523CC5-90CA-49B5-82BA-4EF94A675767</string>
<string>1CC9F07D-D317-443A-8A46-0B0B637D280C</string>
<string>F24F5356-B6BD-4849-9287-BC500D18F84D</string>
<string>59AA6C90-F786-434B-B10E-DA608EFBC824</string>
<string>89218E54-78ED-4C0B-92C9-8FEC7E3B2664</string>
Expand Down Expand Up @@ -60,6 +71,9 @@
<string>C94CF802-251A-44FE-87CB-4C50FA4D4D02</string>
<string>36B59028-5F9E-4023-B0CB-46BA991E4A0F</string>
<string>A29A295B-A0A4-4E8E-B144-802098C5D806</string>
<string>76D2572D-8E53-4EC8-93C0-2DFADF94E687</string>
<string>8D930094-FA29-48FD-9A42-D2765D311864</string>
<string>C7B4E800-33FF-46B2-AC69-648F8028E4E8</string>
</array>
<key>uuid</key>
<string>7613A472-3FAB-454C-8CF2-2E62F0D00920</string>
Expand Down

0 comments on commit 8a7ec0b

Please sign in to comment.