[chuck-users] Sine Wavetable (Mario B.)

Perry Cook prc at cs.princeton.edu
Tue Oct 23 21:01:18 EDT 2018


I’ve done this a lot.  Just make a nicely oversampled single-cycle sine .wav file and use SndBuf.  You’ll need a .freq function that does the right thing based on how many samples are in your wavetable.  I think you can also use GenX to do it.

Prc

Sent from my iPhone

> On Oct 23, 2018, at 9:00 AM, chuck-users-request at lists.cs.princeton.edu wrote:
> 
> Send chuck-users mailing list submissions to
>    chuck-users at lists.cs.princeton.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> or, via email, send a message with subject or body 'help' to
>    chuck-users-request at lists.cs.princeton.edu
> 
> You can reach the person managing the list at
>    chuck-users-owner at lists.cs.princeton.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of chuck-users digest..."
> 
> 
> Today's Topics:
> 
>   1. SinOsc UGen (Mario Buoninfante)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 23 Oct 2018 15:28:30 +0100
> From: Mario Buoninfante <mario.buoninfante at gmail.com>
> To: ChucK <chuck-users at lists.cs.princeton.edu>
> Subject: [chuck-users] SinOsc UGen
> Message-ID:
>    <CAHs=M8T3TLYV9CZUVtpoueYg9+-4MLEdA-6sq73WPSAJjaWoVg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi,
> 
> As already pointed out by someone else here, I noticed we've got the SinOsc
> UGen that doesn't use a wavetable but instead uses the sin function. I
> don't know what the reason behind this decision, but I was wondering
> whether it would be possible to also have a variant that uses wavetable as
> well. I presume that would help a bit in terms of performances, and I think
> it would be useful in scenarios where ChucK runs on platforms like
> Raspberry Pi.
> 
> cheers,
> Mario
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20181023/bcf91925/attachment-0001.html>
> 
> ------------------------------
> 
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> 
> 
> End of chuck-users Digest, Vol 158, Issue 4
> *******************************************



More information about the chuck-users mailing list