DOMINUS DEUS SABAOTH (2017) for realtime Csound (PC and Android versions) ADDENDUM for version included in Beppi's Android app, QiBrd: Free Virtual Analog Synthesizer Arthur B. Hunkins abhunkin@uncg.edu www.arthunkins.com Sanctus, Sanctus, Sanctus Dominus Deus Sabaoth. Sanctus, from the Latin Mass THE BASIC VERSIONS - fixed, 50Hz fundamental pitch For PC's (all platforms): Dominus.csd - requires MIDI controller with 16 knobs/sliders (sliders, especially long-throw, are best) For Android devices (all smartphones and tablets - OS 4.1.1 and up): DominusAndroid.csd - requires either Csound6b.apk or Csound6c.apk, alternative Csound Android apps found (free) at: http://arthunkins.com/Android_Csound_Apps.htm Other Csound for Android apps will not work (they lack the required 16 sliders). THE ALTERNATE VERSIONS Alternate versions differ from the basic versions only in one respect: they permit a different fundamental than 50Hz to be selected - up to 75Hz (the range of a perfect fifth), These versions allow for varying methods of specifying this pitch, and in the case of PC versions, different numbers and types of MIDI controls. In all cases, however, 50Hz is the default - and preferred - value. For PC's: DominusPitch.csd - pitch is specified by editing the .csd text, substituting a new value for PITCH, which is defined toward the top of the file. Note that the number must be enclosed by #'s. DominusPitch17.csd - pitch is specified by a 17th knob/slider (MIDI controller # separately set by NOTECTRL, also toward the top of the file). Set the pitch by moving the control immediately (or at any time) after Start. This controller unavailable when CHAN is set to 0 (a special case where all 16 channels are assigned, and all controllers #7). When this control is unused, the result is identical to Dominus.csd. DominusPitchButtons.csd - pitch is specified by a set of buttons, keys or pads all set as MIDI note #'s. The note #'s are contiguous; the first is set by the NOTE parameter (again toward top of .csd). Default is 60. In addition, NOTECHN determines the NOTE channel when CHAN = 0 (see above). Note selection, if other than button/key/pad 1 (the default 50Hz), is made immediately - or at any time - after Start. For Android Devices (same requirements as above): DominusAndroidPitch.csd - pitch is specified by editing the .csd text by substituting a different value for PITCH, defined toward the top of the file. The number must be enclosed by #'s. DominusAndroidPitchButtons.csd - the first 8 buttons specify approximately half-step pitch increments from 50 to 75Hz. Pitch selection, if other than button 1, is made immediately - or at any time - after Start. AUDIO ISSUES Performance of both versions requires excellent headphones, or a good set of speakers. The opening sound (in default versions) is a solo 50Hz sine wave, which should be heard, if barely. (The opening is more audible when the fundamental pitch is set higher, though this is not the preferred option.) In public performance a context of absolute silence should be prepared, both to be able to experience the opening, as well as to create a relaxed, meditative mood. Audio glitching may be a problem, especially in the Android version. Android devices only perform to their potential if WiFi is disabled and there are no connections to external elements (such as tethering to a computer or power supply). Otherwise, for Android, it may be necessary to reduce the Sample Rate (toward the top of the .csd) to 32000 or even 22050, until there are no more glitches. (A rate reduction to 22050 will be necessary for OS's earlier than 5; even then, fundamental pitches higher than about 62Hz begin to exhibit unwanted foldover inharmonics.) For PC, the Sample Rate reductions are to 44100 or 32000. (Changes are made by any text editor.) Of course, the higher the Sample Rate, the better the sound quality. ADDITIONAL EDITS TO PC VERSIONS OF DOMINUS DEUS SABAOTH All PC versions may require further editing. First, under - again near the top of the .csd, you'll need to adapt for Linux if you are on other than a Windows or Mac system. (Recall that an opening semicolon comments out a row of code; removing the semicolon implements the row). If you have a single MIDI device, the default -M0 is fine. If your console output includes an "unrecognized MIDI device" error, look for the MIDI device list, and substitute your appropriate device number for the zero in -M0; then rerun Csound. (If you have more than one audio output device, you may need to follow a similar procedure for -odac, appending the appropriate device number - e.g., -odac6. The default is effectively -odac0, the number of your usual stereo device.) Then there are additional orchestra variables (also listed toward the top of the .csd): CHAN, CTRL1 and CTRL2. These will likely need modification to accommodate your particular MIDI controller. (Optionally, you could program your controller for this composition's defaults.) CHAN defines the MIDI Channel your controller is sending on (default is 1, the normal channel). A special code, CHAN "0", indicates that your MIDI device sends continuous controller (CC) 7 messages on all 16 channels. In all *other* cases, CTRL1 specifies the beginning controller number of 8 successive controls, and CTRL2 for a second set of 8. (Default for CTRL1 = CC 20; for CTRL2, CC 28.) Substitutions must always be enclosed by #'s. PERFORMANCE Performance follows the accompanying score. PERFORMANCE SCORE (for both PC and Android versions) Be sure any necessary edits are made to appropriate .csd before starting Csound. Preset all knobs/sliders to 0. Set fundamental's pitch control (if other than the default 50Hz) only after Start. Move only one controller at a time. All moves are slow and even; pauses between moves are at the performer's discretion. The opening should be audible, but barely (especially if it is a 50Hz sine wave). The maximum, quite loud level is near the end; test it with all controllers full on, except for the 16th controller which is at 0. For knobs/sliders: Maximum = 1; midway = .5. The controllers are numbered as a single basic set of 16. Slider/Knob: 1 Move to: 1 2 1 3 1 4 .5 5 .5 6 .5 7 .5 8 .5 9 .5 10 .5 5 1 7 1 9 1 4 1 6 1 8 1 10 1 11 1 12 .5 13 1 14 1 (VERY SLOW) 12 1 15 1 VERY SLOW - STAY LONG 13 .5 16 1 VERY SLOW ADDENDUM for version included in Beppi's Android app, QiBrd: Free Virtual Analog Synthesizer The Android version of this work has been adapted as an instrument for Beppi's app, QiBrd. The instrument's name is Dominus. QiBrd is available here: https://play.google.com/store/apps/details?id=beppisapps.solosynth&hl=en or by searching for QiBrd in the Google play store. QiBrd is designed for smartphones only, and requires Android OS 5.0+. Following the preliminary steps listed below, DOMINUS DEUS SABAOTH may be performed within the app. (Parameters 1-16 correspond to Sliders/Knobs 1-16.) Note that: 1) performance of this app's controls is somewhat more difficult (and less intuitive) than with all other versions - including Android; and 2) as compared to non-Android versions, audio fidelity is limited - high, and particularly low frequencies are noticeably absent. The lack of bass will likely require a higher fundamental frequency than the (preferred) default of 50Hz. Preliminary Steps: 1) After selecting the Dominus instrument (tap the name box in upper right corner), press the Reset icon (it looks like Repeat). 2) Drag the setting for Parameters1/2 and 3/4 to zero (bottom left of box). 3) Press the Lock icon (immediately above Reset). 4) Drag the multitouch pad setting (Overall Volume/Pitch) to the upper left corner. (For a higher pitch - and more audible fundamental, drag the setting to the right along the upper border; this will raise pitch from the default 50Hz to a maximum of 75Hz.)