I am studying tuning and harmony, and have been using CSound to generate examples. I thought it best (and easiest) to use pure sine waves to better hear differences in tuning. My sound card and monitor speaker appear to have trouble with sounding that, but the result has been just bearable if ugly, and I haven't blown out my speakers yet.
However now I put pages on-line and when playing the .ogg from the Internet the result awful: static noise with a melody.
My PC can play anything Youtube throws at it fine.
Any advise on how to make better pure-pitch notes are welcome.
-+rtaudio=alsa ; On Linux use ALSA kernel sound driver
;-o PytEAE.wav --format=wav ; for file output in WAV format
-o PytEAE.ogg --ogg ; for file output in OGG format
; + defaults:
kr = 4410
ksmps = 10
sr = 44100
nchnls = 2 ; stereo
0dbfs = 1 ; normalized
instr 1, sine
; play a single note as pure sine wave
iDur=p3-p2 ; duration of note
iFreq=p4 ; base frequency
iNote=p5 ; ratio for note in ladder
; ADSR envelope parameters:
iRel=0.2 ; added to note duration
kEnv adsr iAtt, iDec, iSus, iRel
aSig oscils iAmp, iFreq*iNote, 0, 0
outs aSig, aSig
; Pythagorean scale, descending, centered on A
i 1 0 1 440 [3/2]
i 1 ^+1.0 . . [4/3]
i 1 ^+1.0 . . [32/27]
i 1 ^+1.0 . . [9/8]
i 1 ^+1.0 . . [1/1]
i 1 ^+1.0 . . [8/9]
i 1 ^+1.0 . . [64/81]
i 1 ^+1.0 . . [3/4]