Skip to content

Instantly share code, notes, and snippets.

@moxuse
moxuse / chord_prog.orca
Last active May 16, 2019
Chord Progress #orcλ
View chord_prog.orca
....wC4.......
dC4.114Q#ABCD#
.14T2341#ADBC#
.1V3A2..#ACDB#
..2V5A1.#CABD#
...3V6A2......
....4V8A1.....
.....5V9......
@moxuse
moxuse / lineup.orca
Last active May 15, 2019
Lineup Pattern #orcλ
View lineup.orca
...2C6.......
..2Z0........
...1..Q.abcde
.3.C4.a......
4C51A.J......
.1Y11Xa......
.....dcdcb...
.....dadab...
.....eceac...
.....eceac...
@moxuse
moxuse / grid.orca
Created May 15, 2019
Grid Pttern #orcλ
View grid.orca
1C4C1C2C
A1A0A1A6
1A1A1A7A
A2A2A8A7
2A4AaAfA
A6AeApAf
6.k.3.4.
View CustomTypes.elm
type UserStatus
= Regular
| Visitor
type alias User =
{ status : UserStatus
, name : String
}
-- other declaration of User
View ErrorReporting.elm
isReasonableAge : String -> Result String Int
isReasonableAge input =
case String.toInt input of
Nothing ->
Err "That is not a number!"
Just age ->
if age < 0 then
Err "Please try again after you are born."
@moxuse
moxuse / test
Created May 14, 2019
test snipet code
View test
test snipet code
View gist:89ff0122598ac520a77e518c7ecedcdc
(
OSCdef(\orca_osc, {|msg|
var note;
msg.postln;
// note = msg[1];
// s.sendMsg("/s_new", \your_synth, s.nextNodeID, 0, 1, \note, note);
}, \p);
)
@moxuse
moxuse / Tidal.ghci
Last active May 10, 2018
Boot Tidal Code
View Tidal.ghci
:show paths
:set prompt ""
:module Sound.Tidal.Context
:load your/path/to/UnityOsc.hs -- <- maybe ~/UnityOsc
(cps, nudger, getNow) <- cpsUtils'
@moxuse
moxuse / triangle stripe
Last active Dec 13, 2017
triangle stripe
View triangle stripe
void ofApp::triangleMesh(ofMesh && mesh, float radius) {
ofPoint capturedPoint, capturedPoint2;
for (int i = 0; i < 25; i+=2) {
mesh.addIndex(i);
mesh.addIndex(i + 1);
}
for (int i = 0; i < 25; i++) {
@moxuse
moxuse / OSCController.cs
Last active Jan 8, 2017
OSCController.cs
View OSCController.cs
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityOSC;