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@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-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@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
To: ChucK Subject: [chuck-users] SinOsc UGen Message-ID: 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