- A SynthDef entry should include
- the SynthDef
- a description
- the user / uploader
- tags
- attribution
- a fixed and permanent ID
- a voting system
- User authentication
- Browsing based on tags
- A SynthDef entry should include
- the SynthDef
- a description
- the user / uploader
- tags
- attribution
- a fixed and permanent ID
- a voting system, maybe implemented as a second tagging system where visitors can characterize sounds by adjectives
- User authentication
- Random Synthdef button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a fifth update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gist { | |
*allGistsFor {|user, username, password| | |
var options; | |
options = password.notNil.if({ | |
"-u %:%".format(username, password) | |
}, { | |
"" | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthDef("out", {Out.ar(0, FSinOsc.ar(247))}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthDef("out", {Out.ar(0, FSinOsc.ar(247); \haha)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
Ndef('gistCadavre', {SplayAz.ar(2, SinOsc.ar({LFDNoise3.ar(Rand(0.1, 0.4)).exprange(20, 200)}!20, 0, 5).tanh, spread: 2, orientation: WhiteNoise.ar.lag(LFDNoise3.ar(pi.reciprocal).exprange(0.000001, 0.001))).tanh}); | |
Ndef('gistCadavre').set('fadeTime', 2); | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first argument is the start value | |
// second argument is the function, which is evaluated with the last value as first argument and the current value as the second. | |
[1, 23, 42].inject(0, {|last, current| last + current}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a function that returns the first element of an array plus all other elements | |
f = {|anArray| [anArray.first, anArray[1..]]} | |
// a will contain the first element, b, the remaining array | |
#a, b = f.([1, 2, 3, 4, 5]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Interestingly, the regular maxItem is twice as fast as this much more elegant version. | |
// However, you can learn a lot by trying to solve and reimplement common methods with e.g. inject. | |
f = {|a| a.inject(a.first, {|last, current| | |
max(current, last) | |
})} | |
// an example array |
OlderNewer