Old 06-20-2019, 11:24 PM   #1
PatrickMartin
Human being with feelings
 
PatrickMartin's Avatar
 
Join Date: Jun 2019
Location: Texas
Posts: 7
Default patrickmartin_Split at transients and create regions named from pitches

Split at transients and create regions named from pitches

Before:

After:


Overview

I created this script to assist me in chopping and exporting samples of pitched instruments for importing into Kontakt or hardware sampler synths.

In a nutshell, you can record a bunch of notes from your source into one, long audio file and this script will split the recording at the transients.

Next, it will shorten each part by the amount you specify, and apply a logarithmic fade-out to each part of the duration you specify.

But wait, there's more: it will then bounce each audio part to a MIDI take at high-speed and "de-noise" the resulting MIDI part by deleting any notes that are shorter than the duration you specify. This prepares the groundwork for the next processing phase...

...wherein a region is created for each note part, with the region name consisting of the note name and an ordinal number. For example, if you recorded three C#'s in the 2nd octave and an F# in the 3rd octave, the regions would be named C#2_1, C#2_2, C#2_3 and F#3_1.

Finally, it will automatically enable these regions in the Render Matrix for the parent track.

All of these actions are encapsulated in a single undo point so that you can easily try different settings until you achieve the desired results.

At this point, you can go into the Region Render Matrix and render out your individual sample files, all named according to pitch.

Dependencies

SWS Extension (used for splitting at transients)

Setup
  • Required: Ensure you have a saved ReaTune preset with the Send MIDI events when pitch changes box checked. Leave all the other options in ReaTune at their default values. (This step will be required until such time as the API allows ReaTune parameters to be set at run-time).
  • Recommended: Create a Render Matrix preset to name your rendered files using wild cards, for example: $project\$track\$region
Configuration

You can change the values of the following constants in the USER CONFIG AREA section of the script to achieve optimum results:
Code:
uc_reatune_midi_out_preset_name = "NoCorrection_OutputPitchMIDI"
uc_autofade_seconds = 1
uc_trim_end_seconds = 1
uc_note_min_seconds = 1
Instructions
  1. Ensure Setup is complete
  2. Drag your audio file into Arrange Window to create a track
  3. Select the audio item
  4. Run the script
  5. Go to View/Region Render Matrix
  6. Click Render
  7. Select your render preset or enter desired settings
  8. Click Render xx files.. button

Change Log

06/21/2019
  • Initial: 1.0beta

Last edited by PatrickMartin; 06-21-2019 at 11:09 AM.
PatrickMartin is offline   Reply With Quote
Old 06-21-2019, 03:16 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,919
Default

Hmmm Im confused, is it a script you made or a request ?


The commob way of doing is to convert audio to MIDI and do the editing from this MIDI data. I already have some scripts to split items from a MIDI track


The main advantage is you can access various very performant pitch detection software with different algorithm based on the source (chords, bass, voice etc..). Then you can clean the analyses by hand which is very nice too for exrra precision.
X-Raym is offline   Reply With Quote
Old 06-21-2019, 05:24 AM   #3
PatrickMartin
Human being with feelings
 
PatrickMartin's Avatar
 
Join Date: Jun 2019
Location: Texas
Posts: 7
Default

Quote:
Originally Posted by X-Raym View Post
Hmmm Im confused, is it a script you made or a request ?
It is a script I uploaded via via Reapack Upload Tools. Perhaps I should have put a more detailed description in my post here; the script header contains detailed, formatted docs.

I created it to save myself time in the process of chopping samples of pitched instruments for later importing into samplers such as Kontakt.

The script takes the following actions on the selected audio item:

1. Split at transients
2. Shorten each split to specified length
3. Apply log Fade-out of specified duration to each split
4. Bounce splits to new MIDi takes
5. De-noise each MIDI take by deleting notes shorter than a specified length
6. Create separate regions named for pitch/octave
7. Set created regions in Region Render Matrix for track

Last edited by PatrickMartin; 06-21-2019 at 05:36 AM.
PatrickMartin is offline   Reply With Quote
Old 06-21-2019, 07:00 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,919
Default

ah yes, usualy we put a Gif to show scripts purpose :P



Thx for sharing !
X-Raym is offline   Reply With Quote
Old 06-21-2019, 09:19 AM   #5
PatrickMartin
Human being with feelings
 
PatrickMartin's Avatar
 
Join Date: Jun 2019
Location: Texas
Posts: 7
Default

Quote:
Originally Posted by X-Raym View Post
ah yes, usualy we put a Gif to show scripts purpose :P
OK I'm going to follow Lokasenna's fine example and edit that first thread post to contain the documentation and screenshots.
PatrickMartin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.