In [1]:
import sys
In [2]:
sys.path.append('/Users/spacecoffin/Development')
In [3]:
sys.path
Out[3]:
In [4]:
import GravelKicker as gk
In [5]:
dir(gk)
Out[5]:
In [6]:
dir(gk.util)
Out[6]:
In [7]:
dir(gk.feature_extraction)
Out[7]:
In [8]:
dir(gk.generator)
Out[8]:
In [9]:
dir(gk.generator.gendy1)
Out[9]:
In [14]:
import GravelKicker as gk
import os
import pandas as pd
from datetime import datetime
from supriya.tools import nonrealtimetools
In [15]:
pmtx = gk.generator.gendy1.gen_params(rows=20)
df = gk.generator.gendy1.format_params(pmtx)
df.sort_values(["hash"])
Out[15]:
In [20]:
#this_dir = gk.util.get_cwd_parent_dir()
this_dir = '/Users/spacecoffin/Development/GravelKicker/__gen_files'
for i, row in df.iterrows():
session = nonrealtimetools.Session()
builder = gk.generator.gendy1.make_builder(row)
out = gk.generator.gendy1.build_out(builder)
synthdef = builder.build()
with session.at(0):
synth_a = session.add_synth(duration=10, synthdef=synthdef)
gk.util.render_session(session, this_dir, row["hash"])
In [47]:
dt = datetime.now().strftime("%Y_%m_%d") #_%H-%M-%S")
identifier = '{0}-len{1}'.format(dt, str(df.shape[0]))
In [53]:
df.to_pickle("{0}/df-{1}.p".format(this_dir, dt))
In [54]:
df.to_pickle("{0}/df.p".format(this_dir, dt))
Next, we need to:
In [ ]: