[chuck-users] wavetable synthesis

Michael Heuer heuermh at gmail.com
Thu Sep 6 00:49:54 EDT 2012


I came up with this

https://github.com/heuermh/lick/blob/7326bf48e37dfd74559124c1775314f0378f4c56/examples/wavetableExample.ck

which just does hard gain switching between the different waveforms.
I could make that a smoother gain envelope.  Is that the idea or does
"smoothly interpolating" actually mean interpolating the values in the
waveforms?

   michael


On Wed, Sep 5, 2012 at 11:55 AM, Michael Heuer <heuermh at gmail.com> wrote:
> Hello Ju,
>
> Thanks, I was thinking of something similar using SndBuf directly
>
> SndBuf akwf => ADSR adsr => dac;
>
> "AKWF_raw_0022.wav" => akwf.read;
> akwf.loop(true);
> adsr.set(100::ms, 600::ms, 0.9, 20::ms);
>
> while (true)
> {
>     akwf.freq(Std.rand2f(220.0, 440.0));
>     adsr.keyOn(1);
>     1000::ms => now;
>     adsr.keyOff(1);
>
>     200::ms => now;
> }
>
> but this as with your example only uses a single waveform.  Setting up
> an array of SndBufs or more than one sample in LiSa is no problem . .
> . this sounds interesting though:
>
> "The parameter scans the wavetable, smoothly interpolating between
> each waveform."
>
>    michael
>
>
> On Wed, Sep 5, 2012 at 4:14 AM, Julien Saint-Martin
> <julien.saintmartin at googlemail.com> wrote:
>> And thanks for the free sample collection!!
>>
>>
>> 2012/9/5 Julien Saint-Martin <julien.saintmartin at googlemail.com>
>>>
>>> Hi Michael,
>>>
>>> Please find attached an example that might do what you want.
>>> It use both Lisa and SndBuf. SndBuf is used to load the wav file.
>>> And Lisa is used to be driven by a Phasor.
>>> Control freq of your phasor will control freq of your synth.
>>>
>>> If I remember well what I found on the forum, there is no easier way to do
>>> that, but maybe I am wrong.
>>>
>>> It should be nice to directly drive the SndBuf with the Phasor. But it is
>>> not supported at now.
>>>
>>> Have Fun,
>>> Ju
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2012/9/4 Michael Heuer <heuermh at gmail.com>
>>>>
>>>> Hello,
>>>>
>>>> I found this collection of 600-sample one cycle waveforms recently
>>>>
>>>> http://www.adventurekid.se/AKRT/
>>>>
>>>> If I wanted to use these for "wavetable synthesis", is it just a
>>>> matter of wrapping a looping SndBuf or LiSa with ADSR and tweaking the
>>>> freq?  What if I wanted to do something like the Shruthi1 hardware
>>>>
>>>> http://mutable-instruments.net/shruthi1/manual
>>>>
>>>> or the Animoog app
>>>>
>>>> http://www.moogmusic.com/products/apps/animoog-0
>>>>
>>>> where a bunch of waveforms are combined into a single wavetable, e.g.
>>>> the Shruthi1 doc
>>>>
>>>> "All these waveforms are wavetables, comprising 16 single-cycle
>>>> waveforms. The parameter scans the wavetable, smoothly interpolating
>>>> between each waveform. Some of these tables are 'transwaves': the
>>>> single cycle waveforms were extracted from different 'stages' of a
>>>> sample, and you can somehow recreate the original sample by using an
>>>> envelope that will sweep the parameter from 0 to 127."
>>>>
>>>>
>>>> Sorry if this question is Electronic Music 101.
>>>>
>>>>    michael
>>>> _______________________________________________
>>>> chuck-users mailing list
>>>> chuck-users at lists.cs.princeton.edu
>>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>
>>>
>>
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>


More information about the chuck-users mailing list