def makeThickSine():
sineNoiseStd = 0
seqLen = 750
squareLen = seqLen / 17.
sineLen = int(squareLen * 4)
sine1 = synth.sines(sineLen, noiseStd=sineNoiseStd)
sb.set_style('white')
_, ax = plt.subplots()
ax.plot(sine1, lw=16)
ax.set_xlim([-squareLen, len(sine1) + squareLen])
ax.set_ylim([-2, 2])
sb.despine(left=True)
plt.show()
# def makeWeirdSine(squareLen, numSquares, sineNoiseStd, **kwargs):
# firstQuarterFrac = .4
# length = int(squareLen * numSquares)
# firstQuarterLen = int(firstQuarterFrac * length)
# sine1 = synth.sines(firstQuarterLen, periods=.25, **kwargs)
# sine2 = synth.sines(firs)
# sine2 = synth.warpedSine(sineLen, firstHalfFrac=.67,
# noiseStd=sineNoiseStd)
评论列表
文章目录