Asteroids on Oscilloscope
Re: Asteroids on Oscilloscope
Oscilloscope simulator:
https://asdfg.me/osci/
Haven't tried it but saw it recommended for scope music demos. Not sure if it'd be a handy thing or not. If it emulates different bandwith limits then it might be a way to design mitigation strategies.
It got me thinking about the 'assemble' effects that a lot of games have for their title screen. I wondered about a low-pass filter that ramped from DC (probably just a dot wobbling about on the screen) up to all-pass to reveal the scene. Initially I thought a low-pass filter going that low must be really costly, but then I remembered how cheap a boxcar is. You just slide the window size from 'everything' down to 1, and keep a rolling sum where you add the incoming sample and subtract the outgoing sample and divide by the window width to calculate the new sample for the output.
I write that here because there's no more room on my whiteboard for things I want to try when I get around to it. I have a PID controller I need to sort out right now.
https://asdfg.me/osci/
Haven't tried it but saw it recommended for scope music demos. Not sure if it'd be a handy thing or not. If it emulates different bandwith limits then it might be a way to design mitigation strategies.
It got me thinking about the 'assemble' effects that a lot of games have for their title screen. I wondered about a low-pass filter that ramped from DC (probably just a dot wobbling about on the screen) up to all-pass to reveal the scene. Initially I thought a low-pass filter going that low must be really costly, but then I remembered how cheap a boxcar is. You just slide the window size from 'everything' down to 1, and keep a rolling sum where you add the incoming sample and subtract the outgoing sample and divide by the window width to calculate the new sample for the output.
I write that here because there's no more room on my whiteboard for things I want to try when I get around to it. I have a PID controller I need to sort out right now.
Re: Asteroids on Oscilloscope
Realised who that was immediately on seeing that unbelievable SAE radio again at the beginnin.zbandito wrote:
I like that guy, he's somehow a lot easier to listen to + watch than I expect and faintly amusing.
As for the oscilloscope [sorry! vectorscope] music, that looks about a zillion times better than I ever thought it would!
Re: Asteroids on Oscilloscope
I'm wondering if it's feasible to take an arbitrary scene and break it up into segments separated by any large step, and to re-order them with a sort of curve-fitting algorithm to put them in the order that approximates the audio you want to generate.
Might have to do something lazy like apply the fit to the average of left/right to fit a mono audio track, as fitting left and right independently under the same constraint seems unnecessarily difficult. The unintended stereo effects of that... I can't imagine.
And also the fit can be relaxed according to a human sensitivity envelope, which sounds like it should make things easier, but I can't think how to exploit that in a way that actually makes it easier. I think mostly it would just weight the score to favour good fits in the audible band at the expense of noise in the inaudible regions, so it's just extra computation.
I wish I had unlimited time to experiment with stuff.
Might have to do something lazy like apply the fit to the average of left/right to fit a mono audio track, as fitting left and right independently under the same constraint seems unnecessarily difficult. The unintended stereo effects of that... I can't imagine.
And also the fit can be relaxed according to a human sensitivity envelope, which sounds like it should make things easier, but I can't think how to exploit that in a way that actually makes it easier. I think mostly it would just weight the score to favour good fits in the audible band at the expense of noise in the inaudible regions, so it's just extra computation.
I wish I had unlimited time to experiment with stuff.
Re: Asteroids on Oscilloscope
That kind of approach is close to what resynthesis is about. I don't know much about resynthisis in detail but I believe at the core it's about deconstructing sounds into a set of single harmonics of varying amplitudes, both of which vary over time. Then the sound can be regenerated by huge numbers of sine wave oscillators each with time variant amplitude.gumboot wrote:I'm wondering if it's feasible to take an arbitrary scene and break it up into segments separated by any large step, and to re-order them with a sort of curve-fitting algorithm to put them in the order that approximates the audio you want to generate.
The interesting thing is to pick out curves and patterns in the deconstructed forms, then introduce modulations in the regeneration from anything between making it slower/faster without altering pitch [essentially "full resolution stretching" compared with typical sample-based timestretch algorithms] to pitch adjustments and overall volume based on, say, keyboard input.
By analysing the differences in harmonics from an instrument such as a piano or drum as you strike notes from soft to hard, one could figure out "important" curves over the set, then in reconstruction model+map them to velocity on a controller keyboard. Kind of a "super additive synthesis" model in a way. World's your oyster I guess.
edit: Hmm, maybe what I read about resynthesis all those years ago sunk in slightly. Wrote the above off the top of my head then found this which says it in a more accurate & readable version.
And this is what I'd read about, I'm sure about 20 years ago. It looked & sounded to be out of this world in my eyes then + was already a decade old. The UI looked extraordinary with a matrix of thousands of LEDs behind a touchscreen.
- zbandito
- Baaaaaa!

