Calculating Sample Length

monoben
Posts: 129
Joined: Wed Feb 26, 2014 11:09 am

Calculating Sample Length

Hi guys, you know the sampler? Well is there a way one can calculate how many samples = how many pattern lines? I’d very much like to be able to create a new sample that will take for example 16 lines to complete when played at C5.

Maybe this could be a feature request, to add to “Length (number of samples)” maybe also there could be just simply “Length (number of lines)”?

a1matt
Posts: 74
Joined: Wed Dec 28, 2016 7:39 pm

Re: Calculating Sample Length

There are some useful sample calculators on the deepsound website that might help with this.

https://mp3.deepsound.net/eng/samples_calculs.php

Maybe 'To find notes length in samples with tempo and sampling rate' will get you part of the way there. At least you will know the number of samples you are shooting for.

monoben
Posts: 129
Joined: Wed Feb 26, 2014 11:09 am

Re: Calculating Sample Length

Wow there are some serious tools on that site. Thanks for this! Now if I can work out the BPM of my project then I’ll be able to work this out. I’m sure I’ve seen a post on here somewhere about calculating BPM...

Thanks again!

Keres
Posts: 316
Joined: Mon Mar 21, 2016 9:41 am
Location: N. Tulsa Ok.
Contact:

Re: Calculating Sample Length

When you use the sampler, you can drop the cursor anywhere on the sample and see the offset position in both 9xxx and 7xxxx commands. Go to the sample edit window, click on the position and it will display the offset position in the lower corner.

Posts: 3515
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Calculating Sample Length

how many samples = how many pattern lines?
Line = Sample / ( SampleRate * TPL * 60 / BPM / 24 )
Sample = Line * ( SampleRate * TPL * 60 / BPM / 24 )
SamplesPerLine = SampleRate * TPL * 60 / BPM / 24

SampleRate - base sample rate of the sample, playing a base note (C5 by default)

monoben
Posts: 129
Joined: Wed Feb 26, 2014 11:09 am

Re: Calculating Sample Length

Thanks NightRadio! This works great. Forever more all my samples will be exactly the correct length.

Keres
Posts: 316
Joined: Mon Mar 21, 2016 9:41 am
Location: N. Tulsa Ok.
Contact: