Amplitude offset

17 views
Skip to first unread message

sc3...@gmail.com

unread,
Aug 29, 2020, 9:38:02 AM8/29/20
to beadsproject
Hi,

I'm experimenting with Beads for CV generation( eurorack ) 

When I'm creating a sine wave with
new WavePlayer(audioContext, frequency, Buffer.SINE);
then the wave oscillates between -x and +x.

How can I offset the amplitude so it oscillates between 0 and 2*x ?

Thanks for any help.

Ollie Bown

unread,
Aug 30, 2020, 7:59:57 PM8/30/20
to beadsp...@googlegroups.com
You can use a ZMap class to map the range: http://beadsproject.net/doc/net/beadsproject/beads/ugens/ZMap.html
As for your audio / CV hardware I’m not sure what will happen when the value goes outside [-1,1]. 

Ollie

--
You received this message because you are subscribed to the Google Groups "beadsproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beadsproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beadsproject/29bd9e45-62fc-4b82-a90c-4a3555f22762n%40googlegroups.com.

sc3...@gmail.com

unread,
Aug 31, 2020, 10:23:20 AM8/31/20
to beadsproject
Thank you Ollie,
ZMap does what I needed.

Regards
Reply all
Reply to author
Forward
0 new messages