More Instruments

In the last video I showed you a music generator made of the new electrics in Survivalcraft. The problem was that the sound of the generator was a bit annoying. So I added some more instruments. Here’s a new video quickly showing all 7 of them:

http://youtu.be/nqaCT-R0AK0

You select the instrument via the clock input at the bottom of the sound generator. Depending on what analog value you send there, a different instrument will play. The default one (when you just send a logic high signal from e.g. a button) is a piano.

As promised, here’s a description of another bit of the new electrics.

If you have trouble understanding the below, don’t worry. This is a fairly advanced piece of Survivalcraft electrics and you don’t need to use it unless you want to create some advanced electric devices!

The Memory Bank

Memory bank is a device that can store a large amount of data, which can be used by other elements, for example displays or music generators. It supports both reading and writing, as well as manual entry via a dialog box.

Memory Bank

 

A memory bank

A single memory bank stores up to 256 “words”, each word being 4 bits in length.

Addressing

The access to the data is sequential, i.e. you can only access a single word at a time. To select which word should be read from the memory bank, two address lines are used. Why two? Because each line is 4 bits, and 8 bits are needed to address all 256 memory locations.

If you look at the picture of the memory bank above, you will see two inputs, left and right, one output at the top, and one clock input at the bottom (remember the convention: blue is input, red is output).

The inputs on left and right are address lines. The one with a single dot sets the 4 low bits of the address. The one with two dots sets the 4 high bits. If you only want to use no more than 16 elements from the memory bank, you only need to use the low input and can leave high disconnected. That will give you 4 bit addressing, i.e. up to 16 locations.

Side note: a good element to use for generating addresses is a 4-bit counter. It outputs a 4 bit value that can be directly connected to the address input of the memory bank. You can cascade two such counters (using the overflow output of the first one) to make a 8 bit counter and address the entire bank. See the picture below:

8 bit addressing

 

8 bit addressing using two chained 4-bit counters

Reading

The value stored in the memory bank is available through the top output.

The clock input is optional and works the same way as in SR latch. If it is connected, the address lines will only be sampled at the rising edge of the clock signal. At all other times the output of the memory bank will keep showing the last addressed location, no matter what is currently supplied to address lines. This is useful for synchronous circuits.

Writing

To write to the memory block, you need to use the “in” input (i.e. the one accessible when you place the memory bank on wire-through-block element). The value supplied on this input will be written at the address given by address lines on the rising edge of the clock input, which must be 0.7V or less. Anything above 0.7V will cause a synchronous read, as described above.

Editing

Memory block is editable. This is a new concept in Survivalcraft. Basically, when you hold a memory block in your hand (or look at a mounted one from close distance), the sneak button will change into edit button:

Edit

Edit button

When you click this button, the edit dialog box will open for the given element:

EditMemoryBank

Edit memory bank dialog

In there you can enter the data you need, either using a grid or paste it into a single text box.

There are more elements that use the new edit mechanics, more on it later.