- Posts: 2916
- Joined: Sat May 18, 2002 10:00 pm 0
- Location: Portland, Oregon
- Contact:
Re: Asteroids on Oscilloscope
Certainly has a bit of a look to it, doesn't it? To emulate it in post I'd sum it up as a few misaligned overlaying vector lines along with images emerging / disappearing into the center of the screen when there is no signal to the magnets controlling the beam.. The way I understood (or perhaps misunderstood) the actual technique was akin to encoding the KHz-ish-band audio on top of a MHz-ish-band carrier that the oscilliscope draws visually, over and over and over and over, for each of the single audio-rate oscillations we can hear... I wonder how this overlaps or differs from frame buffer effects and other techniques seen in VLM/itunes/R4 etc
Harmonics sure look interesting, too; seems to multiply the image.
At first it might seem like all of this drawing correctly depends upon encoding the visuals in a manner that presumes a certain scan rate, but I guess that is down to a vector display being used instead of a raster display.
Harmonics sure look interesting, too; seems to multiply the image.
At first it might seem like all of this drawing correctly depends upon encoding the visuals in a manner that presumes a certain scan rate, but I guess that is down to a vector display being used instead of a raster display.
Re: Asteroids on Oscilloscope
Nice. Need some view plane clipping in the first one though :-)
But captured how? Have you gone and written an Ocelot emulator now?
But captured how? Have you gone and written an Ocelot emulator now?
Re: Asteroids on Oscilloscope
Thanks. :3
Yeah, there's some clipping issues with background objects, projectiles, bonus rings, debris clouds... fix later. Get on screen now!
I've been taking advantage of a bad situation to force my butt down on the chair and design some enemies for Starlynx to battle against. I'm going for an insect theme so we've got two ground types and two air types. I've got a whole bunch of level furniture I can plonk down, and a DSL for describing a level as a sequence of things that'll happen against time - furniture, bonuses, enemy formations, etc.
Planning levels and designing and modelling enemies is -soooo boring-. It took days just to make a simple boxy insect thing not because it's difficult but 'cause I just don't want to turn on Blender! By comparison, getting the enemies to shoot at the player with some frisky fixed point 'where is the player and point your shot at him but miss a little bit and get an orientation matrix from your guess' code was straightforward.
This isn't a complete Ocelot emulator, just enough to get everything running before I smush it all into the dsPIC. It's the same code as I did to test the cutscene system with the talking animated faces. The only command it understands is 'line', which is great but the Ocelot's text commands expect to be able to manipulate the instruction stream directly so I can't do text here.
Yeah, there's some clipping issues with background objects, projectiles, bonus rings, debris clouds... fix later. Get on screen now!
I've been taking advantage of a bad situation to force my butt down on the chair and design some enemies for Starlynx to battle against. I'm going for an insect theme so we've got two ground types and two air types. I've got a whole bunch of level furniture I can plonk down, and a DSL for describing a level as a sequence of things that'll happen against time - furniture, bonuses, enemy formations, etc.
Planning levels and designing and modelling enemies is -soooo boring-. It took days just to make a simple boxy insect thing not because it's difficult but 'cause I just don't want to turn on Blender! By comparison, getting the enemies to shoot at the player with some frisky fixed point 'where is the player and point your shot at him but miss a little bit and get an orientation matrix from your guess' code was straightforward.
This isn't a complete Ocelot emulator, just enough to get everything running before I smush it all into the dsPIC. It's the same code as I did to test the cutscene system with the talking animated faces. The only command it understands is 'line', which is great but the Ocelot's text commands expect to be able to manipulate the instruction stream directly so I can't do text here.
Re: Asteroids on Oscilloscope
"WING DAMAGE!"
Awesome stuff, Kamineko!
(Now I've got the SNES Star Fox level music stuck in my head...)
Awesome stuff, Kamineko!
(Now I've got the SNES Star Fox level music stuck in my head...)
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
Re: Asteroids on Oscilloscope
Re: Asteroids on Oscilloscope
Code: Select all
1. It all works now.
2. Huh, it doesn't work in that one case. But it works everywhere else, it must be their fault. Not mine, no sir.
3. Damn it, nothing I do fixes this. Is it impossible?
4. But what if...
5. Huh.
6. How did that ever work?
7. How did ANY of this ever work? What the hell!?
8. Fixed it.
1. It all works now.- zip accident
- Sheepie Whore

- Posts: 13928
- Joined: Sun Feb 20, 2005 1:58 pm 0
- Location: Bristol, UK
Re: Asteroids on Oscilloscope
Looks a bit too long for a T shirt, how about;Kamineko wrote:You've gotta be able to get that as a poster or something alreadyCode: Select all
1. It all works now. 2. Huh, it doesn't work in that one case. But it works everywhere else, it must be their fault. Not mine, no sir. 3. Damn it, nothing I do fixes this. Is it impossible? 4. But what if... 5. Huh. 6. How did that ever work? 7. How did ANY of this ever work? What the hell!? 8. Fixed it. 1. It all works now.
Code: Select all
1. It works.
2. Sugar! it doesn't work in that one case.
3. What's wrong? Is it impossible?
4. But what if...
5. Huh.
6. How did that ever work?
7. How did ANY of this ever work?
8. Fixed it.
1. It works."My way is the way of not fighting":- the book of Enter the Dragon.






