This commit is contained in:
parent
d1dea1483f
commit
0ed005e35f
@ -5,8 +5,6 @@ Testing code for power spectra
|
||||
"""
|
||||
import numpy as np
|
||||
from lasp import PowerSpectra, Window
|
||||
# import matplotlib.pyplot as plt
|
||||
# plt.close('all')
|
||||
|
||||
def test_ps():
|
||||
"""
|
||||
|
@ -1,37 +0,0 @@
|
||||
#!/usr/bin/python3
|
||||
import numpy as np
|
||||
from lasp import SLM
|
||||
|
||||
|
||||
|
||||
nframes = 0
|
||||
samplerate = 48000
|
||||
omg = 2*np.pi*1000
|
||||
|
||||
|
||||
|
||||
# def mycallback(input_, nframes, streamtime):
|
||||
# t = np.linspace(streamtime, streamtime + nframes/samplerate,
|
||||
# nframes)[np.newaxis,:]
|
||||
# outp = 0.1*np.sin(omg*t)
|
||||
# return outp, 0
|
||||
|
||||
# if __name__ == '__main__':
|
||||
# pa = RtAudio()
|
||||
# count = pa.getDeviceCount()
|
||||
# # dev = pa.getDeviceInfo(0)
|
||||
# for i in range(count):
|
||||
# dev = pa.getDeviceInfo(i)
|
||||
# print(dev)
|
||||
|
||||
# outputparams = {'deviceid': 0, 'nchannels': 1, 'firstchannel': 0}
|
||||
# pa.openStream(outputparams, None , Format_FLOAT64,samplerate, 512, mycallback)
|
||||
# pa.startStream()
|
||||
|
||||
# input()
|
||||
|
||||
# pa.stopStream()
|
||||
# pa.closeStream()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user