mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 20:48:27 +00:00
fix typo
This commit is contained in:
parent
eab86840d3
commit
729e0afdbe
@ -22,11 +22,12 @@ Pattern.prototype.csound = async function () {
|
|||||||
const deadline = time - currentTime;
|
const deadline = time - currentTime;
|
||||||
const midi = toMidi(getPlayableNoteValue(hap));
|
const midi = toMidi(getPlayableNoteValue(hap));
|
||||||
// TODO: find out how to send a precise ctx based time
|
// TODO: find out how to send a precise ctx based time
|
||||||
const ctime = `next_time(.000001)+${deadline.toFixed(6)}`;
|
// const ctime = `next_time(0.0001)+${deadline.toFixed(4)}`;
|
||||||
// const ctime = `${deadline.toFixed(6)}`;
|
const ctime = `${deadline.toFixed(8)}`;
|
||||||
const cmidi = `cpsmidinn(${midi})`;
|
const cmidi = `cpsmidinn(${midi})`;
|
||||||
const cgain = gain ? `ampdbfs(-32 + 32*${gain})` : `0`;
|
const cgain = gain ? `ampdbfs(-32 + 32*${gain})` : `0`;
|
||||||
const code = `schedule(1, ${ctime}, .125, ${cmidi}, ${cgain})`;
|
const code = `schedule(1, ${ctime}, .125, ${cmidi}, ${cgain})`;
|
||||||
|
// console.log('code', code);
|
||||||
csound.evalCode(code);
|
csound.evalCode(code);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
-o dac --port=10000
|
-o dac --port=10000
|
||||||
</CsOptions>
|
</CsOptions>
|
||||||
<CsInstruments>
|
<CsInstruments>
|
||||||
sr=48000x
|
sr=48000
|
||||||
ksmps=64
|
ksmps=64
|
||||||
nchnls=2
|
nchnls=2
|
||||||
0dbfs=1
|
0dbfs=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user