HISE Logo Forum
    • Categories
    • Register
    • Login

    Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4

    Scheduled Pinned Locked Moved Solved General Questions
    18 Posts 3 Posters 680 Views
    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.
    • M
      Mighty23
      last edited by

      I'm trying to get different values than those preset by 'tempo_sync'. My code needs refactoring to avoid magic numer and is quite stupid, but at the moment, I need to figure out how to get: 3/16, 1/3, 3/4.

      {
      	if (value == 1){ 
      		// 1/32 
      		Flanger.setAttribute(Flanger.Tempo, 14);
      		}
      	if (value == 2){ 
      		// 1/16 
      		Flanger.setAttribute(Flanger.Tempo, 11);
      		}
      	if (value == 3){ 
      		// 1/8 
      		Flanger.setAttribute(Flanger.Tempo, 8);
      		}
      	if (value == 4){ // 3/16
      
      		}
      	if (value == 5){ 
      		// 1/4 
      		Flanger.setAttribute(Flanger.Tempo, 5);
      		}
      	if (value == 6){ 
        	  // 1/3 
      
      	}
      	if (value == 7){ 
          // 1/2 
         		 Flanger.setAttribute(Flanger.Tempo, 2); 
         		 Flanger.setAttribute(Flanger.Multiply, 1); 
      	}
      	if (value == 8){ 
         	 // 3/4
      
      	}
      	if (value == 9){ 
      		// 1/1
      		 Flanger.setAttribute(Flanger.Tempo, 0); 
         		 Flanger.setAttribute(Flanger.Multiply, 1); 		
      		}
      	if (value == 10){ 
      		// 2
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 2); 
      		}
      	if (value == 11){ 
      		// 4
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 4); 		
      		}
      	if (value == 12){ 
      		// 8
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 8); 	
      		}
      	if (value == 13){ 
      		// 16
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 16); 	
      		}
      	if (value == 14){ 
      		// 32
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 32); 
      		}
      	if (value == 15){ 
      		// 64
      		Flanger.setAttribute(Flanger.Tempo, 0); 
      		Flanger.setAttribute(Flanger.Multiply, 64); 
      		}
      

      Free Party, Free Tekno & Free Software too

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Mighty23
        last edited by d.healey

        @Mighty23 Is 3/16 and 3/4 the same as triplets?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        M 1 Reply Last reply Reply Quote 0
        • M
          Mighty23 @d.healey
          last edited by Mighty23

          @d-healey said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

          @Mighty23 Is 3/16 and 3/4 the same as triplets?

          Are you saying that We can represent 3/4 as a triplet of half notes. In this case, we would write the duration as 1/2T, indicating that we are dividing each half note into triplets?

          5 measures of 3 BEATS, is 3/4.

          Free Party, Free Tekno & Free Software too

          ulrikU d.healeyD 2 Replies Last reply Reply Quote 0
          • ulrikU
            ulrik @Mighty23
            last edited by

            @Mighty23 this is what I use (this is for extended tempo range

            //	NOTEVALUE LOOKUP TABLES	------------------
            const NVLookUpString = ["8/1", "6/1", "4/1", "3/1", "2/1","1/1", "1/2D", "1/2",
            "1/4D", "1/2T", "1/4",
            "1/8D", "1/4T", "1/8",
            "1/16D", "1/8T", "1/16",
            "1/32D", "1/16T", "1/32",
            "1/64D", "1/32T", "1/64",
            "1/64T"];
            
            const NVLookUpNum = [8, 6, 4, 3, 2, 1/1, 3/4, 1/2,
            3/8, 1/3, 1/4,
            3/16, 1/6, 1/8,
            3/32, 1/12, 1/16,
            3/64, 1/24, 1/32,
            3/128, 1/48, 1/64,
            1/96];
            

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            M 1 Reply Last reply Reply Quote 0
            • M
              Mighty23 @ulrik
              last edited by

              @ulrik I understand , but at the moment, I'd like to figure out how to 'unlock' myself to understand the time signature. Multiplier and Tempo are from this script node.

              screen2.png

              Free Party, Free Tekno & Free Software too

              ulrikU 1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @Mighty23
                last edited by

                @Mighty23 Ok

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                M 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Mighty23
                  last edited by

                  @Mighty23 said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                  Are you saying that We can represent 3/4 as a triplet of half notes

                  Nope. I was asking you if they are equivalent because the triplet times are built in to HISE's tempo sync mode.

                  @ulrik said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                  const NVLookUpString

                  You don't need to do this manually. There is a built in function.

                  const tempos = []
                  
                  for (i = 0; i < 18; i++)
                  	tempos.push(Engine.getTempoName(i));
                  

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  ulrikU M 2 Replies Last reply Reply Quote 0
                  • M Mighty23 marked this topic as a question on
                  • ulrikU
                    ulrik @d.healey
                    last edited by

                    @d-healey said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                    You don't need to do this manually. There is a built in function.

                    Yes but I use an order from slowest to fastest, and the factory settings in Hise is not working like that, Hise has another order of tempo increase like 1/8D, 1/8, 1/8T etc

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • M
                      Mighty23 @d.healey
                      last edited by

                      @d-healey said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                      Nope. I was asking you if they are equivalent because the triplet times are built in to HISE's tempo sync mode.

                      Ok, sorry, I didn't understand.

                      Should I 'round' to the nearest tempo ?

                      Free Party, Free Tekno & Free Software too

                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @ulrik
                        last edited by

                        @ulrik Aha that makes sense

                        @Mighty23 said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                        Should I 'round' to the nearest tempo ?

                        I'm not sure, I was just trying to see if the built in system already had what you wanted but with different terminology

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          Mighty23 @d.healey
                          last edited by

                          @d-healey said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                          'm not sure, I was just trying to see if the built in system already had what you wanted but with different terminology

                          I've already used the 'converter' node to go from frequencies to milliseconds. I could use non-integer Multiply values to achieve other time signatures (maybe), but I can't figure out how to calculate, so it's probably not the right way.

                          screen.png

                          Free Party, Free Tekno & Free Software too

                          1 Reply Last reply Reply Quote 0
                          • M
                            Mighty23 @ulrik
                            last edited by

                            @ulrik said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                            @Mighty23 Ok

                            How do you calculate 3/4 ?

                            Free Party, Free Tekno & Free Software too

                            ulrikU 1 Reply Last reply Reply Quote 0
                            • ulrikU
                              ulrik @Mighty23
                              last edited by

                              @Mighty23 said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                              @ulrik said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                              @Mighty23 Ok

                              How do you calculate 3/4 ?

                              You mean in scriptnode I suppose, I'm not very familiar with scriptnode.
                              What project are you using? You say "Music 101" where can I find that?

                              Hise Develop branch
                              MacOs 15.3.1, Xcode 16.2
                              http://musikboden.se

                              ulrikU 1 Reply Last reply Reply Quote 0
                              • ulrikU
                                ulrik @ulrik
                                last edited by ulrik

                                @ulrik Ok, I opened up a project, and I think I have the same setup as you have.

                                Skärmavbild 2024-05-01 kl. 20.44.20.png

                                First I am unable to get the tempo_sync node to follow Hise internal tempo
                                How do you do that?

                                Skärmavbild 2024-05-01 kl. 20.44.03.png

                                It seems a tempo of 114bpm in Hise internal tempo relates best to the tempo_sync node tempo

                                So you have the usual note value settings, so setting that to 1/4 and the Multiplier to 3 seems to be near 3/4, but as I said, I don't know how to sync the tempo_sync node with Hise internal tempo so this is what I hear when listening to the metronome and the pulse together

                                Hise Develop branch
                                MacOs 15.3.1, Xcode 16.2
                                http://musikboden.se

                                ulrikU 1 Reply Last reply Reply Quote 0
                                • ulrikU
                                  ulrik @ulrik
                                  last edited by ulrik

                                  @ulrik Ok, the scriptnode tempo_sync node doesn't seem to follow Hise internal tempo but when the plugin is compiled it will follow the host tempo (at least in Logic)
                                  However I can't get it to start on note on or start with the daw transport play
                                  (So ignore the terrible out of beat in the video 😱)

                                  Anybody knows why, is there something lacking in my head or in Hise ?
                                  @Christoph-Hart ?

                                  @Mighty23 so your questions
                                  3/16 = tempo 1/16, multiplier 3, same with 3/4, tempo 1/4, multiplier 3

                                  as I show in this video
                                  video

                                  1/3 meaning 1 third of 1 bar (4/4) = 1/2T

                                  Hise Develop branch
                                  MacOs 15.3.1, Xcode 16.2
                                  http://musikboden.se

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    Mighty23 @ulrik
                                    last edited by

                                    @ulrik said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                                    @Mighty23 so your questions
                                    3/16 = tempo 1/16, multiplier 3, same with 3/4, tempo 1/4, multiplier 3

                                    as I show in this video
                                    video

                                    1/3 meaning 1 third of 1 bar (4/4) = 1/2T

                                    Thank you for the time spent trying to understand together. I am on Windows and have not yet tested on Mac if tempo_sync follows the values of the DAW. The title of the post is ironic and means that I have failed the basic concepts of music theory. Thank you again for your time. I'll try to run some tests myself

                                    Free Party, Free Tekno & Free Software too

                                    ulrikU 1 Reply Last reply Reply Quote 1
                                    • ulrikU
                                      ulrik @Mighty23
                                      last edited by

                                      @Mighty23 said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                                      Thank you for the time spent trying to understand together. I am on Windows and have not yet tested on Mac if tempo_sync follows the values of the DAW.

                                      Does it follow tempo on Windows?

                                      Hise Develop branch
                                      MacOs 15.3.1, Xcode 16.2
                                      http://musikboden.se

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        Mighty23 @ulrik
                                        last edited by

                                        @ulrik said in Failing at Music 101 , tempo_sync values. 3/16, 1/3, 3/4:

                                        Does it follow tempo on Windows?

                                        It works well

                                        Free Party, Free Tekno & Free Software too

                                        1 Reply Last reply Reply Quote 0
                                        • M Mighty23 has marked this topic as solved on
                                        • First post
                                          Last post

                                        30

                                        Online

                                        1.7k

                                        Users

                                        11.8k

                                        Topics

                                        102.8k

                                        Posts