sampletune?

76 views
Skip to first unread message

Ktv Crew

unread,
Oct 26, 2012, 3:24:53 AM10/26/12
to open-elect...@googlegroups.com
hi skratch

great job!
just a question i can find a solution
how i can change sampletune? i read that korg assing sample in keyboard mode to C4
i see there is this sampletune value, no idea how it works and how it related to that C4
any tips?
thanks again for the great job
ale

skratchdot.com

unread,
Nov 13, 2012, 8:26:14 PM11/13/12
to open-elect...@googlegroups.com
Sorry I never replied to this (and thanks for the feedback).

Right now the program doesn't allow you to change the sampletune.  I don't think this would be very hard to add (and I can't remember why I didn't implement it originally).

I just logged a feature request for it (so if I ever get some time to work on the program again, I'll remember to add this): https://github.com/skratchdot/open-electribe-editor/issues/20

BTW- The SampleTune value is how the ESX allows you to import samples with different sampling rates.  The formula I use for calculating it (which should be the same as the ESX) is:

    SampleTune = log(sampleRate/44100) / log(2)

Here's the code that does it:
   
    https://github.com/skratchdot/open-electribe-editor/blob/master/com.skratchdot.electribe.model.esx/src/com/skratchdot/electribe/model/esx/impl/SampleTuneImpl.java#L116

If you really need to change the SampleTune property, you can do it on the ESX by clicking the "SAMPLE" button, moving to SampleTune and editing the value there.

If you really need to convert a C4 to something else, then I guess you can by using a scale and doing some math (but I've never needed to do that):

    http://www.phy.mtu.edu/~suits/scales.html
    http://en.wikipedia.org/wiki/Equal_temperament

Let me know if that helps.  Sorry again for the late reply.

/jeff
Reply all
Reply to author
Forward
0 new messages