aboutsummaryrefslogtreecommitdiffstats
path: root/classes/ZZZES3.sc
diff options
context:
space:
mode:
Diffstat (limited to 'classes/ZZZES3.sc')
-rw-r--r--classes/ZZZES3.sc33
1 files changed, 33 insertions, 0 deletions
diff --git a/classes/ZZZES3.sc b/classes/ZZZES3.sc
new file mode 100644
index 0000000..686ad25
--- /dev/null
+++ b/classes/ZZZES3.sc
@@ -0,0 +1,33 @@
+ZZZES3 : ZZZ{
+
+ var out;
+
+ *new{
+ arg channels;
+ ^super.newCopyArgs(channels).init;
+ }
+
+ init{
+ out = Dictionary.new();
+ "Interfacing ZZZ ES-3, using the following channels:".postln;
+ (1..8).do({
+ arg item, i;
+ out.add(item -> super.channels[i]);
+ postln(item.asString ++ " -> " ++ super.channels[i].asString);
+ });
+ }
+
+ /**
+ * Returns the number of the hardware output on the system for a provided
+ * ES-3 output number
+ * @return system hardware output number
+ */
+ out{
+ arg output;
+ if((output > 0) && (output <= 8), {
+ ^out.at(output);
+ },{
+ ^nil;
+ });
+ }
+}