• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [SOLVED] Decimal to binary

    How To... ?
    decimal binary
    6
    15
    3601
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michel
      Michel Izzy Guru @huangyi last edited by Michel

      @huangyi

      Here you go. decimalToBinary.izz

      Best Michel

      Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

      1 Reply Last reply Reply Quote 2
      • huangyi
        huangyi last edited by

        Thank you so much Michel!!!

        But my version is 2.61, how can I get newer version? ~@@~

        HY

        Michel 1 Reply Last reply Reply Quote 0
        • Michel
          Michel Izzy Guru @huangyi last edited by

          @huangyi 

          Sorry my fault. I replaced the file above, please download again.

          Best Michel

          Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

          1 Reply Last reply Reply Quote 1
          • huangyi
            huangyi last edited by huangyi

            Thank you so much Michel! It works!


            Is it possible to program it to keep export 9 numbers? say 0 = 000000000, 1 = 100000000, 359 = 111001101

            Please correct me if I am wrong!

            And is there any way that to transfer the number to text? so I can chop the number that I want to send to other actors? It appear differently with number to text actor.

            Thank you again!

            Wishes,

            HY

            m_theater 1 Reply Last reply Reply Quote 1
            • m_theater
              m_theater @huangyi last edited by

              @huangyi have a look at this patch you will find michel example modified to output a string 

              and some other actors that will already decode the bits and output them as 0/1 or on/off

              best clemens

              dec_binary_ck.izz

              avk4.net

              1 Reply Last reply Reply Quote 3
              • Maximortal
                Maximortal last edited by

                probably I miss something but is I enter 512 (increasing the number of bits ) the javascripts and the text actor return all 0s

                what am I missing?

                Iro Suraci | Win 10 - Ryzen 3600 - 32GB - nVidia gtx 960 4gb / Win 10 - i5 4210U - 8 GB - R5 M230 | Isadora 3.0.7| Located in Brescia, Italy

                Michel m_theater 2 Replies Last reply Reply Quote 1
                • Michel
                  Michel Izzy Guru @Maximortal last edited by

                  @maximortal

                  Well the problem with the modified patch is that its limited to output 9 numbers only, the first number gets chopped off. You have to go into the JavaScript actor and change (-9) to (-10).

                  Best Michel

                  Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                  1 Reply Last reply Reply Quote 2
                  • m_theater
                    m_theater @Maximortal last edited by

                    @Maximortal 512 is using the 10th bit so it wouldn't show up in the actors as they are hardcoded to 9 bits as requested by hunagyi

                    best clemens

                    avk4.net

                    1 Reply Last reply Reply Quote 2
                    • Michel
                      Michel Izzy Guru @huangyi last edited by Michel

                      @huangyi 

                      Just because we are talking about binary here. 

                      I found a video on youtube explaining binary, its in german but I guess even just the pictures explain it without understanding the language. Its the best I have seen.

                      if you don't understand German start watching from 1min 12seconds.

                      Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                      1 Reply Last reply Reply Quote 2
                      • huangyi
                        huangyi last edited by

                        Thank you, Michel and m_theater!!!

                        It works perfectly!
                        I hope I understand German; the video described so beautifully.

                        Will share with you that I use Isadora to control a turntable! 
                        The actor you wrote which is for the position the 360 degrees of the turntable. Without this actor, I need to type in the binary numbers manually. This actor improved the workflow very much!

                        I used to ask the turntable engineer to includes this code in their system, but they didn't. Now I luckily improved my coding skill.

                        Thank you again! 

                        HY

                        Woland 1 Reply Last reply Reply Quote 1
                        • Woland
                          Woland Tech Staff @huangyi last edited by Woland

                          @huangyi

                          That sounds awesome! It'd be great to see it in action too! We'd love it if you could tag us when and if you share any photos or videos on social media so that we can share them with our followers too. We're always excited to see what our users around the world create with Isadora and love to celebrate our community! #troikatronix

                          Facebook, Twitter: @troikatronix
                          Instagram: @troikatronix_isadora 

                          TroikaTronix Technical Support
                          New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                          TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                          TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                          | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

                          1 Reply Last reply Reply Quote 0
                          • huangyi
                            huangyi last edited by

                            Sure! I will do that!  : D

                            Cheers,

                            HY

                            1 Reply Last reply Reply Quote 2
                            • mark
                              mark last edited by

                              Dear All + @Michel

                              Michel discovered an interesting bug in his actor that converts to binary, and I wanted to leave a record of it here.

                              He tried to convert the number 290 to binary, which should be 100100010. But the output shows 100100018.

                              Inside the actor, this is being processed as a 32 bit floating point value. But 100100010 cannot be correctly represented by a 32 bit float.

                              This site shows you why.

                              You can see that closest value to 100100010 is 10010008. Thus the error.

                              In Isadora 3 we use 64 bit floats, and so you won't see this problem until the number gets much larger once you're using that version. But, suffice to say, there is a limit even with 64 bit floating point numbers.

                              Best Wishes,
                              Mark

                              Media Artist & Creator of Isadora
                              Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

                              Michel 1 Reply Last reply Reply Quote 0
                              • Michel
                                Michel Izzy Guru @mark last edited by

                                I still had a few questions to @Mark because you did get a correct output in certain cases. He gave me the following answer:

                                When the output is text, the conversion is done inside Javascript, where the floating point number stays in the 64 bit space. That produces a correct string result. 

                                The JS actor outputs as integer by default, connect it to a text actor to mutate the output to text. 

                                Best Michel

                                Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post