Skip to content

Instantly share code, notes, and snippets.

Rob robianmcd

Block or report user

Report or block robianmcd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f70cee03cdb94dbfc1cd5dea2836c269
Equations
Equations are what really gives MSS it's power. You could be able to cover most of the basic things you want to do with MSS just using the presets but if you want to do something more advanced you'll need to learn to write some equations. This page provides a reference to the various operators, variables, constants, and functions available to you while creating an equation.
Operators
| Operator | Name | Description | Example | Result |
|:-------------|:---------|:----------------|:------------|:-----------|
| a + b | Addition | | 1 + 2 | 3 |
| a - b | Subtraction | | 3 - 1 | 2 |
View built-in-variables.md
Name Description
x, input These variables represent the input value from the an incoming message. The value taken from the incoming message is specified by the Input dropdown menu under the transformation graph. For example if the input message type is Note and the "velocity" is selected in the input dropdown then "x" or "input" will be the velocity of an incoming note. This value will be between 0 and 1.
d1, chan, channel The first piece of data in an incoming message. For a MIDI message this will be the channel. You should use the "input" variable instead of this unless you need to use multiple types of input (e.g. velocity and channel). This value will be between 0 and 1.
d2, notenum, ccnum The second piece of data in an incoming message. For a MIDI note message this will be the note number. You should use the "input" variable instead of this unless you need to use multiple types of input (e.g. velocity and note number). This value will be between 0 an
View model.py
import numpy
import pandas
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import cross_val_score
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import StratifiedKFold
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import Pipeline
@robianmcd
robianmcd / server.js
Created Jan 24, 2017
static express server
View server.js
let express = require('express');
let app = express();
let path = require('path');
app.use(express.static(path.join(__dirname, '.')));
app.all('/*', function (req, res) {
res.sendFile('index.html', {root: __dirname});
});
View server.js
/**
* Module dependencies.
*/
var express = require('express');
var https = require('https');
var path = require('path');
var fs = require('fs');
var httpProxy = require('http-proxy');
//Solution for forwarding from http to https taken from
@robianmcd
robianmcd / index.html
Created Mar 3, 2015
Attempt to watch dom element
View index.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<input id="myInput" type="checkbox"/>
<script>
@robianmcd
robianmcd / license
Last active Aug 14, 2018
Polyfill ES6 Promise in Angular 1.3+
View license
var app = angular.module('myApp');
app.run(['$q', '$window', function($q, $window) {
$window.Promise = function(executor) {
return $q(executor);
};
$window.Promise.all = $q.all.bind($q);
$window.Promise.reject = $q.reject.bind($q);
$window.Promise.resolve = $q.when.bind($q);
You can’t perform that action at this time.