Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / SCClassLibrary / Common / Audio / CheckBadValues.sc
blobad9acda0d100cda06dcec895d94051fbb20e03b9
1 CheckBadValues : UGen {
3         *ar {arg in = 0.0, id = 0, post = 2;
4                 ^this.multiNew('audio', in, id, post);
5         }
7         *kr {arg in = 0.0, id = 0, post = 2;
8                 ^this.multiNew('control', in, id, post);
9         }
11         checkInputs {
12                 if ((rate==\audio) and:{ inputs.at(0).rate != \audio}) {
13                         ^("audio-rate, yet first input is not audio-rate");
14                 };
15                 ^this.checkValidInputs
16         }