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-requ...@lists.cs.princeton.edu wrote:
> 
> Send chuck-users mailing list submissions to
>    chuck-users@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-requ...@lists.cs.princeton.edu
> 
> You can reach the person managing the list at
>    chuck-users-ow...@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.buoninfa...@gmail.com>
> To: ChucK <chuck-users@lists.cs.princeton.edu>
> Subject: [chuck-users] SinOsc UGen
> Message-ID:
>    <CAHs=m8t3tlyv9czuvtpoueyg9+-4mleda-6sq73wpsajjaw...@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@lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> 
> 
> End of chuck-users Digest, Vol 158, Issue 4
> *******************************************

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

Reply via email to