Results 1 to 15 of 15
  1. #1
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Epic Music Time

    This code below is a shell script that will produce immense amounts of Nostalgia for NB's older crowd. The script uses a.out to play audio in 8bits at a 8000MHz in mono.

    Warning: You will need a bash/shell environment for this bash/shell script to work. A GNU/Linux disto (Debian, Gentoo, Arch, Slack etc), or a BSD will work (I don't know much about BSD to be honest, so I will explain everything from a GNU/Linux perspective).

    Code:
    echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i >>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay
    Step One: Open a shell terminal



    It should by default place you in your home folder, /home/username/ and it's up to you if you want to create another folder or create the script directly in your home folder. For this example, I will plot it directly into the home folder.

    Step Two: Inserting the code

    From here, you will use nano (unless of course you're more experienced, then you would have just copied the code and gone off and done your own thing).

    nano music.sh

    This will open a non-graphical text editor. Don't get scared, all you're going to do is copy and paste the code (you will have to right click inside the terminal window and choose paste from the pop up menu).



    At this point, you will hit ctrl+o, that will write the changes you made to music.sh. After which you will use ctrl+x to exit nano.

    Step Three: Starting the script.

    You should be back in your home directory, use chmod +x to make the shell script executable.
    Then all you have to do is run the script
    ./music.sh


    Warning
    : To stop this script, use ctrl+c. Else, if you close the terminal window and find yourself unable to halt it, use ps -ef and look for ./a. out and aplay. To the left will be the PID (process ID) you will need to kill it.



    Use the kill command to kill the PID, example from my image: kill 8217 && kill 8218

    Enjoy!
     
         
    Last edited by Zombie; 01-10-2013 at 01:31 PM.

  2. #2
    Whisteria Tiger rinnemaki's Avatar
    Status
    rinnemaki is offline
    Gender
    Join Date
    Dec 2011
    Location
    Dressrosa
    Posts
    9,443
    Post Thanks / Like
    Ahho Zurako...
    Phoaaaarrrrrr!!!! She's
    definitely a 10!
     

    Re: Epic Music Time

    what?
     
         

  3. #3
    ★The 13thSin Of Ignorance★ Armstrong's Avatar
    Status
    Armstrong is offline
    Gender
    Join Date
    Feb 2009
    Location
    Realm of The Heartless Colonies
    Posts
    6,277
    Post Thanks / Like
    kill all fapboys who worship
    cartoon ninjas that dont even
    know they exist
     

    Re: Epic Music Time

    what?
     
         

  4. #4
    R Ì N N E -Immortal-'s Avatar
    Status
    -Immortal- is offline
    Gender
    Join Date
    Nov 2012
    Location
    Cybertron
    Posts
    24,462
    Post Thanks / Like
    This user has Godly status.
     

    Re: Epic Music Time

    what do u mean ?
     
         

  5. #5
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Tutorial is done. If you need help, explanations on commands, etc, just ask.
     
         
    Last edited by Zombie; 01-10-2013 at 12:44 PM.

  6. #6
    Banned Klad's Avatar
    Status
    Klad is offline
    Gender
    Join Date
    Jul 2012
    Posts
    19,923
    Post Thanks / Like
    Permanently gone.
     



    Re: Epic Music Time

    what's this
     
         

  7. #7
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Quote Originally Posted by kladarakun View Post
    what's this
    See post above yours.
     
         
    Last edited by Zombie; 01-10-2013 at 01:08 PM.

  8. #8
    Wesobi's Avatar
    Status
    Wesobi is online now
    Gender
    Join Date
    Oct 2010
    Location
    Running circles around a square house.
    Posts
    14,746
    Post Thanks / Like
    I'm Sara's Slave. I shall bow
    down to her and bring her lots
    of seashells!
     



    Re: Epic Music Time

    This code below is a shell script that will produce immense amounts of Nostalgia for OPB's older crowd.

    how does this explain what it does, or what it's for? It produces nostalgia... That could be about anything, please explain more thoroughly. Also, if it's for OPB's older crowd, I think you switched up forums.
     
         

  9. #9
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Quote Originally Posted by Wesobi View Post
    This code below is a shell script that will produce immense amounts of Nostalgia for OPB's older crowd.

    how does this explain what it does, or what it's for? It produces nostalgia... That could be about anything, please explain more thoroughly. Also, if it's for OPB's older crowd, I think you switched up forums.
    Ah, didn't notice I forgot to edit that part to NB's older crowd. ;o I'll explain it a bit more briefly then too.

    Good catch on that. I didn't think to explain what exactly the script did, as I can look at the script and tell exactly what it does. Well, I put a little more of a brief explanation in. I'll go into much further details if people want, but that will take many many paragraphs.
     
         

  10. #10
    turtles gamahiro's Avatar
    Status
    gamahiro is offline
    Gender
    Join Date
    Jul 2010
    Location
    RI
    Posts
    32,576
    Post Thanks / Like
    me and saraisthebeast
     



    Re: Epic Music Time

    err..you can just copy and paste that code right in a terminal and ctrl-z to kill it when you're bored after 5 seconds. And, cd to someplace with a lot of space if you plan on playing it for more than a few seconds. rm a.out too
     
         

  11. #11
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Quote Originally Posted by gamahiro View Post
    err..you can just copy and paste that code right in a terminal and ctrl-z to kill it when you're bored after 5 seconds. And, cd to someplace with a lot of space if you plan on playing it for more than a few seconds. rm a.out too
    I'd hope people would have a lot of space in their /home partition. ;o

    And I was aiming the whole making a music.sh file at people who've never done anything like this before, that way they can garner some experience. ;D
     
         
    Last edited by Zombie; 01-10-2013 at 02:22 PM.

  12. #12
    der Fehler Phail's Avatar
    Status
    Phail is offline
    Join Date
    Jan 2010
    Posts
    192
    Post Thanks / Like
    This user has no status.
     

    Re: Epic Music Time

    Quote Originally Posted by rinnemaki View Post
    what?
    Quote Originally Posted by COLONELJJ81 View Post
    what?
    Quote Originally Posted by PainTotheEarth View Post
    what do u mean ?
    Quote Originally Posted by kladarakun View Post
    what's this
    dat nb
     
         

  13. #13
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Quote Originally Posted by Phail View Post
    dat nb
    Of course they'd get it.
     
         

  14. #14
    Academy Student testing123's Avatar
    Status
    testing123 is offline
    Gender
    Join Date
    Feb 2012
    Posts
    13
    Post Thanks / Like
    This user has no status.
     

    Re: Epic Music Time

    I see.
    Quite nostalgic indeed.
     
         

  15. #15
    Braaaaiiiins Zombie's Avatar
    Status
    Zombie is offline
    Join Date
    Oct 2010
    Posts
    2,546
    Post Thanks / Like
    Calm like a bomb.
     



    Re: Epic Music Time

    Quote Originally Posted by testing123 View Post
    I see.
    Quite nostalgic indeed.
    Claims nostalgia, is still a child.
     
         

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •