Bytebeat: Music from very short programs - the 3rd iteration

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • Very short C programs and Javascript expressions generating musical output. This is the third video in the series.
    More info: countercomplex.... and (with a more in-depth analysis) countercomplex....
    You can experiment online at wurstcaptures.u... or entropedia.co.u...
    You can also join the IRCnet channel #countercomplex
    / viznut

Комментарии • 494

  • @DaVince21
    @DaVince21 10 лет назад +196

    I know people have been doing this kinda stuff even back during the Atari 2600 days, but man, there _still_ is something inherently cool about doing this kinda stuff.

    • @theoveranalysticjake378
      @theoveranalysticjake378 6 лет назад +2

      Right

    • @alphalax7747
      @alphalax7747 8 месяцев назад

      Its like an advanced version of it

    • @GDI1210
      @GDI1210 5 месяцев назад

      how did you reply on this vid from 2024 and how dose your comment say 9 years ago

    • @DaVince21
      @DaVince21 5 месяцев назад +2

      ​@@GDI1210You mean this vid from 2011? Because it's from 2011.

    • @VSSnackhouse
      @VSSnackhouse Месяц назад

      people use this in even malware

  • @televisionandcheese
    @televisionandcheese Год назад +56

    3:26 is by far my favorite, it sounds so beautiful, it has that calm peace to it with a infectious beat, I love it

  • @windows10827
    @windows10827 Год назад +26

    1:04 is my favorite so far

  • @MoonlightMirage
    @MoonlightMirage 2 года назад +56

    2:57 This one's probably my favorite of the bunch despite the short length, sounds like the start to an 8-bit rendition of some pop song which is pretty cool

  • @breceeofficial
    @breceeofficial Месяц назад +4

    Can't believe I am only coming across this video now. This is absolutely mesmerizing!

  • @Bisqwit
    @Bisqwit 13 лет назад +47

    Nice visualisation!

    • @MerjemIsSomehowHere
      @MerjemIsSomehowHere Год назад

      @Bisqwit do you remember commenting this after 11 years?

    • @Bisqwit
      @Bisqwit Год назад

      @@MerjemIsSomehowHere Not that I actively remember doing it, but upon looking here I remember what the video was about and the feeling / thought process that led to that comment.

  • @w1nciller
    @w1nciller 2 года назад +24

    5:14 this was EPIC!!!

    • @alexanderbayramov2626
      @alexanderbayramov2626 2 года назад +4

      btw this melody is from chaos theory demo, so that's a bytebeat cover of a demoscene art, so basically (demoscene)^2

    • @RaccoonPower
      @RaccoonPower 2 месяца назад

      ​@@alexanderbayramov2626The actual name of this is Longline Theory, used on Commodore 64 and made by mu6k.

  • @oneillkza
    @oneillkza 13 лет назад +19

    Wow, at first I though the Sierpinski triangles appearing in the visualization were just an affectation, but now I'm realising they're a genuine artifact of the process!

  • @pitri_hub
    @pitri_hub 10 лет назад +66

    2:56 - Woah, that sounds awesome!
    5:14 - Wait, wait, wait! I know this one! It's used as base for the audio used in the 64k demo "Chaos Theory". There it sounds a lot better, but now I know how they made the music that small... :o

    • @unflexian
      @unflexian 7 лет назад +4

      2:56 ((t*("36364689"[t>>13&7]&15))/12&128)+(((((t>>12)^(t>>12)-2)%11*t)/4|t>>13)&127)

    • @silasmcgee3647
      @silasmcgee3647 6 лет назад +2

      Pitri The one from chaos theory sounds good both in the original video and this video but the one in this video sounds electronic and 8-bit I put an idea in my head for a loading screen theme

    • @村松亮-m7p
      @村松亮-m7p 3 года назад +1

      D   I   E   !

    • @sophiacristina
      @sophiacristina 2 года назад +1

      Chaos theory one shocked me, amazing! Now i want to develop my bytebeat skills...

    • @mjdddd3884
      @mjdddd3884 Год назад

      That's a bit interesting. It's at 2:56 .
      Like a 256 bit display.

  • @cortexauth4094
    @cortexauth4094 Год назад +17

    4:10 5:15 5:44 three most awesome pieces

    • @bgqt
      @bgqt 6 месяцев назад

      5:44 FOOVxhhxbdhbdhsbhshshkhVOOVvdvgdbuhsbjbVAAAVbhdbhicbjodndjnkjVAAAVdoudnushusjojAABAHAHGVHDUBSUHBISNOIXNISNOIANKSNOJDNKLSJKLAML'SOKJDKOJSKOHAKKNKLSJLKDJLKSJLKAJKLJSKLDJKLSJKLJSKLJAKHJKSHLKDHJCGJHVXXBKJNZMNZKAANKANKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANBAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVVVVVVV

  • @sol40.
    @sol40. Год назад +15

    I think bytebeat is one of my favorite things. I’m getting kinda good at it and yet I’m 10 years old. I’m very young and can still do it, i’m very fascinated with this coding program!

    • @plague_doctor0237
      @plague_doctor0237 6 месяцев назад +2

      That's genuinely so cool

    • @dell.dimension
      @dell.dimension 6 месяцев назад +4

      10 and knowing how to use bytebeat? i have a feeling you are going to be making GDI malware at 13 lol

    • @sol40.
      @sol40. 5 месяцев назад +5

      @@dell.dimension i’m autistic so maybe thats the reason why lol

    • @sol40.
      @sol40. 5 месяцев назад

      @@plague_doctor0237 thx

    • @kepka55
      @kepka55 5 месяцев назад +1

      What

  • @ThePsykloan
    @ThePsykloan 9 лет назад +54

    Canon
    f=t*Math.pow(2,(0x75054970>>((t>>13&7)11&3)+1),Math.abs(f%256-128)-64
    duration: ~32.7875
    Sample rate: 8,000

    • @ozzie_goat
      @ozzie_goat 9 лет назад

      +Joe Salizani I really like this one.

    • @geo_m_
      @geo_m_ 4 года назад +2

      very nice one modded some values
      left: f=t*Math.pow(1,(0x75054970>>((t>>15&7)11&9)+1),Math.abs(f%256-128)-64
      rigt: f=t*Math.pow(2,(0x75054970>>((t>>13&7)11&3)-1),Math.abs(f%256-128)-64

    • @imacvideos
      @imacvideos Год назад +2

      2:08

    • @scribbllllll
      @scribbllllll Месяц назад +1

      t%1280^t%2905*(1)^t>>12|1>>t&95^9^t%40 endless 8 bit

  • @deltaray3
    @deltaray3 10 лет назад +22

    6:33 Every top 40 song evar! I IV V I chords.

  • @nrz666
    @nrz666 11 лет назад +9

    Байтбиты - истинная музыка будущего. Суровая, алгоритмическая и беспощадная.
    Bytebeats are true music of the future. Harsh, algorithmic and merciless.

  • @miblik
    @miblik 9 лет назад +66

    Probably the only video that is better in 144p.

  • @helve_tica
    @helve_tica 5 лет назад +32

    4:19 You cannot grasp the true form of Giygas' attack!

  • @hmagellanlinux307
    @hmagellanlinux307 4 года назад +12

    This is amazing stuff, thanks for uploading this video. I've been playing around with bytebeat-style stuff all night.
    Best simple one I've found so far is:
    putchar(t>>4|(t>>7&t*8));
    putchar((t*4|t>>9)|(t>>4&t>>7));
    sounds best with aplay -c 2 I think.

  • @KimmoKM
    @KimmoKM 13 лет назад +6

    I think the ones starting at 2:56, 5:14 and 6:30 were actually very pleasant, even if you ignore how short the source is. Quite amazing.

  • @theseriousaccount
    @theseriousaccount 8 лет назад +8

    Dantes inferno is my favorite. I can't stop listening to it .

    • @UnordEntertainment
      @UnordEntertainment 4 года назад

      same but mainly the beginning tbh, not a fan of a lot of the other 'phases'

  • @pluggytasticsiguess
    @pluggytasticsiguess 2 месяца назад +2

    Crazy to think that this was used in Pankoza's GDI Malware.

  • @dachikinn
    @dachikinn 13 лет назад +2

    What a fantastic hobby. Thanks for sharing this with everyone.

  • @theangletosideofsauce7070
    @theangletosideofsauce7070 7 лет назад +7

    5:44 how it feels to chew 5 gum

  • @tirednwired
    @tirednwired 7 лет назад +1

    This is one of the best things I've ever heard.

  • @DeanEdis
    @DeanEdis 2 года назад +2

    Absolutely amazing. Mind = Blown

  • @viznut
    @viznut  13 лет назад +5

    @jci10 The examples from kb, ryg and mu6k in this video use string and integer constants to store melodies, rhythms etc. A deterministic, constructive approach is definitely possible, however it tends to bloat up the code very quickly compared to indeterministic exploration.

  • @Freek_a_goober1356
    @Freek_a_goober1356 3 месяца назад +5

    Bytebeat composer lore be like:

  • @SendyTheEndless
    @SendyTheEndless 11 лет назад +2

    I love the visualizations.

  • @SendyTheEndless
    @SendyTheEndless 10 лет назад +6

    4:11 Powerful PWM-like sound!

  • @Foerster44v2
    @Foerster44v2 9 лет назад +28

    For anyone interested in the last one:
    (3e3/(y=t&16383)&1) * 35+(x=t * "6689"[t>>16&3]/24&127)*y/4e4+((t>>8^t>>10|t>>14|x)&63)
    (at sampe rate 44,100 )

    • @ozzie_goat
      @ozzie_goat 9 лет назад +1

      Foerster44v2 You are fucking awesome.

    • @Foerster44v2
      @Foerster44v2 9 лет назад

      Max Greyfeather Thank you, you too :D

    • @Hexagic2024
      @Hexagic2024 Год назад

      hmm isnt this just speed up version? 🤔

    • @PrzeszczepiX
      @PrzeszczepiX Год назад

      The last one is really awesome considering how it was made. It sounds like a c-64 game actually!

    • @DandyDoondin
      @DandyDoondin Год назад

      What about 5:14?

  • @elijahvincent985
    @elijahvincent985 5 месяцев назад +3

    I managed to find a byte-sized MONSTER song with this simple C code:
    (-t%(t/1024&-t*2)>>-t/4)
    No person alive could possibly hear this song in its' entirety, since the duration (after careful evaluation and calculations) is 32,768 YEARS in length... And it's only 48 bytes in size, or 384 bits.

  • @ruslanzalata
    @ruslanzalata 13 дней назад +2

    The last formulae seems to be the best one. :)

  • @JanusTroelsen
    @JanusTroelsen 11 лет назад +1

    y-values on this curve: en. wikipedia. org/ wiki/ Pulse-code_modulation#Modulation
    putchar is a function that takes a value between -128 and 128. The curve is drawn from right to left. If putchar was called with 7, 9, 11, 12 ... you'd get an approximation of the sine wave pictured.

  • @helloofthebeach
    @helloofthebeach 10 лет назад +25

    Wow I wish some of these were longer

    • @HaydenSchiff
      @HaydenSchiff 9 лет назад

      Hero of the Beach we all know you're talking about the dante's inferno one

    • @boomerboxer3574
      @boomerboxer3574 5 лет назад +1

      You can play around with them online! Here's a list of some. Play them in the HTML5 Bytebeat generator and you're set. wry.me/bytebeat/examples.html

  • @MyOtheHedgeFox
    @MyOtheHedgeFox 13 лет назад +1

    I liked 3:27 a lot. Kb's chaotic melody is very nice in the end.

  • @leftintheoxafire
    @leftintheoxafire 2 месяца назад

    1:33 this sounds like an introducing to something that’s like about to appear on screen, and I like it!

  • @Roboprogs
    @Roboprogs 6 лет назад +2

    I am sad that we never got to do this in CS classes in 80s. Computer graphics classes, but no music (though music dept did have electronic music, and I did get to tinker with SID on C64 one summer...)
    I should get out more, I guess :-)
    Thanks for sharing.

  • @MyOtheHedgeFox
    @MyOtheHedgeFox 13 лет назад

    The second melody is a very nice basis for an intro!

  • @JaysonPlaysMinecraft
    @JaysonPlaysMinecraft 9 лет назад +3

    5:14 Woah. Pretty fucking awesome music!

  • @anthar2929
    @anthar2929 8 месяцев назад +2

    6:34 Absolute bop

  • @duccius
    @duccius 2 года назад

    I come here time after time, this stuff is amazing.
    How can a human beeing just think to do something like this.

  • @RiscTerilia
    @RiscTerilia 12 лет назад

    the sixth song literally is Rez by Underworld, it's mental how someone's made it with this!

  • @swiffty1
    @swiffty1 8 лет назад +2

    That bass was tight!!

  • @MickeyTheSecond
    @MickeyTheSecond 5 месяцев назад +1

    This is straight fire 🔥

  • @crabs8003
    @crabs8003 9 месяцев назад

    That album was absolutely fire 10/10

  • @jimbojimmy1236
    @jimbojimmy1236 7 месяцев назад +2

    3:26 0:11

  • @aksufatos
    @aksufatos 11 лет назад

    And it respresents waveform information in sample (Information data is: wavelenght, frequency,amplitude values etc..). And sample is time/size-limited data part. For more information: Sampling_(music) and Sound in wikipedia

  • @viznut
    @viznut  13 лет назад +2

    @ericfontainejazz The code is quite messy and not really intended for reuse, but I may consider releasing it (maybe tidying it up a little bit) if I get enough requests.

  • @unvisible805
    @unvisible805 10 лет назад +1

    the 3rd one was the best. freakin awesome.. should have been longer..

    • @Pokechu22
      @Pokechu22 10 лет назад

      ***** Derp, screwed up there. It had the wrong link, you want entropedia.co.uk/generative_music_1.2_beta/#b6409Ao0TfS0jA0VdMwqDAyNjE1s0g0sLPTKLGzs1AzstAEghqgCoiIoaFmHIgy0tQGajM0UytRMzLRBAA%3D.

  • @Popularbycomments
    @Popularbycomments Месяц назад

    this is nostalgic seeing this as a html5 user

  • @viznut
    @viznut  13 лет назад +2

    @ModernZeuhl You should probably ask mu6k, ryg, p01 or someone else who has been hacking with the Chaos Theory cover if you want a detailed description. I don't personally find it particularly interesting compared to the shorter formulas. I will be concentrating on the short formulas in my next post, but maybe I'll be able to explain some more "constructive" techniques as well.

  • @DocteurZeuhl
    @DocteurZeuhl 13 лет назад +7

    Could we please get a detailed explanation of how "Covers Chaos Theory by Conspiracy" works on the Countercomplex blog ? Because the formula is hard to understand, and it would be more than interesting to see how this incredible wall of automatic music was built brick by brick. Pleaaaaaase ^^ Thank you !

  • @bitterlemonboy
    @bitterlemonboy Год назад +2

    This is the purest form of music. Just 1 or 2 lines of math..

  • @matveygolovin
    @matveygolovin 9 месяцев назад +2

    0:11 my favorite,sounds like 8 bit song

  • @ozzie_goat
    @ozzie_goat 9 лет назад +2

    Sheesh! I remember when there were like, 5 comments on this video.

  • @broookville
    @broookville Год назад

    discovered this site from one of my friends, now I'm here

  • @herrfriberger5
    @herrfriberger5 7 лет назад +7

    May I ask how you generate PCM-waveforms via putchar?
    (Ok, now I see, using pipe, on unix...)

  • @SolloCrazy
    @SolloCrazy 10 лет назад +9

    5:14 fuck yeah witch house :)

  • @alexhauptmann298
    @alexhauptmann298 3 года назад +2

    6:34 Depeche Mode has joined the server.

  • @jetther
    @jetther 5 лет назад +2

    Why i keep watching this on 2018? I found this video in 2016 too...

    • @jetther
      @jetther 2 года назад

      2022 and still going.

  • @SeafoamManokit
    @SeafoamManokit 6 месяцев назад +1

    5:14 BY FAR THE BEST ONE OMFG

  • @Annikras
    @Annikras 13 лет назад +2

    even more nice ideas \o/

  • @unflexian
    @unflexian 7 лет назад +1

    Some dope ass dubstep: (t&7+t/800)%15 at 8khz

  • @DocteurZeuhl
    @DocteurZeuhl 13 лет назад

    @viznut Thank you very much !

  • @Thesquarewave
    @Thesquarewave 10 лет назад +2

    2:23 It's just using a huge saw-tooth wave to make a beat... Cool. :D

  • @kaini7010
    @kaini7010 12 лет назад

    when i saw part 1 i said 'these are cellular automata', nice to see my opinion validated :)

  • @igotlotiononit
    @igotlotiononit 8 лет назад +1

    t * ((t>>12|t>>8)&63&t>>33) sounds really awesome.

  • @milesbrown2261
    @milesbrown2261 7 лет назад +1

    Oh my worrrrrdddddd this sounds amazing and strange

  • @ross817
    @ross817 11 лет назад

    They are! Thanks for the info!

  • @hollya.g.86
    @hollya.g.86 9 лет назад +7

    do you have a full length album made? i would play your music at a dance party

  • @RoyalChernosliv
    @RoyalChernosliv Месяц назад +2

    Thought im gonna hear Salinewin virus best beat here, but i didnt. I only heard Salinewin first song and that's also was the first song in this video, and also some Salinewin song at 5:47

  • @jarblewarble
    @jarblewarble 12 лет назад +2

    0:34 This is one of my favorites. :)

  • @alexkanakis7808
    @alexkanakis7808 10 лет назад +3

    3:00 is so cool

  • @Dreadonator
    @Dreadonator 11 лет назад +1

    awesome

  • @VJFranzK
    @VJFranzK Год назад

    Good challenge, and results!

  • @ethanpixelate
    @ethanpixelate Год назад

    this is beautiful

  • @LupinxJigenTTV
    @LupinxJigenTTV 10 лет назад

    those last 2 JS ones were amazing, math music

  • @Racavanian2
    @Racavanian2 Год назад

    5:14 this is Longline Theory but the actual song is Chaotic Theory Demo

  • @Rudxain
    @Rudxain 2 года назад +1

    I wonder what other sounds we could achieve if we used other mathematical functions like hyperbolic trig, gcd, fibonacci, collatz, or prime numbers mod something.
    And I'm considering making Brainf**k programs that generate files, then use Audacity to interpret those files as PCM. The constraints of BF may spark more creativity, I guess?

  • @bruhmaster4207
    @bruhmaster4207 Год назад +1

    2:22 this slaps

  • @Bratjuuc
    @Bratjuuc 8 лет назад

    1:31 New Perturbator's song sounds pretty cool!

  •  9 лет назад +2

    Hi, there is a "full version" of the song in 5:14?
    i already found the music from the actual demo its based from (gargaj - rude awakening) , but i wonder if the demo got ported to javascript somewhere else (with this code as the generator).

    • @haruthecat8889
      @haruthecat8889 4 года назад

      w=t>>9,k=32,m=2048,a=1-t/m%1,d=(14*t*t^t)%m*a,y=[3,3,4.7,2][p=w/k&3]*t/4,h="IQNNNN!!]]!Q!IW]WQNN??!!W]WQNNN?".charCodeAt(w/2&15|p/37&&a*((5*t%m*a&128)*(0x53232323>>w/4&1)+(d&127)*(0xa444c444>>w/4&1)*1.5+(d*w&1)+(h%k+h*1.99%k+h*.49 here just for u

  • @karasyyuisk
    @karasyyuisk 24 дня назад

    I love it

  • @Coppertiel
    @Coppertiel 9 лет назад +1

    I discovered this a while ago:
    (t/2*(((t>>4|t)>>8)%11)&255)/4 + (t*(((t>>5|t)>>8)%11)&100)/2 + ((t/4096+1)%21)*(rand(0, 255)*((t/16&255) < 12))/2
    If you separate them by the +s, the first one is the bass, second one is the rhythm, and the last 2 are percussion.
    I'm using the entropedia 8 bit generative composer

    • @McPlaySpot
      @McPlaySpot 8 лет назад

      May I ask how you understand how this code work? I mean they're doing Bitshifting , putchar and some operations... it makes me confused.

    • @fannybfdiaauttpazntputtd
      @fannybfdiaauttpazntputtd Год назад

      Didn't work lol

    • @Coppertiel
      @Coppertiel Год назад

      @@fannybfdiaauttpazntputtd Try this section only: (t*(((t>>5|t)>>8)%11)&100)

    • @fannybfdiaauttpazntputtd
      @fannybfdiaauttpazntputtd Год назад

      @@Coppertiel Thanks

  • @Chitose_
    @Chitose_ 7 месяцев назад +1

    0:45 garbage wastes threat weird layer only, but on steroids

  • @concretefeet
    @concretefeet 11 лет назад

    the formula is a function of 't' were 't' is a position in time.

  • @EricFontaineJazz
    @EricFontaineJazz 13 лет назад +1

    I love the visualization. Is that code open-sourced?

  • @suPERSigMA12_whynotworking
    @suPERSigMA12_whynotworking Год назад

    5:13 is cool music nice work

  • @uitham
    @uitham 13 лет назад

    @Odin314 actually, there is a sierpinski triangle about everywhere in this video

  • @LogicBeach
    @LogicBeach 3 года назад +1

    Are simply taking the visual output and then sidecrolling it in a video editor or is there a code for that too? I'd like to incorporate this into my next album.

    • @corruption781
      @corruption781 Год назад

      they use codes like t&t>>8,
      how they process it like this,
      for(int t=0;; t++)
      {
      int u=t&t>>8;/*the output/'u' of the equation is inserted to the pcm channel to 8bits*/
      soundsys(u);
      }
      its time inserted to an equation and used the numbers to sound

  • @HurricaneSondra
    @HurricaneSondra 8 лет назад

    eight bit nintendo music! i use to love that mario tune from mario bros the first game edition lol. very very very cool sounding lol.

  • @jeaniebaby001
    @jeaniebaby001 11 лет назад

    tear it up.

  • @dawajchuju
    @dawajchuju 12 лет назад

    @micdah Sir, I've logged in just upvote your and the video. Chaos Theory is my favourite 64k and I always thought they have some kind of track file playing with generated samples. But I'd never tell that the whole music generator is so compact. greetz

  • @cosmic_roliepolieolie
    @cosmic_roliepolieolie 10 месяцев назад

    I can just chill n' sleep with these 😎

  • @xcimbal
    @xcimbal 12 лет назад

    viznut, very interesting topic! thanks for popularising this area of algorithmic music. (zilog, #z80:)

  • @saltyman7888
    @saltyman7888 11 лет назад +5

    Bisqwit
    "Making Music with one line of C code"

  • @AlxuOfficial
    @AlxuOfficial 11 лет назад

    This is fantastic! I support ByteBeat! That bit at like 1:10!!

  • @anwiseru9064
    @anwiseru9064 5 лет назад +1

    at 3:46 , couldnt you make the t/1024 thing into a t>>(log_2(1024)) thing?

  • @ArrowFox89
    @ArrowFox89 11 лет назад

    Oh C Programming, you rock!

  • @DandyDoondin
    @DandyDoondin Год назад +1

    I need the full version of 5:14

  • @herttaaa
    @herttaaa 13 лет назад

    Awesomeness.