Added: 4 months ago
From: viznut
Views: 51,716
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (60)

Sign In or Sign Up now to post a comment!
  • My Arduino just got a new gig!

  • yeah, great cover of the new Skrillex album. love it!!!

  • t*((t>>(t>>(2000-t)))&(24)&t>>­((2*(2))*t))

  • That is an "impossible" video. =p

  • This video is a favorite on Mogadishu

  • @giftbasketer2 Is experimental electronic music popular in Somalia?

  • 1:09 is my favorite.

  • Cool!!!!!

  • Who knew math could make good music.

  • @mushu5t Who knew that math could make good music? Pretty much every electronic musician.

  • Here's another great one: (t>>4*t) + (t>>100*t)

  • This one is really strange (and a bit scary): ((t^t*1000)%t)*sin(t/10000000)

  • this got me all excited for some reason

  • This is actually funky morse code.

  • why are there so many tits boots in the recommended videos ?

  • not really music at all, but I like  t*t>>(Math.sqrt(t)&50)*0.2

  • t*t>>1+(t>>9|2)+(t>>10)*t

  • Holly shit :) That's amazing! Chaos theory, at it's best :) I liked the "Lost in space", my favorite :)

  • For a more serious algorithmic approach to music you should watch outube.com/watch?v=po9JH2UKGY0

  • Wow, extremely cool!

  • Comment removed

  • I never thought we could make music with one line :)

  • 3:10 Love !!

  • The third one, by red-, sounds like something I'd hear at an Industrial club!

  • The last one was truly amazing!

  • 2:15 WHAT. MIND BLOWN

  • here's an uplift : t * (t>>-1|t>>10)/5

  • (t>>8|t|t>>(t>>4))*7+((t>>4)&4­) WOAH DUDE

  • I especially like the one that goes "BEEP BEEP BOOP BEEP BOOP BEEEP"

    The one that goes "BEEP BOOP BEEP BEEP BEEP BOOP" is terrible, however.

  • Comment removed

  • I remember a C64 game called Wizball that had similar sounds from time to time, some sort of series of sweeping noises =)

  • Can this be "pump through" a vocaloid-3 output? :)

  • 42's across the board... Makes for an eerie melody...

    bitly link oqag1p

    (giving me errors if I try and post any code or URL, wtf)

  • Comment removed

  • Wow the one by red- is Aphex Twin like... awesome work guys :)

  • love the one at 2:14!!

  • I cheated a bit and added variable v to retain some state between samples:

    0;};var v=0;f=function(t){return v=v+!((t>>8)&18),((v*v)|(t>>8+­t>>9)*100)+(v>>7);

    The 18 at the beginning can be modified to get a different rhythm (e.g. try 132 for some extra macro structure).

  • ((t>>2*t>>3)|(t>>4))|((t/4>>8)­|(2%t>>3))+cos(t)

  • This is why the demoscene means something to me.

  • WINTERNET

  • ((t>>cos(t)>>6.2)<<t*300)+tan(­t)/(t&7<<t)

  • (t>>(((t^t)>>(t^t)^t)>>2)>>3)^­t

  • By the way, you can test these under any system that supports MPlayer and pipes (such as Cygwin or AROS) with: prog | mplayer - -demuxer rawaudio -rawaudio rate=8000:channels=1:samplesiz­e=1

  • wow those are even better than the ones in the first vid. hope there'll be more!

  • Pure genious !

  • In the skurk example, what are the ? and : operators? I can't seem to get them to work at the one-liners site.

  • @Veqtor They're ternary operators. (x ? y : z) is y when x is truthy (evaluates to true), or z when x is falsy (evaluates to false). The one-liners site actually uses Javascript under the hood, so you're probably running into something where javascript and C disagree on truthiness.

  • If anyone wants to try these out on a system with ALSA sound drivers, you can pipe the output in to aplay (which defaults to the right format, 8 bit 8 KHz):

    ./program | aplay

  • @shaurz Do you know how exactly to use arecord to output this to a soundfile usable by mixing programs? Something along the lines of wav, mp3, flac ... hell, even ogg would work.

    Cheers.

  • @Chad48309 You don't need to use arecord, you could do something like this:

    ./program | head -c 100K | oggenc --raw --raw-bits=8 --raw-chan=1 --raw-rate=8000 -o music.ogg -

    That records about 12 seconds, change the "100K" number to change the recording length. Other programs that encode mp3, flac, etc. probably have the same ability to record raw PCM data.

  • @shaurz Thanks very much, mate.

  • @Chad48309 No problem, here's the command for FLAC (replace the oggenc command):

    flac --force-raw-format --channels=1 --bps=8 --sample-rate=8000 --sign=signed --endian=big -o music.flac -

  • this is awesome....so much depth to these simple bit-manipulating logic formulas!

  • I love this SO MUCH!!!

  • These are amazing! How did you find them? did you figure out that certain portions of the equation produce certain portions of results (bass blurts, rhytmic drum-like-sounds, etc), or is it total trial-and-error?

  • @yorgle In the first video it was still mostly trial-and-error, but many songs in this one are combined from several smaller pieces. For example, in the piece seen in the screenshot I chose two short, good-sounding formulas and tied them together. Sometimes, constants can be replaced with slowly changing functions to create macrostructure. However, I think there's still a lot of surprises in the possibility space that are most likely to be found by accident than by deterministic means.

  • @viznut Awesome!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more