Compiling Oscilloscope Paths to Floppy


#1

I’ve been very interested in the N-SPHERES floppy, however I’m interested in how to compress my own oscilloscope paths to a floppy disk.
I assume oscistudio compressed something like a gcode file with huffman encoding to reach a few 100kb plus the renderer and GUI, but the function demo (which seems to use an earlier/different codebase) could be swapped with a non-audio oscilloscope video with extremely small file sizes.
tl;dr I’m interested in the N-SPHERES/Function executables as a minimal video demo format

  • is oscistudio able to or required to edit the format of the paths? If it can freely convert from gcode then I can easily slice a video sequence like bad apple into an oscilloscope contour, already been done for rendering to an actual oscilloscope
  • can paths be simplified via parametric equations within oscistudio or would I have to make compress something like point -> point gcode into arcs/parameters outside oscistudio to compress the encoding of the paths?
  • is there a codebase for the rendering of N-SPHERES/Function.exe to insert my own paths?
  • can I fork said code to include a separate sound system like midi or tracker for rendering the audio?

#2

hi!

n-spheres is a TON of custom c and c++ code. basically it is it’s own project (audio engine and oscilloscope simulation) where i can drop in the livecodings from oscistudio. but there are so many things highly specific for n-spheres, that i’m far away from being able to make this available (and tbh, i hadn’t planned to do so).

the resulting executable is a few mb large, and can then be further reduced with an exe packer (crinkler, upx, mpack, there’s a few).

best, hansi.


#3

ps. sorry, to answer your list:

is oscistudio able to or required to edit the format of the paths? If it can freely convert from gcode then I can easily slice a video sequence like bad apple into an oscilloscope contour, already been done for rendering to an actual oscilloscope

my priority is very clear: do some more work surrounding n-spheres, then release the newest versions of OsciStudio, Oscilloscope and LaserFromSound.

then there’s time for things like this. i have some code ready for things like video export, but it’s optional/low priority in my book

can paths be simplified via parametric equations within oscistudio or would I have to make compress something like point -> point gcode into arcs/parameters outside oscistudio to compress the encoding of the paths?

for n-spheres we used only livecoding. there wasn’t really any precomputed shapes except the bike and the face, and we used tricks for those :slight_smile:

is there a codebase for the rendering of N-SPHERES/Function.exe to insert my own paths?

unfortunately no, nothing like that.

can I fork said code to include a separate sound system like midi or tracker for rendering the audio?

also a no, at least from todays perspective. it’s really a separate things, that involved a lot of trickery!

i’ll reply a bit more general later, time for lunch :slight_smile: