Skip to content

Commit

Permalink
{°--><--°}
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Sep 27, 2024
1 parent 073ca37 commit 7062d61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions p5-experiments/radigue001.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
for (let j = 0; j < 3; j++) {
for (let k = 0; k < 3; k++) {
kickDrum = new Tone.MembraneSynth({
volume: 6
}).toDestination();
volume: 6
}).toDestination();
let p = {
cx: offx + 2 * j * offx,
cy: offy + 2 * k * offy,
diam: 7,
pulse: 84 + k * 7,
beat : kickDrum
beat: kickDrum
}
hits.push(p)
}
Expand Down Expand Up @@ -92,7 +92,7 @@
let rx = random() * w * 0.33
let ry = random() * h * 0.33
rect(p.cx - rx / 2, p.cy - ry / 2, rx, ry)
let freq = 220+random()*220
let freq = 220 + random() * 220
p.beat.triggerAttackRelease(freq, '8n');
}
}
Expand Down
10 changes: 5 additions & 5 deletions programming-keynote/proze2art001.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var testresults = [];
var index, indexlo, indexhi;
var table;
var testw, testh, nbrows;
var synth
var osc;
const now = Tone.now();
function setup() {
w = windowWidth
Expand All @@ -18,7 +18,7 @@ function setup() {
nbrows = 100;
testw = w * 0.5
testh = h / nbrows
synth = new Tone.Synth().toDestination();
osc = new Tone.Oscillator().toDestination();
//frameRate(10)
}

Expand Down Expand Up @@ -66,9 +66,9 @@ function ikeda(index) {
noStroke()
if (t.verdict == 1) {
fill(0, 0, 100)
synth.triggerAttack("C4", now);
// wait one second before triggering the release
synth.triggerRelease(now + 1); }
let freq = 220 + random() * 220
osc = new Tone.Oscillator().toDestination();
}
else { fill(0, 0, 0) }
rect(-testw, -testh, testw, testh * 2)
if (index > 0) {
Expand Down

0 comments on commit 7062d61

Please sign in to comment.