mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 05:28:41 +00:00
refactor: simplify test runtime
This commit is contained in:
parent
bcb1da826e
commit
5cef1a8cf9
@ -74,72 +74,31 @@ const toneHelpersMocked = {
|
|||||||
highpass: mockNode,
|
highpass: mockNode,
|
||||||
};
|
};
|
||||||
|
|
||||||
strudel.Pattern.prototype.osc = function () {
|
[
|
||||||
return this;
|
'osc',
|
||||||
};
|
'csound',
|
||||||
strudel.Pattern.prototype.csound = function () {
|
'tone',
|
||||||
return this;
|
'webdirt',
|
||||||
};
|
'pianoroll',
|
||||||
strudel.Pattern.prototype.tone = function () {
|
'speak',
|
||||||
return this;
|
'wave',
|
||||||
};
|
'filter',
|
||||||
strudel.Pattern.prototype.webdirt = function () {
|
'adsr',
|
||||||
return this;
|
'webaudio',
|
||||||
};
|
'soundfont',
|
||||||
|
'tune',
|
||||||
// draw mock
|
'midi',
|
||||||
strudel.Pattern.prototype.pianoroll = function () {
|
'_scope',
|
||||||
return this;
|
'_spiral',
|
||||||
};
|
'_pitchwheel',
|
||||||
|
'_pianoroll',
|
||||||
// speak mock
|
'_spectrum',
|
||||||
strudel.Pattern.prototype.speak = function () {
|
'markcss',
|
||||||
return this;
|
].forEach((mock) => {
|
||||||
};
|
strudel.Pattern.prototype[mock] = function () {
|
||||||
|
return this;
|
||||||
// webaudio mock
|
};
|
||||||
strudel.Pattern.prototype.wave = function () {
|
});
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype.filter = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype.adsr = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype.webaudio = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype.soundfont = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
// tune mock
|
|
||||||
strudel.Pattern.prototype.tune = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
strudel.Pattern.prototype.midi = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
strudel.Pattern.prototype._scope = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype._spiral = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype._pitchwheel = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype._pianoroll = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype._spectrum = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
strudel.Pattern.prototype.markcss = function () {
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
const uiHelpersMocked = {
|
const uiHelpersMocked = {
|
||||||
backgroundImage: id,
|
backgroundImage: id,
|
||||||
@ -193,7 +152,6 @@ evalScope(
|
|||||||
loadcsound,
|
loadcsound,
|
||||||
setcps: id,
|
setcps: id,
|
||||||
Clock: {}, // whatever
|
Clock: {}, // whatever
|
||||||
// Tone,
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user