diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 00:27:33 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 00:27:33 +0200 |
| commit | 367aaaa101293c0da641a82b2a2e3a03ce09251f (patch) | |
| tree | fd25aa3659a5695fbf5a82c965dbe160a1276d04 /model.py | |
| parent | 0b2ae54eb620b3f70e082cb46ffade8571184d04 (diff) | |
lol typo
Diffstat (limited to 'model.py')
| -rw-r--r-- | model.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -326,8 +326,8 @@ class PrimedGenerator(Runner): q_levels = self.model.q_levels q_width = 64 - q_min = q_width - q_max = q_levels - (q_width*2) + q_min = int(q_levels / 2 - q_width / 2) + q_max = int(q_levels / 2 + q_width / 2) print("_______-___-_---_-____") print("_____________--_-_-_______") @@ -342,12 +342,12 @@ class PrimedGenerator(Runner): def _sin(x): primer_freq = float(prime_param_a) for i in range(n_samples): - x[:, i] = int((math.sin(i/44100 * primer_freq) + 1) / 2 * (q_max - q_min) + q_min) + x[:, i] = int((math.sin(i/44100 * primer_freq) + 1) / 2 * (q_width) + q_min) return x def _saw(x): primer_freq = float(prime_param_a) for i in range(n_samples): - x[:, i] = int((math.sin(i/44100 * primer_freq) + 1) / 2 * (q_max - q_min) + q_min) + x[:, i] = int((math.sin(i/44100 * primer_freq) + 1) / 2 * (q_width) + q_min) return x sequence_lookup = { |
