Updated installation scripts to reflect changes in pysource modules

This commit is contained in:
2015-09-14 16:26:16 +01:00
parent 2db9a853ec
commit 9d0b2681e7
5 changed files with 7 additions and 37 deletions
+4
View File
@@ -0,0 +1,4 @@
.DS_Store
*.wav
*.aiff
*.aif
-7
View File
@@ -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
-2
View File
@@ -1,5 +1,3 @@
PYTHONPATH="$1/code/pysource"
export PYTHONPATH
cd $1/code/
source ./bin/activate
echo `which python`
+3 -1
View File
@@ -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
-27
View File
@@ -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()