85 Comments

  1. sancroff
    Posted October 13, 2013 at 20:48 | Permalink | Reply

    People can go wild with this. They’ll be able to store music in memory and play it back. And maybe one day we’ll have a CPU which reads and executes op codes. Or maybe not. :-)

    LogicCraft!

    • sancroff
      Posted October 13, 2013 at 20:52 | Permalink | Reply

      Oh, duh, I hadn’t watched the video yet when I wrote the above comment. Video demonstrates playing back music from memory. Note to self: watch videos before commenting.

  2. mrjustplaying
    Posted October 13, 2013 at 21:00 | Permalink | Reply

    Wow that looks complicated :D

    • mrjustplaying
      Posted October 13, 2013 at 21:08 | Permalink | Reply

      I’m really looking forward to release!!

  3. Posted October 13, 2013 at 21:02 | Permalink | Reply

    I can definitely see this coming into play with a Harry Potter themed creation, with Harry Potter music playing somewhere unseen :D

  4. Posted October 13, 2013 at 21:03 | Permalink | Reply

    Kaalus add violin and synth like voices to create beautiful atmospheric music. :) maybe even a buzz to create techno for the clubs. Lol

  5. dangercrafter
    Posted October 13, 2013 at 21:16 | Permalink | Reply

    5th

  6. Posted October 13, 2013 at 21:26 | Permalink | Reply

    COOL and thanks kaalus. please like my fb page: https://www.facebook.com/cpplekce?ref=hl

  7. rudedog69
    Posted October 13, 2013 at 21:39 | Permalink | Reply

    Damn I’m going to need to take a college course to get my head around this XP nice job K although I’m totally lost.

  8. Posted October 13, 2013 at 21:49 | Permalink | Reply

    Nice job! Today one year since the SC port on Android!
    Congratulations!

  9. Posted October 13, 2013 at 22:13 | Permalink | Reply

    Kaalus.
    Please add d flip flops and jk flip flops

    • Posted October 13, 2013 at 23:17 | Permalink | Reply

      SR latch does the job of both

      • Posted October 13, 2013 at 23:54 | Permalink | Reply

        I think he means footwere

      • reap3r119
        Posted October 14, 2013 at 05:24 | Permalink | Reply

        I still use an SR NOR latch instead of the SR latch, simply because the game’s SR latch only has one output, and an SR NOR latch can easily be gated.

  10. Posted October 13, 2013 at 22:37 | Permalink | Reply

    Hi Kaalus can you add a portable torch ,so when you walk around the place with a torch in your hand it will light up your surroundings , and when axe a tree at the bottom you will get all of the blocks of the tree not one block :)

    • Posted October 14, 2013 at 01:08 | Permalink | Reply

      Also, a way to see clearly under water. Two or three blocks down and I can’t see anything.

    • Posted October 15, 2013 at 17:38 | Permalink | Reply

      I’VE GOTTA SAFETY TORCH! XD

      • Posted October 17, 2013 at 12:18 | Permalink | Reply

        Look at little tim tim,sleeping so soundly…WAKE UP TIM TIM! WHAT IF THERES A MONSTER! X-D

        • Posted October 17, 2013 at 12:26 | Permalink

          Lol

        • Posted October 17, 2013 at 12:28 | Permalink

          DON’T BE SCARED TIMMY OR HE’LL EAT MONSTERS SMELL FEAR LOOKING FOR YOU! I’VE GOTTA SAFETY TORCH! PUT IT ON THE FRONT PORCH! IT’S A SAFETY TORCH! PUT IT IN THE HALLWAY! SAFETY TORCH! THAT’LL BE FIFTY BUCKS! :3

  11. Posted October 14, 2013 at 00:13 | Permalink | Reply

    Kaalus it doesn’t seem like electronics are going to be the smallest part of the update if it is then 1.23 will be amazing but with long post about electronics seems like it’s probably the most worked on thing

    • voidghoul
      Posted October 14, 2013 at 01:11 | Permalink | Reply

      @Mac Nwobi

      I agree with that observation. It seems like update 1.23 will be more beneficial towards world creators and SC electrics enthusiasts, and that’s fine. This update looks like it will provide more tools for us to customize the surroundings around us, but then there is the dilemma of not knowing how to use these tools. Because of this, some prefer to just have the environment changed to what the majority likes. I don’t blame them for wanting the work done for them, I might even put myself in that group, but there will be people who can simplify the new electronics so that we can learn how to use them. All we have to do is be open to electronics while requesting a feature.

      – -V

  12. Posted October 14, 2013 at 01:01 | Permalink | Reply

    I really hope players make some cool stuff with these new additions and post vids. I won’t be sold on this stuff’s importance until I see someone build a moving singing robot or something.

  13. Posted October 14, 2013 at 01:22 | Permalink | Reply

    I THINK I’M GONA DIE!!! IS THIS Y I FOUND 2 WHITE BULLS ON BOTH MY AND SURVIVALCRAFTS BIRTHDAY!?!?!?! AAAAAAAAAAAAAAAAAAA!!!!!!! I’M GONA DIE!!!!! SC AND I SHARE BIRTHDAYS HOW THE HECK DID THAT HAPPEN! ©¿¡£®es?!!?!?!?!?!?

  14. Posted October 14, 2013 at 02:39 | Permalink | Reply

    Kaalus is posible to make texture pack like a app so we can make pack on phone or tablet without pc. The new electronic things sound awesome lit complicated but cool

    • reap3r119
      Posted October 14, 2013 at 05:32 | Permalink | Reply

      Check the forums. There’s already tools to make textures

  15. Posted October 14, 2013 at 02:56 | Permalink | Reply

    Kaalus this is so beautiful I cried nice job!

  16. Posted October 14, 2013 at 03:05 | Permalink | Reply

    You know how there are those 4 blocks next to the hunger box he should make it not only for amour but for goggle or diving tanks or armour and goggles make you see under water and there’s a bug where you can see everything under.water but then when you go under water you can’t see anything great job kaluss around when do you think the update.Will come out great job kaluss and happy birthday to survival craft (late birthday ) ( ; cry sniffles cry

  17. Posted October 14, 2013 at 04:47 | Permalink | Reply

    I love survivalcraft so much. It is one of the games i spend my whole day on. I believe survival craft has potential. I believe that one day, this app will be the number one paid app in the play store. I hope survivalcraft lives for many years and generations. I hope survival craft becomes famous one day. I wish survival craft many years to come. I wish survival craft a happy birthday. I believe that kaalus will one day shake hands with the bearded giant. I believe that kaalus will one day be on TV. I hope kaalus becomes the man that did everything. I hope kaalus becomes an inspiration for other successful people. I wish kaalus the best. I wish kaalus to live a joyful life.

    Kaalus, you are one of the most amazing people that have set foot on this planet. Creating an app that has so many good looking features. From scratch you started out with the most basic game ever. Now, its the most exciting game I love to play. Although it gets me bored at times I’ve never actually deleted it. This game has stayed with me for about an year and mcpe is long gone. Why? Because it isn’t as unique as this game. This game has so much potential kaalus and I owe all my respect to you for what you’ve created by yourself. You stress yourself out so much just to give us the best gaming experience there is. You are one amazing man kaalus. I hope to see survival craft as the top app one day and I hope to see you working together with notch one day. We all love you kaalus.

    Sincerely,
    Your number one fan :)

    https://db.tt/zlZ9fXAy

  18. reap3r119
    Posted October 14, 2013 at 05:30 | Permalink | Reply

    How does kaalus put up with people putting Survivalcraft in the shadow of Minecraft? Not everything is about making a replica of Minecraft

  19. Posted October 14, 2013 at 13:16 | Permalink | Reply

    Kaalus.
    Please add t flip flop,because i cant make small t flip flop with “clear” input

  20. Posted October 14, 2013 at 17:06 | Permalink | Reply

    Kaalus please reply if u think that making rope to tie animals or boats to a post or something is a good idea.
    Please be honest and if you say no please explain.

    • Posted October 15, 2013 at 01:10 | Permalink | Reply

      I can tell you he DOSEN’T like it…why? Because he’s trying to make survival more difficult…. So tying down a animal or boat would make it “too easy” … that way you can lose your horse or boat. And people…. Stop asking for weapons I.e. Guns, bows, whatever…. It’ll make survival “less difficult”.

      • reap3r119
        Posted October 15, 2013 at 02:07 | Permalink | Reply

        You do realize that we can just build a barn or an enclosed dock, right? Kaalus isn’t trying to make it impossible

        • Posted October 17, 2013 at 22:42 | Permalink

          Yes I do realize that I make them all the time but with rope in challenging mode it would be easier to tie an animal or boat up and move it round the country but it would be harder to get rope than build a stable.

      • Posted October 17, 2013 at 22:37 | Permalink | Reply

        Survival craft wouldn’t be any easier with rope or not it could be hard if you get it from a rare substance like red rye or lions mane fur

  21. Posted October 14, 2013 at 20:04 | Permalink | Reply

    Now that, is cool. I wish I knew how to use this though………

  22. Posted October 14, 2013 at 20:44 | Permalink | Reply

    Can you add in game music, if not now, then later on?

    • Posted October 14, 2013 at 22:00 | Permalink | Reply

      Yeah and what u made is like amake ur own music thing and a jukebox u make what the thing u talked abuot on this post so u can make recoreds and play them in the jukebox

      • reap3r119
        Posted October 15, 2013 at 02:04 | Permalink | Reply

        It’s not exactly a small, simple circuit. Who knows what the wiring looks like behind that wall…

  23. Posted October 14, 2013 at 21:07 | Permalink | Reply

    Im not good at electrics at all,but i want to make a super mario tune! UGH!!! I am the worst at electrics!

  24. Posted October 14, 2013 at 21:07 | Permalink | Reply

    He should maps books and alarms maps to keep track of where yove hunted explored to not get lost in mines books to keep track of things or as an agenda and alarms to wake you up at specific times of day and more weapons like whips to keep animals back and clubs batons and maces

  25. Posted October 14, 2013 at 22:55 | Permalink | Reply

    AM SORRY FOR POSTING HERE , AM NOT SURE HOW TO POST ON THE NEW FORUM YET , BUT ANWAYS, hi everyone (WOW ) here , i will be posting a very large map ive been working on for some time , it’s not finish but i want to start a new flat map , be looking for “A WOW MAP by wow” tuesday

  26. Posted October 14, 2013 at 22:56 | Permalink | Reply

    On version 1.24 u should focus on multiplayer because its really boring to play with yourself. [WiFi/internet]

    That’s the only reason why I don’t play it much anymore I dunno what to do with my self and just animals

    • Posted October 14, 2013 at 23:03 | Permalink | Reply

      they also have blue tooth games , where u can play with your friends on the same game plat form threw blue thooth

    • Posted October 15, 2013 at 06:29 | Permalink | Reply

      I totally agree with the multiplayer, although, I think the customizing of our character should come before multiplayer, but I’m pretty sure Kaalus is holding that off for a more extreme update.

  27. Posted October 14, 2013 at 23:00 | Permalink | Reply

    oh Kaalus; it’s hard to put so many words on the small signs in the game , you think maybe we can have billboards? or something of that nature ?

    • reap3r119
      Posted October 15, 2013 at 02:00 | Permalink | Reply

      Why, when you can place several signs side-by-side?

  28. Posted October 15, 2013 at 01:05 | Permalink | Reply

    Holy crap, I just looked up minecrafts block ids, there is a ton of kool stuff….I can’t wait till 1.24 to get some usable blocks…. …. …..

  29. reap3r119
    Posted October 15, 2013 at 01:59 | Permalink | Reply

    Is kaalus going to post the blocks texture for 1.23 like he did with 1.22?

  30. Posted October 15, 2013 at 03:42 | Permalink | Reply

    Kaalus, I was just thinking: with all these cool electronics, are you going to make copper (malchite) more common?

    • Posted October 15, 2013 at 04:16 | Permalink | Reply

      I found 18 peices of malchite in my mine yesterday. I found in a cave. I kept digging down to lava and found some on the other side of a underground lava pit. I can make 18 wires with one copper so thats good. It took me a long time to find it but you’ll eventually find it mining in a cave. :)

    • Posted October 15, 2013 at 17:34 | Permalink | Reply

      Ikr! I hope he can add gold! OR EVEN BUTTER! :D I LOVE BUTTER AND BREAD! Omnomnomnomnomnomnom or maybe just gold. LOL.
      It can be made for tools and maybe armor.
      But it’s never better than diamond.
      Gold should be a little more common but in the most difficult places to find.

      :3

  31. Posted October 15, 2013 at 06:25 | Permalink | Reply

    Hey kaalus, I’ve been playing you’re game for about a year now, and I have to say I’m not disappointed. You’re game is great, it only lacks a few things. But, those are for later, more extreme updates, what I want to say has to do with the map rating. I don’t know if this is already in the new update or not, but it would be nice if we could leave a comment on the maps ratings for other people to see, that way we really get an idea of the map that we’re about to download. Also, oI love the fact that you’re adding more fish, but why stop there? There are so many fish breeds that you could add, I feel like the waters are a bit dull with the few fish we have at the moment, it would be nice with some minnows or some other small fish for the oceans as well. Coral reefs would be a cool idea two, it would give a more flare to the oceans.

  32. Posted October 15, 2013 at 12:22 | Permalink | Reply

    Kaalus,do you think you can make tree’s leaves animated? Also,if you can,mabe a russling sound? I think this will make forest more peaceful….exept for thos pesky werewolves! :-)

  33. Posted October 15, 2013 at 13:41 | Permalink | Reply

    Hi kaalus.im curently building 8 bit computer.i have completed 8 bit alu with funtions like-add,substeact,invert a,invert b,and,or,xor,nand,nor,xnor and different types of inverting possibilities.i have 2 byte(16 bit)dual read general purpose registers,2 8 bit accumulators(temporary registers) on inputs of alu.its using 2 bus system(input bus and result bus).i will add random number generators,superfast clock,my own secret clock that generates pulses faster than 15 hz,ram and rom and more things

    • Posted October 15, 2013 at 16:41 | Permalink | Reply

      Cool can you show me how to make that please

      • Posted October 15, 2013 at 18:44 | Permalink | Reply

        Its too hard to show.it wil take hours of recording.
        And all my components designt not circuit design is made by me.
        Im building it while im learning how to build other parts like program counter etc.
        Alu is 9 block tall,31 block long and 13 block wide excluding input tmp. Registers.
        Dual read general purpose register is almost long as alu.

        • Posted October 15, 2013 at 18:55 | Permalink

          do you know how to make 5 pin lock?

  34. Posted October 15, 2013 at 17:29 | Permalink | Reply

    So cool yet so complicated. LOL I love this update! So many cool electrics. Hey kaalus, are there going to be anymore animals? My friend is a huge fan and wants to know. He also has some ideas for survival craft. Most of them are also my ideas.
    1.) A radio that can connect to a playlist on our phones without having to exit out of the game.
    2.) Jungle biome with tigers.
    3.) A saddle pack for the donkeys (pretty sure everyone has the same idea)
    4.) Wild dogs that can be tamed with meat and collars.
    5.) Dolphins so if your getting attacked be sharks and there’s a dolphin around they can save you.
    6.) Some sort of system for creative mode so we can use “blueprints” to lay out a certain number of blocks all at once.
    7.) More lead colors
    8.) Orange paint colors.
    9.) Solar panels
    10.) And I forgot what it’s called, but it’s what amusement parks use for moving parts on rides.
    I got that idea cuz I’m watching wipe out right now xD
    But whatever they are they can be used for obstacle courses. I’ve seen a lot of obstacle courses and I thinking spinning mechanics can make creative mode a lot funner :D

    So like I said most of these are my friends idea except for the radio and spinning mechanic. :3

  35. Posted October 15, 2013 at 17:40 | Permalink | Reply

    Can you add more instruments? My friend and I made a request on the video for clarinets and flute :3

  36. Posted October 15, 2013 at 18:36 | Permalink | Reply

    i need this update now

    • Posted October 15, 2013 at 22:06 | Permalink | Reply

      For the people who want guns, survivalcraft can’t have them because it would be counted as a game with
      “Gun violence”. Notch the minecraft creator also said on twitter that he will never add guns in minecraft because it will be a game using gun violence. Also when multiplayer comes and guns were in the game people would be shooting at each other with guns. I think that’s why kaalus is NEVER adding guns. Thx for reading. :)

  37. Posted October 15, 2013 at 22:40 | Permalink | Reply

    Here’s my new video http://youtu.be/DIYQvBRa4_o

  38. Posted October 15, 2013 at 23:58 | Permalink | Reply

    Hey Dave, do you know of a way to record directly from the screen?

    • Posted October 16, 2013 at 03:17 | Permalink | Reply

      EVERYBODY! I FOUND OUT THAT SURVIVALCRAFT WAS RELEASED BEFORE MINECRAFT PC PE AND XBOX. MINECRAFT WAS RELEASED NOVEMBER 18 AND SURVIVALCRAFT NOVEMBER 16. THEREFORE THAT PROVES SURVIVALCRAFT WAS RELEASED FIRST EVEN THOUGH IT HAS MINECRAFT’S IDEA OF A BLOCKY WORLD.

      • Posted October 16, 2013 at 04:24 | Permalink | Reply

        The alpha version was released on May 11th, 2009. The “full release version” was released Nov. 18th 2011. You’re off by 2 1/2 years.

    • Posted October 16, 2013 at 20:31 | Permalink | Reply

      Gavin, are you using iOS or Android? I’m recording on Android so can help, Daverave40 is on iOS.

  39. Posted October 16, 2013 at 19:12 | Permalink | Reply

    I hope you will mread this kaalus!: that sounds with instruments should have a way to conect a piano item and then you can play manual music or by the way make a long chorus :) keyboard keyboard :)

Leave a Reply. No swearing please.

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s