Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Generate multiple samples with varying tempo, length, pattern and gaussian noise-levels using PySynth.

Notifications You must be signed in to change notification settings

eristime/pysynth_sample_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate multiple samples with varying tempo, length, pattern and gaussian noise-levels using PySynth.

Installation:

Install PySynth from https://github.com/mdoege/PySynth

Install requirements with pip:

pip install -r requirements.txt

Running

Run script to generate samples. Parameters can be modified also in main.py

python main.py sample_folder

Defining parameters:

parameters = {
    'tempo': {
        'start': 100,
        'end': 110,
        'interval': 5},  # (bpm_start, bpm_end, interval)
    'length': {
        'start': 1,
        'end': 1,
        'interval': 0},  # (start, end, interval) note: length in bars not in seconds
    'patterns': {
        'defined': ['8th-note', '4th-note'],
        'random': 3},  # ('random'), generate 5 random patterns
    'std': {
        'start': 1000,
        'end': 3000,
        'interval': 1000}
}

Notes:

Input folder is relative to main.py. Every key has to have a value defined. Ranges function the same as Python range()-function. Doesn't support generating only one sampple.

Pysynth http://mdoege.github.io/PySynth/ is provided with GPL licence and so is this software.

About

Generate multiple samples with varying tempo, length, pattern and gaussian noise-levels using PySynth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages