PEACE BE WITH YOU alt (2015) and PEACE BE WITH YOU 2 alt (2015) for realtime Android Csound Arthur B. Hunkins - arthunkins.com - abhunkin@uncg.edu including ADDENDUM for PEACE BE WITH YOU OSC (2015) and PEACE BE WITH YOU 2OSC (2015) with custom TouchOSC GUI PEACE alt and PEACE 2 alt are Csound files (.csd) designed to be performed by several of the alternative Android Csound apps. These apps are known as Csound6a.apk and Csound6c.apk (both Csound6.01), and they require Android OS 2.3 or higher. These alternatives are downloadable from http://arthunkins.com/Android_Csound_Apps.htm . (An *alternative* Android Csound .apk is required, since their user interfaces include a greater number of sliders and buttons; 9 or more sliders - as well as 9 buttons - are needed for these compositions. Due to the expanded user interface, tablets 7" or larger are most appropriate for PEACE alt and PEACE 2 alt (though smaller devices are still possible). PEACE 2 alt is performable only on Csound6c.apk, as it requires 12-16 sliders. PEACE alt can be performed on the Csound6a.apk as well, but *only when the Pan Mode "controller" option is not selected*. (The latter option requires 12 controllers instead of 9.) Importantly, both works require a run-time console display (see further below); Csound6c includes a small console toward the top of the screen, whereas Csound6a has a more substantial one at bottom. There are two ways of preparing for performance, depending on whether or not a computer is available. (Preparation is simpler if you have a computer.) With a computer: 1) Either download and install one of the appropriate alternative Csound.apk's mentioned above to your Android device, or download it to your computer, copy it via thumb drive or USB cable to your device (Download folder) and install it. 2) Download PeacealtAndroid.zip to your computer (if you haven't already) and unzip it, then copy PeacealtAndroid.csd and/or Peace2altAndroid.csd via thumb drive or USB cable to a folder (perhaps the Music folder or a new Csound folder) on your device. Without a computer: 1) Download and install your selected alternative Csound.apk to your Android device. 2) Unless already installed, download and install the AndroZip File Manager app from play.google.com . (Note: the WinZip app does not extract zip archives!) 3) Directly download PeacealtAndroid.zip to your device and use AndroZip to extract the archive to a folder of your choice (perhaps the Music folder or a new Csound folder). After installing the app and copying one or both .csds to your device, run Csound5a (or Csound6a or Csound6c), and Browse to (Open) this .csd and select it. GENERAL INFORMATION and WHAT THE SLIDERS DO PEACE BE WITH YOU utilizes 9 basic sliders for 3 "tones"; and PEACE BE WITH YOU 2, 12 sliders for 4 tones. (An additional set of 3 or 4 sliders determines MANUAL PAN position for the tones, when this option is selected via Button 2 - see below.) All "tones" are identical (this includes the set of inharmonic partials that determines tone quality.) It is the set of three controllers that independently vary their pitch, volume and tone color (spread of inharmonic partials). The first controller per set determines volume; the second, frequency (through an approximately 2-octave range from 400Hz up, and called the "Frequency Factor"); the third, inharmonic content/spread. At zero, this third control adds no inharmonics; when raised, it adds increasing varied inharmonic content over an expanding range of partials. Due to filtering, this content lies primarily above the basic pitch. Also, since random variation is added to this setting, the inharmonics present, and their emphasis, constantly change within the overall spectrum. The *total* spectrum, however, is constant, and is always relative to the current basic pitch as determined by the second controller. WHAT THE BUTTONS DO Buttons 1-5 select among the 5 available modulation frequencies. These frequencies are, in order: 121Hz (the default), 140Hz, 148Hz, 174Hz and 184Hz. Buttons 6-9 select a Pan Mode. Button 6 specifies "fixed" (L, middle, R for Peace; or L, .33, .67, R for Peace 2). Button 7 = "controller" mode (sliders 10-12 control pan position for Peace [3 tones]; sliders 13-16 for Peace 2 [4 tones]). Button 8 = "fixed random" mode, where each new "note" selects a different pan position. Button 9 selects "varying random" mode, where every note constantly, if slowly, varies its pan position. Buttons are only selectable prior to the onset, via amplitude slider, of the first note. During this period, all selections are displayed on the console output. PERFORMANCE INSTRUCTIONS 1) The second slider of a set (governing a note's "frequency factor" - ranging from 1 to 3.8) requires very precise adjustment, indeed to a precise MIDI integer. (This means that 128 specific values must be located on the given control!) Current frequency factors for all tones are printed to the console output - both during the initial Start period and throughout actual performance. In this way, very specific frequencies and beat patterns can be chosen at any time. 2) Except at the beginning and end of a performance at least two voices should be simultaneously sounding in both three- and four-voice versions. In the latter, three- and four-voice textures should predominate. 3) Each new note should be introduced as pure basic frequency with its third slider set to zero, so as to beat prominently with some partial of an already sounding note. This may well entail raising its level initially higher (to emphasize the beating), then lowering volume when you start adding inharmonics. Beat speed should be fairly slow to moderate - not to exceed 2-3Hz. 4) The two prime criteria for selecting a new frequency (as displayed on the console output) are: a) as stated above, that the new frequency should beat appropriately with an already sounding partial; and b) that the new sonority (with inharmonics) be euphonious with other sounding notes. (The "euphoniousness" can be adjusted somewhat by the inharmonic spread that the third controller determines.) This requires careful preplanning of the note/tone sequence. In the final analysis, overall "euphiousness" is a more important factor than beating. 5) The above criteria can be met by testing various combinations of frequency factors and inharmonic spreads, and performing in sequence those that "work" together. Note that *frequency factors are only changed while a tone's volume is zero*. Care should be taken not to allow *any* frequency changes while a tone is sounding. (On the other hand, when a tone is exiting, volume can be reduced either before or after inharmonics are zeroed [the third slider].) 6) Tones set to the same frequency factor will always sound euphonious. (This is of course true of both minimum [1] and maximum [3.8] factors. Since these values are easily set/tuned, they are excellent choices for beginnings and endings.) In general, "euphiousness" is enhanced when two or more tones are set to the same frequency factor. This is because small random frequency fluctuations that cause beating are built into the basic tones themselves. MISCELLANEOUS OBSERVATIONS Note that only one control can be operated at a time. With the first and third sliders of each set, *glide smoothly* from a previous setting to a new one; no jumps. Prior to START, set all sliders to zero. After START, make different initial button and/or slider selections if desired. Important: Sliders 1, 4, 7 (and 10) should only be moved *after* any other selections have been activated. These are the amplitude sliders that actually begin the performance. In case of audio glitches, reduce the value of sr (Sample Rate) in any text editor (it is toward the top of PeacealtAndroid.csd and Peace2altAndroid.csd, which are simple text files). Set sr progressively to 32000, 22050, 11025 or 8000 until glitching disappears. When left to run unabated, performance will expire in one hour. ADDENDUM for PEACE BE WITH YOU OSC (2015) and PEACE BE WITH YOU 2OSC (2015) with custom TouchOSC GUI These two pieces are modified versions of PEACE BE WITH YOU and PEACE BE WITH YOU2 that substitute a custom TouchOSC GUI for the generic Csound6 performance interface (including those of the alternative Csound .apk's). They require: 1) the stock Android Csound6.apk *built with Csound 6.05 or later* (rather than an alternative Csound app); 2) the TouchOSC app from the Google Play Store. #1 is available at: http://sourceforge.net/projects/csound/files/csound6/Csound6.05/ #2 from: https://play.google.com/store/apps/details?id=net.hexler.touchosc_a&hl=en The two apps run simultaneously on your device, communicating via Open Sound Control (OSC). They run on any size Android smartphone or tablet. IMPORTANT NOTE: This arrangement only works on Android OS versions 4.4.2 and above (for example, it will not work on 4.2.2). TouchOSC costs $4.99 and must be installed directly to your device. The required custom GUI (called a Layout) is included in this distribution. Only setup is different. In all other respects these version are identical to PeacealtAndroid and Peace2altAndroid. SETUP 1) Download and install the particular Android Csound6.apk referenced above. (This may be done either via direct download from Sourceforge to your device, or to a computer - then via USB cable to your device.) 2) Install TouchOSC from the Google Play Store directly to your device (see above). Note that you can install TouchOSC to multiple devices for a single purchase price. (Also, with the free Editor, you can create/modify your own custom GUIs.) 3) Copy PeaceOSC.csd, PeaceOSC.touchosc, and/or Peace2OSC.csd plus Peace2OSC.touchosc via USB cable to your device (suggestion: to a "Music" folder). 4) Run Csound6 and Open Peace(2)OSC.csd (in your "Music" folder). Don't START yet. 5) Run TouchOSC, and in Settings click OSC. Here set Host to: 127.0.0.1 and make sure the outgoing Port is 8000 and incoming, 9000. 6) Back in Settings, click Layout. Select Add from File, browse to your "Music" folder and select Peace(2)OSC.csd. Select it again in Layout, and (back in Settings), click Done. 7) Make sure all sliders are set to zero. 8) Returning to Csound6, click START. (Note: it is important to load the touchosc layout before starting Csound.) 9) In TouchOSC, select any Mod Frequency and/or Pan Mode buttons you wish. (The defaults and/or your selections are indicated on-screen.) 10) Begin performing on the custom GUI by raising one of the amplitude sliders. (Note that the only way to shange button selection once performance has begun, is to stop and restart Csound with all sliders at zero.) 11) When finished, return to Csound6 to STOP.