Trying to turn it into 6/8
In [3]:
# Imports
%matplotlib inline
import pardir; pardir.pardir() # Allow imports from parent directory
import fibonaccistretch as fib
In [4]:
# Setting up basics
tresillo_rhythm = [1,0,0,1,0,0,1,0]
tempo = 93.0
In [ ]:
# Leads to 11/8
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=tresillo_rhythm,
target_rhythm=[1,0,0,1,0,0],
# overlay_clicks=True,
tempo=tempo)
In [ ]:
# Leads to 7/8
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=tresillo_rhythm,
target_rhythm=[1,0,1,0],
# overlay_clicks=True,
tempo=tempo)
In [ ]:
# Custom rhythm, kind of works jittery
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=[1,0,0,0,1,0,1,0],
target_rhythm=[1,0,0,1,0,0],
overlay_clicks=True,
tempo=tempo)
In [ ]:
# Works better
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=[1,0,1,0,1,0,1,0],
target_rhythm=[1,0,0,1,0,0],
overlay_clicks=True,
tempo=tempo)
In [ ]:
# Hear without clicks
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=[1,0,1,0,1,0,1,0],
target_rhythm=[1,0,0,1,0,0],
# overlay_clicks=True,
tempo=tempo)
In [7]:
plt_size = (16,2)
render_track = False
In [8]:
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=tresillo_rhythm,
stretch_factor=0,
overlay_clicks=True,
render_track=render_track,
plt_size=plt_size,
tempo=tempo)
Out[8]:
In [9]:
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=tresillo_rhythm,
stretch_factor=1,
overlay_clicks=True,
render_track=render_track,
plt_size=plt_size,
tempo=tempo)
Out[9]:
In [10]:
# Works better
fib.fibonacci_stretch_track("../data/humannature_30s.mp3",
original_rhythm=[1,0,1,0,1,0,1,0],
target_rhythm=[1,0,0,1,0,0],
overlay_clicks=True,
render_track=render_track,
plt_size=plt_size,
tempo=tempo)
Out[10]:
In [11]:
import matplotlib
from matplotlib.font_manager import findfont, FontProperties
matplotlib.rcParams['font.family']
font = findfont(FontProperties(family=['sans-serif']))
font
Out[11]:
In [12]:
reload(fib)
Out[12]:
In [ ]: