justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Hi Justin! I have a wav file with Note C (guitar sample) and I want to change it to C#. How to implement it in code?
Asked by asafonov (79.104.2.x) on February 22 2012, 11:00am
Reply on February 23 2012, 3:28pm:
    If you don't mind changing the length, you could use WDL_Resampler to adjust the rate, i.e. rs.SetRates(srate,srate*pow(2.0,-1.0/12.0)).. There would be a lot of code to read/write .wav files, etc, though. If you want to keep the length the same, you could use SoundTouch and use a pitch adjustment of a similar amount.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS