File: makespike.py

package info (click to toggle)
rust-rubato 0.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 476 kB
  • sloc: python: 262; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# Make a simple spike for testing purposes
import numpy as np


spike = np.zeros(2048, dtype="float64")
spike[0] = 1.0
spike[512]=1.0

spike.tofile("spike_1024.raw")