Csound Csound-dev Csound-tekno Search About

[Csnd] Code Share: Hex Oscillator

Date2021-04-12 06:33
FromSteven Yi
Subject[Csnd] Code Share: Hex Oscillator
Hi All,

Continuing on with some modular-style explorations, I thought I'd
share an experiment using hexadecimal for notating rhythms for
oscillators:

https://ide.csound.com/editor/D4j0JnpW3k1EMkiNDpib

The hextab UDO converts hexadecimal notated in a string into an array
of 1's and 0's.  The generated array is in turn used with a custom
oscil UDO:

https://github.com/kunstmusik/csound-live-code/blob/master/livecode.orc#L966-L974

The two UDOs are working together here to generate rhythmic patterns
(1/0's functioning as a gate signal, processed with port to generate
an amplitude and filter cutoff envelopes).

Enjoy!
Steven

p.s. - The implementation uses a string rather than 0x numeric hex
notation to preserve any leading 0's.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here