This file contains hidden or 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
import("stdfaust.lib"); | |
f = hslider("v:brass/h:[0]midi/[0]freq[style:knob]",440,50,1000,0.01); | |
gain = hslider("v:brass/h:[0]midi/[2]gain[style:knob]",0.5,0,1,0.01); | |
envAttack = hslider("v:brass/h:[0]midi/[3]envAttack[style:knob",1,0,30,0.01)*0.001; | |
s = hslider("v:brass/h:[0]midi/[4]sustain[hidden:1][midi:ctrl 64][style:knob]",0,0,1,1); | |
t = button("v:brass/[2]gate"); | |
gate = t+s : min(1); | |
envelope = gate*gain : si.smooth(ba.tau2pole(envAttack)); |
This file contains hidden or 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
( | |
t = TempoClock.new; | |
f = Routine.new({(0..).do({|ind| ind.yield})}); | |
~cat = "meow"; | |
p = Pbind( | |
/*arbitrary pattern to specify the rhythm - can make it a Pfunc that references external variables | |
so that the rhythm can be generatively controlled by external data (eg midi or osc or whatever) | |
*/ | |
\delta, Pfunc({|argEv| var wt = ((f.next+1)*1.0); [argEv, wt].postln; wt.rand}), |
This file contains hidden or 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
import org.openrndr.application | |
import org.openrndr.color.ColorRGBa | |
import org.openrndr.animatable.Animatable | |
import org.openrndr.animatable.easing.Easing | |
import org.openrndr.draw.* | |
import org.openrndr.extra.olive.oliveProgram | |
fun main(args: Array<String>) { | |
application { |
This file contains hidden or 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
import org.openrndr.application | |
import org.openrndr.color.ColorRGBa | |
import org.openrndr.color.mix | |
import org.openrndr.draw.* | |
import org.openrndr.extra.olive.oliveProgram | |
import org.openrndr.extras.color.presets.MEDIUM_AQUAMARINE | |
import org.openrndr.extras.color.presets.TOMATO | |
import kotlin.math.cos | |
import kotlin.math.sin |
This file contains hidden or 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
import org.openrndr.application | |
import org.openrndr.color.ColorRGBa | |
import org.openrndr.draw.* | |
import org.openrndr.extra.olive.oliveProgram | |
import kotlin.math.cos | |
import kotlin.math.sin | |
fun main(args: Array<String>) { | |
application { |
This file contains hidden or 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
/Users/avneeshsarwate/Library/Java/JavaVirtualMachines/azul-16.0.2/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=53523:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/avneeshsarwate/openrndr-template/build/classes/kotlin/main:/Users/avneeshsarwate/openrndr-template/build/resources/main:/Users/avneeshsarwate/.m2/repository/org/openrndr/openrndr-ffmpeg/0.5.1-SNAPSHOT/openrndr-ffmpeg-0.5.1-SNAPSHOT.jar:/Users/avneeshsarwate/.m2/repository/org/openrndr/extra/orx-gui/0.5.1-SNAPSHOT/orx-gui-0.5.1-SNAPSHOT.jar:/Users/avneeshsarwate/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar:/Users/avneeshsarwate/.m2/repository/org/openrndr/extra/orx-git-archiver/0.5.1-SNAPSHOT/orx-git-archiver-0.5.1-SNAPSHOT.jar:/Users/avneeshsarwate/.m2/repository/org/openrndr/extra/orx-olive/0.5.1-SNAPSHOT/orx-olive-0.5.1-SNAPSHOT.jar:/Users/avneeshsarw |
This file contains hidden or 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
document.body.innerHTML = ` | |
<div id="videoContainer"></div> | |
<div id="textEntryContainer"> | |
<textarea id="urlInput" name="w3review" rows="4" cols="50"> | |
paste from the google sheet here | |
</textarea> | |
<button id="playlistButton">click here to make playlist</button> | |
</div> |
This file contains hidden or 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
//how to install/import an editor with native es6 modules without having | |
//to deal with JS builds | |
// npm install ace-builds | |
/* | |
import * as acemodule from './node_modules/ace-builds/src-noconflict/ace.js'; | |
let editor = ace.edit('container-div'); | |
*/ | |
// https://stackoverflow.com/a/49245333 | |
// https://github.com/AvneeshSarwate/graphicsLivecoding/blob/master/editorSetup.js |
This file contains hidden or 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
( | |
var clock, midiOut, midiNote, bpm; | |
MIDIClient.init; | |
MIDIClient.destinations.postln; | |
//define these however you like | |
midiNote = 60; | |
bpm = 20; |
This file contains hidden or 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
var w = 1280*1.2, | |
h = 720*1.2; | |
function setup(){ | |
createCanvas(w, h); | |
} | |
var cos = Math.cos; | |
var sin = Math.sin; | |
var sinN = n => (sin(n)+1)/2; //sin normalized [0-1] | |
var cosN = n => (cos(n)+1)/2; //cos normalized [0-1] |
NewerOlder