Skip to content

docs(score_generation): update docs to show how to amend quantization manually #310

Description

@victoria-mckinney

for example

# try quantising manually
import drumscript as ds
from drumscript.notation_generator.score_builder import build_score

# y, sr = ds.load_audio("drums.wav", sr=44100)
y, sr = ds.load_audio(AUDIO_FILE_10, sr=44100)
y = ds.normalise_audio(y)
tempo = ds.detect_tempo(y)
onsets = ds.detect_onsets(y, sr)
events = ds.classify_events(y, sr, onsets)


# Use 8th note grid (8) instead of default 16th (16)
# build_score(events, tempo, quantization_subdivision=8)
build_score(events, tempo, quantization_subdivision=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions