Skip to content

Instantly share code, notes, and snippets.

@LFSaw
LFSaw / mozzi fixed point arithmetics.md
Last active August 29, 2015 14:00
Fixed-point arithmetics in mozzi

Fixed-point arithmetics in mozzi

(Mozzi is a sound synthesis toolkit for the Arduino)

General remarks

Naming

The naming of the fixed-point types is based on the Qm.f-notation ("the unambiguous form") as described in the notation section of the wikipedia article on fixed-point arithmetic, replacing . with n.[^ Since `.` does not work in C.]

@LFSaw
LFSaw / gist:c9260b44d9b70ee2a405
Last active August 29, 2015 14:03
screen commands for remote controlling processes

screen commands for remote control

When working remotely (e.g. via ssh on an embedded platform), it often is nice to completely log off the system while a process is still running. E.g. when issuing a long-term process like make or running

To create a named screen session, type

$ screen -dR <mySessionName>

start a command in a named session

@LFSaw
LFSaw / Associations.sc
Last active August 29, 2015 14:09
towards Dictionary:inject
Associations : List {
pairsDo { |func|
this.do { |assoc|
func.value(assoc.key, assoc.value)
}
}
keysValuesDo { |func|
this.pairsDo(func)
}
keys {
@LFSaw
LFSaw / OpenSynthDefs-demands.md
Created July 27, 2011 15:00
Demands for a web-based platform for SynthDefs
  • 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
@LFSaw
LFSaw / OpenSynthDefs-demands.md
Created July 27, 2011 15:00
Demands for a web-based platform for SynthDefs
  • 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
@LFSaw
LFSaw / SynthDef.sc
Created July 27, 2011 17:29
haha edited
a fifth update
@LFSaw
LFSaw / Gist.sc
Created July 27, 2011 18:06
accessing the Gist API from within SuperCollider
Gist {
*allGistsFor {|user, username, password|
var options;
options = password.notNil.if({
"-u %:%".format(username, password)
}, {
""
});
@LFSaw
LFSaw / SynthDef.sc
Created July 29, 2011 11:03
My first GIst gist
SynthDef("out", {Out.ar(0, FSinOsc.ar(247))})
@LFSaw
LFSaw / SynthDef.sc
Created July 29, 2011 11:03
My second GIst gist
SynthDef("out", {Out.ar(0, FSinOsc.ar(247); \haha)})
@LFSaw
LFSaw / Ndef.scd
Created July 29, 2011 18:13
Cadavre Excuis
(
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);
);