Login / Register  0 items | $0.00 New What is KVR? Submit News Advertise

Tuning a sample?

goldglob
KVRist
 
399 posts since 10 Jan, 2007, from London

Postby goldglob; Thu Nov 24, 2016 8:26 am Tuning a sample?

I'm making a program from samples.
I know a particular sample is sharp in pitch.
Is the following the best way to get it in tune?

Drag it into the wave editor.
Detect pitch.
I see that it is 38 cents sharp.
Drag it into the keyboard mapper.
Fine tune it -38 cents.

This seems to work, but am I missing something?
DarkStar
KVRAF
 
7816 posts since 2 Sep, 2003, from Surrey, UK

Postby DarkStar; Thu Nov 24, 2016 8:48 am Re: Tuning a sample?

Why not adjust it directly in the Wave Editor?
DarkStar
Interesting, if true ...
elcallio
KVRian
 
1230 posts since 27 May, 2005, from Stockholm

Postby elcallio; Thu Nov 24, 2016 9:24 am Re: Tuning a sample?

As DS points out, if you are ok with modifying the sample, just do pitch detect (which btw _can_ get stuff wrong, so always verify with your ears), the sample root and tuning will be set to whatever it is, lets say C4 +38ct. Once the samples pitch info is set, any mappings will adjust based on this info, and play correctly.

If you don't want/can modify/overwrite the sample, you can either compensate manually as you wrote, or just set a root override in the split mapping, i.e. set the root to the same as above. It is a "local" version of modifying the sample.
TX16Wx Software Sampler:
http://www.tx16wx.com/
goldglob
KVRist
 
399 posts since 10 Jan, 2007, from London

Postby goldglob; Thu Nov 24, 2016 10:17 am Re: Tuning a sample?

OK, many thanks, I'm pretty sure I understand...adjusting in the wave editor is global for any subsequent mappings, adjusting in the keyboard mapper is local to that split, and baking the override actually makes it global back in the wave editor? And none of this changes the actual pitch of the original sample, and when I preview the sample in wave editor I'm always hearing the original pitch regardless of any root adjustments including fine, and furthermore, 'saving as' the sample from the wave editor doesn't carry any of these pitch adjustments?
Is all that correct?
elcallio
KVRian
 
1230 posts since 27 May, 2005, from Stockholm

Postby elcallio; Thu Nov 24, 2016 1:48 pm Re: Tuning a sample?

Except for the last part; Saving the sample will store the new root/tune meta data, so any subsequent loading of the wave in this or any other session will "see" the updated pitch info.
TX16Wx Software Sampler:
http://www.tx16wx.com/
goldglob
KVRist
 
399 posts since 10 Jan, 2007, from London

Postby goldglob; Thu Nov 24, 2016 2:46 pm Re: Tuning a sample?

elcallio wrote:Except for the last part; Saving the sample will store the new root/tune meta data, so any subsequent loading of the wave in this or any other session will "see" the updated pitch info.


Hmm, I can see that the root meta data is saved but not the fine tune? Do you mean when the program is saved rather than just 'save wav as' from the wave editor context menu?
elcallio
KVRian
 
1230 posts since 27 May, 2005, from Stockholm

Postby elcallio; Fri Nov 25, 2016 2:25 am Re: Tuning a sample?

Saving a wave (as wav) stores all pitch meta-data, root + fine + tempo + loops + slices, all if set.
Are you seeing something else?
TX16Wx Software Sampler:
http://www.tx16wx.com/
goldglob
KVRist
 
399 posts since 10 Jan, 2007, from London

Postby goldglob; Fri Nov 25, 2016 4:27 am Re: Tuning a sample?

I load a sample named 'F#3' into wave editor.
Root shows blank. Fine shows 0.
Detect pitch.
Root=54. Fine=17.
I save the wave as F#3 (2).
I unload the original F#3 from the wave editor.
I load F#3 (2). (I've refreshed browser and checked that it is indeed F#3 (2).)
Root shows 54 now rather than blank. Fine shows 0 (not 17).
elcallio
KVRian
 
1230 posts since 27 May, 2005, from Stockholm

Postby elcallio; Fri Nov 25, 2016 9:21 am Re: Tuning a sample?

Ah, cool. You found a bug. It is written, but faulty. I will fix.
TX16Wx Software Sampler:
http://www.tx16wx.com/
elcallio
KVRian
 
1230 posts since 27 May, 2005, from Stockholm

Postby elcallio; Mon Nov 28, 2016 11:36 pm Re: Tuning a sample?

I've added a fix for the broken smpl-chunk fine tune saving and updated the gold build. v2.4.2d is now available.
TX16Wx Software Sampler:
http://www.tx16wx.com/
goldglob
KVRist
 
399 posts since 10 Jan, 2007, from London

Postby goldglob; Tue Nov 29, 2016 4:00 am Re: Tuning a sample?

Very cool....just checked, bug is fixed.
Burzukh_Studios
KVRian
 
631 posts since 24 Aug, 2011, from Melbourne , Australia

Postby Burzukh_Studios; Thu Dec 01, 2016 2:57 pm Re: Tuning a sample?

And thats why i love Calle!

Moderator: elcallio

Return to CWITEC