From the original SynthMaker forum (2004–2014), with its members’ names and dates.
Twisted_Chrylle ·
Hi guys.
Maybe a tricky question but I hope someone knows an answear. 🙂
I have converted one wave file to a wavetable and saved it as .txt (straight foward)
When I upload the .txt, I want to remake the wave table txt to wave player sample.
Im planning to make a simple ROMpler that I can upload new samples to,
and save presets for Filter, Envs and Efxs in the same preset file as the sample.
Wave table doesnt work for me if the sample I use is big and do not need loop function or different loop points.
Do someone out there have any ideas how to load wave files as text with preset of some kind.
😊
Cheers
Chrylle
Andrew J ·
Hi Chrylle,
Are you aware of the new WaveFile primitive? With that you might be able to just store the filename in the preset with your other settings and load the wav without converting to/from text.
-Andrew
Twisted_Chrylle ·
Hi Andrew in sunny Australia... 😉
No I didn't know that... what is the name of that primitive? 😊
But is it possible to have a wavefile in txt and read it out as a sample as I want,
or do I smash my forehead against the wall for nothing?
Maybe I can use the new primitive and somehow build it to work?
Andrew J ·
Twisted_Chrylle wrote: No I didn't know that... what is the name of that primitive? 😊
Um, it's called "WaveFile" 🙂
Twisted_Chrylle wrote: But is it possible to have a wavefile in txt and read it out as a sample as I want,
or do I smash my forehead against the wall for nothing?
I believe so, but I've never tried it myself (I'm more into effects than synths or romplers). I imagine it might not like it if the file is too big - but without testing, I have no idea how big that might be.
Twisted_Chrylle wrote: Maybe I can use the new primitive and somehow build it to work?
I hope so, I think it was included so that people could build romplers more easily.
Good luck. If you need more help, then I hope someone else with experience in this area will chip in (that's a hint people 😉 ) ...
-Andrew
Twisted_Chrylle ·
Ok, question... 😀
I'm planning to use "wave table" to feed my .txt wave (that could be like 10.000, not 128>4096)
but it's bandlimited, does it mean I can connect it to a "wave read" or not? and is it limited to max 4096?
Or is it better to use "float array to mem" cuz it's not bandlimited?
What does band limited means by the way? 😊
I think if I get those questions right im half way there... 😀
Chrylle
Andrew J ·
I'll leave the other questions to someone else to answer, but I can help with the bandlimited one.
Bandlimited means that the audio frequency bandwidth of the signal is limited. For example, a signal may have a frequency range that goes up to 35kHz. If you then filtered that signal so it only went up to 20kHz, then you'd be bandlimiting the signal to 20kHz. It's important to understand what this is all about so that you can avoid aliasing. For more info, see the tutorial on oversampling (especially the section on Modulation and Aliasing).
-Andrew
Twisted_Chrylle ·
Wow...!!!
now im lost in a whole new universe... 😀
On which freq is "wave table" bandlimited on and is it needed do oversample it when its already bandlimited?
with other words, do I always need to upsample to do a quality synth?
Maybe i'm asking little to much here but as I said, it's a whole new universe out there... 😀
MichaelBenjamin ·
i would suggest since youre about to start you forget about aliasing untill it really bothers you.
here is some information and examples for using wave files: [old link]
you can download and look at the examples and how they work with loading and playing back wave files.
there is alredy interpolation built in, so the aliasing is no real concern as long as you do not play some sample 4 octaves higher. there is also a multisampler example.
as a general rule, if you want to use only small wavesnippets of the same size, like singlecycles in txt format - use the wavetable.
if you use long wave files, use the wave read module, like in the exo loop example.
if you want to switch waves at samplerate, use the wave array read.
and for every wave playback (besides the wavetable module) you will need a counter+interpolation before. you see that in the exo loop example. there are different counter modules, but they all basically count with a pitch dependant speed from sample start to sample end in ints and fractions, so it scans the file in time.
Wrote something here? To have a post removed or your name hidden, write to [email protected].