Shop OBEX P1 Docs P2 Docs Learn Events
Miscellaneous Demo(s) — Parallax Forums

Miscellaneous Demo(s)

VIRANDVIRAND Posts: 656
edited 2008-08-19 23:23 in Propeller 1
If this is not the right place to post such things, please let me know where they are being posted.

This is a very old but distinctive audiovisual demo (remake for Hydra)
which in recent years led to the discovery of unstored sound playback.
It is very simple, and in Spin a little slow. Some people may like it, some will think it's lame and noisy.

Hydra TV and Graphics drivers required by this version.

Comments

  • mparkmpark Posts: 1,305
    edited 2008-01-01 09:39
    Amazing complexity from a little tiny loop! Thanks for posting this.

    Can you tell me more about "the discovery of unstored sound playback"?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Michael Park

    PS, BTW, and FYI:
    To search the forum, use search.parallax.com (do not use the Search button).
    Check out the Propeller Wiki: propeller.wikispaces.com/
  • VIRANDVIRAND Posts: 656
    edited 2008-01-01 20:13
    Here is another demo related to the discovery of unstored sound playback.
    It has No Graphics but uses Champernowne's Constant (0.123...) as a digital sound source,
    and it is a proven theory that that number contains all possible digital sound combinations in order.
    The former demo is related to the Sierpinski's Triangle (Sieve, Gasket or Sponge) fractal,
    which is also related to the fractal formed by a column of counted binary numbers, and also Pascal's triangle.

    Combinatorics can eliminate the redundancy and noise in the set of binary integers,
    and I'm working on a combinatoric sound generating demo now. The Hydra can
    quickly and easily do what I've been told (by programmers, since 1995) is impossible or unthinkable for a PC!

    This small demo is also either noise or music to the ear of the listener.
    The sound evolves over a long time.
  • VIRANDVIRAND Posts: 656
    edited 2008-01-01 20:19
    Another small demo, not related to sound, and also based on very old code.
    Owners of TRS-80 Color Computer with Extended Color Basic will probably recognize this
    accurate translation of this very old graphics demo.

    This demo uses the Hydra Graphics and TV drivers.
    Just for diversion, while I'm working on my game.
  • VIRANDVIRAND Posts: 656
    edited 2008-01-01 23:08
    A Collision-Detector for GRAPHICS driver while in 16x12 tile 256x192 pixel 4-color mode (only) :
    This function remembers what color a pixel is which was put on the screen as with gr.color(c) and gr.plot(x,y).
    Most old "game basics" had this function. I needed a quick one for my game and worked this magic spell...

    PUB POINT(qx,qy): qc | sad 'recall the color of a pixel at x,y
    sad:=Base_Addr+(qx&12)+((191-qy)*4)+(qx&240)*48 'get the screen memory address of pixel x,y
    qc:=byte[noparse][[/noparse]sad]>>((qx&3)*2)&3 'get desired pixel's color out of 4-pixel group

    Usage: Base_Addr should be Onscreen_Buffer, or the pointer to the screen's memory map.
    pixelcolor:=POINT(x,y) 'returns color , 0 to 3 , of pixel at x,y , to var pixelcolor
  • Spork FrogSpork Frog Posts: 212
    edited 2008-01-02 00:23
    Hey I tried all three of your codes... I found the first one (fractal audio) to be especially impressive by its small main code loop alone. Will it ever repeat itself once? From just watching it for a while, I don't think it does. The champerone constant audio was also pretty neat. I'll admit I have absolutely no idea how they work, but they're truly amazing with small code space.
  • VIRANDVIRAND Posts: 656
    edited 2008-01-02 10:36
    There is a finite number of states (of pixels and colors) so after a very long time it would have to repeat.

    Here's another one, although it's in binary since I don't feel I have a right to show the source code,
    even though it originally did something very different. This next demo is an optical illusion that just
    might make things look like they are melting if you stare into it long enough.... about a minute or so,
    and then look at something else. It also has a few minutes or so of eerie fractal sound in it.
  • BamseBamse Posts: 561
    edited 2008-01-04 05:45
    How fun and RETRO...

    The Acid demo really makes your head spin... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • phillip vphillip v Posts: 48
    edited 2008-01-20 17:51
    thank you very much, I've learned a lot from them.... things like this help people like me, hope to see more like them from you and others.....
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-22 03:53
    These are very cool! Please post the source to your acid demo so that us protoboard guys can look at it too.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • VIRANDVIRAND Posts: 656
    edited 2008-01-23 00:10
    Ok, I guess...
    Maybe another one like it soon.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-23 00:33
    Neat demo!

    Best sound yet..

    Thanks
    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • PerryPerry Posts: 253
    edited 2008-01-23 03:15
    The first program seems to show the most entropy, have you ever looked into anything more chaotic?

    www.cmp.caltech.edu/~mcc/chaos_new/Chaos_demos.html

    I have been wondering if the propeller could simulate Chua's Circuit

    Perry
  • VIRANDVIRAND Posts: 656
    edited 2008-01-23 08:18
    Yes, I'll try to get to more fractals next. Not sure about Chua's Oscillator, it's analog and maybe "too" random.
    I'll try to make some interesting audiovisual strange attractors.

    Here is the final version of the acid demo, with circles instead of squares.
  • VIRANDVIRAND Posts: 656
    edited 2008-01-25 09:09
    Alright, I think my demos are getting a bit too weird.

    Has anyone seen the movie CONTACT based on the book by Carl Sagan?

    Prepare to receive a message from another dimension!

    It's "perfectly logical". Notice all the hieroglyphic characters.
    What do they look like? What do they mean?

    As usual, this one uses GRAPHICS and TV drivers.
  • BamseBamse Posts: 561
    edited 2008-01-26 06:45
    These are awesome demos, masterpieces...

    Keep up the good work, I'm looking forward to Acid demo 2020...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • VIRANDVIRAND Posts: 656
    edited 2008-07-28 18:41
    new: Gingerbread Man Strange Attracter (with synaesthetic noises as usual) fractal demo.
    After several months of medical lethargy I might be back in the game.
  • VIRANDVIRAND Posts: 656
    edited 2008-07-28 22:02
  • VIRANDVIRAND Posts: 656
    edited 2008-07-30 04:30
    More fractals with sound. All 256 "1-D" cellular automata rules to choose from, although not all are interesting.
    Don't forget you need the drivers from the Sources directory. This one uses the keyboard.
    If you liked entropysynth, this is very similar and very different.
    And if you select 257 you get the same as 001 and so on, in case you wonder about that.
  • mparkmpark Posts: 1,305
    edited 2008-08-03 08:43
    Cool stuff. Thanks for these.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Michael Park

    PS, BTW, and FYI:
    To search the forum, use search.parallax.com (do not use the Search button).
    Check out the Propeller Wiki: propeller.wikispaces.com/
  • VIRANDVIRAND Posts: 656
    edited 2008-08-13 20:40
    New stuff:
    "256 Rules" with improved graphics and ability to randomize the CA to make the boring rules interesting and vice versa.
    (Needs comboKeyboard.spin driver)

    "Matrix Circuit" a mindblowing variant of the "Contact" demo with bizarre audiovisualized noises. (coded for Hydra only.)

    "80 Columns" ... lets you type a lot on the screen. Looks good on a good TV. Looks bad on a bad TV. (So it's a TV tester.)
    Makes very small letters and numbers so almost 2000 can fit on the screen. (Needs comboKeyboard.spin driver)
  • mparkmpark Posts: 1,305
    edited 2008-08-16 01:21
    One of my favorite demos in this thread is the Entropy Synth. Here I've recoded the main loop in assembly language. I have it set up to pause a second between screen updates, but you can easily change that.

    (This version has no sound.)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Michael Park

    PS, BTW, and FYI:
    To search the forum, use search.parallax.com (do not use the Search button).
    Check out the Propeller Wiki: propeller.wikispaces.com/

    Post Edited (mpark) : 8/16/2008 3:05:15 AM GMT
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-08-17 02:38
    The Matrix Circuit is very cool..

    Attached is a copy for the rest of the "non-hydra" propeller users. [noparse]:)[/noparse]

    I think I'll bring some of these to the Expo to run on the Big Screen when
    we aren't doing anything official. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • VIRANDVIRAND Posts: 656
    edited 2008-08-19 23:23
    Michael, I thank you a lot for translating the entropy synth to PASM.
    Your code taught me everything I still needed to know to start programming in PASM,
    and I started by putting the sound back in it and also updating the program to
    be compatible with other boards and have faster running speed options due to PASM.
Sign In or Register to comment.