Skip to content

Instantly share code, notes, and snippets.

@moxuse
moxuse / chord_prog.orca
Last active May 16, 2019 09:32
Chord Progress #orcλ
....wC4.......
dC4.114Q#ABCD#
.14T2341#ADBC#
.1V3A2..#ACDB#
..2V5A1.#CABD#
...3V6A2......
....4V8A1.....
.....5V9......
@moxuse
moxuse / lineup.orca
Last active May 15, 2019 06:16
Lineup Pattern #orcλ
...2C6.......
..2Z0........
...1..Q.abcde
.3.C4.a......
4C51A.J......
.1Y11Xa......
.....dcdcb...
.....dadab...
.....eceac...
.....eceac...
@moxuse
moxuse / grid.orca
Created May 15, 2019 06:14
Grid Pttern #orcλ
1C4C1C2C
A1A0A1A6
1A1A1A7A
A2A2A8A7
2A4AaAfA
A6AeApAf
6.k.3.4.
@moxuse
moxuse / CustomTypes.elm
Created May 15, 2019 06:07
CustomTypes
type UserStatus
= Regular
| Visitor
type alias User =
{ status : UserStatus
, name : String
}
-- other declaration of User
@moxuse
moxuse / ErrorReporting.elm
Created May 15, 2019 06:01
Error Reporting
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 09:04
test snipet code
test snipet code
@moxuse
moxuse / gist:89ff0122598ac520a77e518c7ecedcdc
Created May 7, 2019 12:27
ORCA to SC OSC send sample
(
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 05:40
Boot Tidal Code
: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 December 13, 2017 05:38
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 January 8, 2017 02:32
OSCController.cs
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityOSC;