how do you create a resampler ?

Zircon

Momo's Minion
Hi
I want to make my own resampler for UTAU but I dont know how.
I know HTML&CSS, and I 'm learning Java and C++[beginner stage at both]

What is necessary to know when making a resampler ?
What programs are needed to make one ?

Also does UTAU resampler work like an VST, if that is the case, I think it would be more easy to create one
Thank's in advance :smile:
 

isengaara

Teto's Territory
Defender of Defoko
Writing a resampler is not an easy task. I once wrote a resampler that uses Spectral Model Synthesis, after I found out that VOCALOID uses SMS. This resampler worked good with Kasane Teto, but it failed on some other voicebanks. Later I discovered that Masanori Morise had written a resampler called world4utau which is also free software under the GPL. So you can fork existing resamplers based on WORLD, and you don't have to start from scratch. Before you start you could also read An attempt to develop a singing synthesizer by collaborative creation, this explains most things a does.
 

Zircon

Momo's Minion
Thread starter
Writing a resampler is not an easy task. I once wrote a resampler that uses Spectral Model Synthesis, after I found out that VOCALOID uses SMS. This resampler worked good with Kasane Teto, but it failed on some other voicebanks. Later I discovered that Masanori Morise had written a resampler called world4utau which is also free software under the GPL. So you can fork existing resamplers based on WORLD, and you don't have to start from scratch. Before you start you could also read An attempt to develop a singing synthesizer by collaborative creation, this explains most things a does.
Thankyou so much for replying .:love:
(Now I shall go off trying to create an a resampler.)
How did teto sound? did she went deeper with more resonace or slightly more highpitch.
Also what type of resampler would you like to hear, one more hi-pass or base.
Again thankyou for replying
 

Lorreine Geralde

lorreinegeralde@IRIS-SELECIA
Retired User
Defender of Defoko
Hmm...I don't know if this is very helpful or not since I'm not really an IT expert but from what I've seen, most UTAU users develop the UTAU resampler plugin(s) based on trial and error attempt, and wide knowledge of computer programming...so it may work or not.

This means you need to understand on how the resampler plugin really works effectively on all UTAU voicebanks and the computer. You also need to understand the risk that may happen on a computer, since it may be difficult to develop a virus-free resampler plugin (although sometimes an antivirus software can make some mistakes). I have heard that a software such as Microsoft Visual Basic can be used for this but I'm not sure. Since you know HTML, CSS, Java and C++, that could be a good start.

Also, I could say that UTAU resampler plugins are developed for UTAU software while VST plugins are developed for most DAW softwares. However, you cannot use UTAU resampler as a VST on the DAW software, that's weird (trying to emphasize that "UTAU resampler work like an VST" thing since I may misunderstand it OTL).
 
  • Like
Reactions: Zircon

Zircon

Momo's Minion
Thread starter
Thank you, isengaara, lightzaver and lorreine geralde for helping me.
I'm wondering if you guys might want to beta test my resampler. It might take a couple of weeks to five months (top) to make the resampler. It mostly depends on how much school work I get, but I would like for you guys to beta test it .

Thank you very much!

:smile:
 
  • Like
Reactions: Lorreine Geralde

na4a4a

Outwardly Opinionated and Harshly Critical
Supporter
Defender of Defoko
Can't tell you how...just a few little things

After you get through all your learning and you are skilled enough to tackle it, you should also refer to how the sampler reads the ust...

Also a sampler has two mains tasks from what I can tell.
1. Time stretching
2. Pitch shifting
And I guess 3. Formant adjustment (prevent squirrel voice)
All 3 of those have a tendency to sound really bad without a lot of work.

Also, from what I can tell. Wavetool is in charge of handling envelopes and connecting the individual Notes...

UTAU's documentation is all japanese...so it may be hard for you at first to find out how it names and orginizes ifs temp files and where it does...but either way.

I'd imaging it would be a lot of playing around...have fun :b
 
  • Like
Reactions: Zircon

Zircon

Momo's Minion
Thread starter
Currently I'm playing with c++, like making small programs like calculators ,sounds coming out of c++ and some other stuff. School gotten in the way of learning c++ and java. I’m hoping sometime in the summer holidays my c++ and java skill go up a bit. But I am starting to understand a bit more on how resamplers are made mainly by looking through in world and tn_fnds.
 

Devotedworker

Momo's Minion
Currently I'm playing with c++, like making small programs like calculators ,sounds coming out of c++ and some other stuff. School gotten in the way of learning c++ and java. I’m hoping sometime in the summer holidays my c++ and java skill go up a bit. But I am starting to understand a bit more on how resamplers are made mainly by looking through in world and tn_fnds.
Sounds good ^_^ I'm trying to figure out this stuff too. Its pretty hard >.<[DOUBLEPOST=1424975793,1424973548][/DOUBLEPOST]
Currently I'm playing with c++, like making small programs like calculators ,sounds coming out of c++ and some other stuff. School gotten in the way of learning c++ and java. I’m hoping sometime in the summer holidays my c++ and java skill go up a bit. But I am starting to understand a bit more on how resamplers are made mainly by looking through in world and tn_fnds.
On another note, how are you looking at Tn_fnds and World? Are you using an IDE? ( Program to write code )
 

PanTran

Ritsu's Rocket
Defender of Defoko
The IDE I'm using is called Codeblocks, it's a free IDE mainly for C and C++.

So, hows the resampler going? And do you know where i could find some information on creating re samplers? Because i have found only this thread on the subject, and that's it. I'd really like to create my own resampler!
 

Zircon

Momo's Minion
Thread starter
So, hows the resampler going? And do you know where i could find some information on creating re samplers? Because i have found only this thread on the subject, and that's it. I'd really like to create my own resampler!

Sorry for the late reply.
here some infomation that I found, source codes to a couple of resamplers.

vs4u
(if you scroll down abit you'll find the link). here's a direct link to the download http://ackiesound.ifdef.jp/data/vs4usrc_140830.zip

tn_fnds already comes with the source code once downloaded. The folder name is src.

Lib UTAU it is help for plugin development in c++.

Here's a utau wiki website, it gives useful information, maybe if you look through it a bit you might find some more resampler src's or learn more about it. http://www20.atwiki.jp/utaou/pages/36.html#id_a032c350

If you want to know more about programing with audio heres is a tutorial. it's best you have some understanding of c++ before following through with the video.
 
Last edited: