song_to_dnb_flip
Analyze any audio file and produce a drum and bass flip. Extracts tempo, key, and melody, then writes a DnB groove with optional melody and bass into the FL piano roll.
Instructions
One-shot: take any audio file and turn it into a DnB flip in the FL piano roll.
Pipeline:
Analyze the file (tempo, key, melody/notes).
Emit a DnB drum groove at
target_bpm,dnb_barsbars long.(optional) Add the extracted melody, quantized to the detected key, on top.
polyphonic=Truecaptures chords (Basic Pitch; needs thepolyphonicextra) instead of a single line.(optional) Drop in a sub-bass on the detected root.
Note: everything is written into the currently-open piano roll (single channel). For a proper mix, duplicate the channel in FL and route by MIDI range (drums 36-51, bass < 40, melody > 55).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_path | Yes | ||
| target_bpm | No | ||
| dnb_style | No | amen | |
| dnb_bars | No | ||
| include_melody | No | ||
| include_bass | No | ||
| polyphonic | No | ||
| clear_first | No |