Skip to content

Commit

Permalink
D4 wave corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
electronut committed Jul 28, 2015
1 parent e75fa0a commit f03d33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karplus/sine.py
Expand Up @@ -12,9 +12,9 @@
sRate = 44100
nSamples = sRate * 5
x = np.arange(nSamples)/float(sRate)
vals = np.sin(2.0*math.pi*220.0*x)
vals = np.sin(2.0*math.pi*146.83*x)
data = np.array(vals * 32767, 'int16').tostring()
file = wave.open('sine220.wav', 'wb')
file = wave.open('sine146_83.wav', 'wb')
file.setparams((1, 2, sRate, nSamples, 'NONE', 'uncompressed'))
file.writeframes(data)
file.close()
Binary file added karplus/sine146_83.wav
Binary file not shown.

0 comments on commit f03d33b

Please sign in to comment.