[Cuis-dev] Bytebeat thing with sound in Cuis

Luciano Notarfrancesco luchiano at gmail.com
Mon Aug 25 12:37:51 PDT 2025


I made a weird little hack/toy today. Here it is in case anyone wants to
try it. Print this on a workspace to get the morph embedded, or open it in
the world:
    b := BytebeatMorph new scaleBy: 2.
And then play:
    b play
and try different generating functions:
    b generator: [:t| t].
    b generator: [:t| t//16].
    b generator: [:t| t//16 & (t*5//3)].
    b generator: [:t| t//8 & (t*4//3)].
    b generator: [:t| t//16 & (t*2//3) | ((t//32 & (t\\20)))].
    b generator: [:t| t*3 * (t >> 7)].

    b generator: [:t| t*5//3].
    b generator: [:t| t*4//3].

    b generator: [:t| t & (t // 8) - (t * 2 & (t>>13) & (t >> 5))].

    b generator: [:t| t>>6 | t | (t >> (t >> 16)) * 10 + ((t>>11)&7)].

Hope it works..

BTW, BoundFinderCanvas>>image:at:sourceRect: was missing (see attached,
need it), and the implementation in VectorCanvas has a bug but the part of
the method that uses WarpBlt seems to work correctly (that's why in the
example I call scaleBy:.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250826/a96f424f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bytebeat.pck.st
Type: application/octet-stream
Size: 4780 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250826/a96f424f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BoundsFinderCanvas-imageatsourceRect.st
Type: application/octet-stream
Size: 318 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250826/a96f424f/attachment-0001.obj>


More information about the Cuis-dev mailing list