Updated installation scripts to reflect changes in pysource modules
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
*.wav
|
||||
*.aiff
|
||||
*.aif
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Download project
|
||||
git clone https://github.com/Pezz89/FYP_Max_prototype.git
|
||||
cd FYP_Max_prototype
|
||||
git submodule update --init --recursive
|
||||
cd code/pysource/pysound/
|
||||
git checkout dev
|
||||
@@ -1,5 +1,3 @@
|
||||
PYTHONPATH="$1/code/pysource"
|
||||
export PYTHONPATH
|
||||
cd $1/code/
|
||||
source ./bin/activate
|
||||
echo `which python`
|
||||
|
||||
@@ -6,4 +6,6 @@ virtualenv ./
|
||||
source ./bin/activate
|
||||
pip install numpy
|
||||
pip install matplotlib
|
||||
pip -v install -e ./pysource/
|
||||
pip -v install git+https://github.com/pezz89/fileops.git
|
||||
pip -v install git+https://github.com/pezz89/pysound.git
|
||||
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
import sys
|
||||
from pysource import pysound
|
||||
from scipy import signal
|
||||
from collections import defaultdict
|
||||
|
||||
|
||||
def main():
|
||||
# Read values from space seperated file to obtain grain sources, times and positions
|
||||
# in the new synthesized file.
|
||||
grain_data = defaultdict(list)
|
||||
with open("../data/MatchData.txt") as datafile:
|
||||
for line in datafile:
|
||||
entries = line.split(" ")
|
||||
grain_data[entries[1]].append(tuple(float(x) for x in entries[2:]))
|
||||
print grain_data
|
||||
|
||||
|
||||
|
||||
# Create new audio file
|
||||
|
||||
# For each grain in the
|
||||
window = pysound.AudioFile.gen_window("hanning", 100)
|
||||
print sys.executable
|
||||
print "It worked!"
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user