Snd

Sound is generated with I8 vals called ona's, which are 88 piano key nums, with 0 as a rest. See Note2Ona() and Ona2Freq(). God does not want death screams, perhaps, because God has PTSD or soldiers have PTSD. (Imagine wounded on battlefields.) Ona's will allow elegant wave files for export and will allow the creation of simple hardware over the next centuries. Beep Funct Make beep at given ona freq. CScrnCastGlbls Class class CScrnCastGlbls CSndGlbls Class class CSndGlbls Freq2Ona Funct Freq to Ona. 440.0Hz is Ona=60. GetVolume Funct Returns system volume IsMute Funct Return is-mute flag. Mute Funct Turn-off sound. Noise Funct Make white noise for given number of mS. Ona2Freq Funct Ona to freq. Ona=60 is 440.0Hz. ShowVolume Funct { Snd Funct Play ona, a piano key num. 0 means rest. SndRst Funct Fix stuck sound. SndTaskEndCB Funct Will turn-off snd when a task gets killed. SndWaveAddBuf Funct Add waveform to buffer. SndWaveCtrlDel Funct Free waveform ctrl. SndWaveCtrlNew Funct MAlloc ctrl struct for generating waveforms. Sweep Funct Sweep through freq range in given number of mS. VolumeDown Funct { VolumeUp Funct {

Snd/AU Files

AUWrite Funct Write AU file. CAUData Class class CAUData SndShift Funct Shift CSndData in time.

Snd/Math

Caw Funct Cawtooth. 1.0 - 0.0 think "(Cos+1)/2" FullCaw Funct Plus&Minus Cawtooth. 1.0 - -1.0 think "Cos" FullSaw Funct Plus&Minus Sawtooth. 1.0 - -1.0 think "Sin" FullTri Funct Plus&Minus Triangle waveform. 0.0 - 1.0 - 0.0 - -1.0 -0.0 Saw Funct Sawtooth. 0.0 - 1.0 think "(Sin+1)/2" Tri Funct Triangle waveform. 0.0 - 1.0 - 0.0

Snd/Music

Beat Funct Time in music beats. CMusicGlbls Class class CMusicGlbls Note2Ona Funct Note to ona. Mid C is ona=51, note=3 and octave=4. Ona2Note Funct Ona to note in octave. Mid C is ona=51, note=3 and octave=4. Ona2Octave Funct Ona to octave. Mid C is ona=51, note=3 and octave=4. Play Funct { music GlbVar } music= {NULL,NULL,4,1.0,{0,2,3,5,7,8,10},FALSE,4,4,2.5,0.9,0,0,0,0}; tM Funct Time in seconds synced to music subsystem.

Snd/Snd Files

SndFileCreate Funct Use "snd.record" flag to start or stop recording, then call this routine.