HISE Logo Forum
    • Categories
    • Register
    • Login

    Maybe Too Hard A Question ?

    Scheduled Pinned Locked Moved General Questions
    54 Posts 6 Posters 3.0k 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
      MusoCity
      last edited by MusoCity

      I had a look at HISE and there is an Audio Loop Player.
      I can drop a long wav in that has different chords played on different bars, set the Loop to 2 or 4 bars, set the sample pos start sample pos end
      A chord 2 bars:
      Looper.setSampleRange(192000, 384000);
      A# chord 2 bars:
      Looper.setSampleRange(384000, 576000);
      alt text
      Can this be scripted to assign that to a midi chord input. So when an A chord is played it will loop that section of the wav , then A# chord will loop another section synced to the DAW tempo and so on ?

      alt text

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

        I found this that will play on C note input

        	if (Message.getNoteNumber() != 48)
        	    Message.ignoreEvent(true);
        

        Not familiar enough with java to get a chord with "and"

        function onNoteOn()
        {
        	if (Message.getNoteNumber() != 48 && 
        	    Message.getNoteNumber() != 52 && 
        	    Message.getNoteNumber() != 55)
        	    Message.ignoreEvent(true);
        }
         
        

        that just plays the sample with "any" of the notes and triples up playing the sample with all notes on.

        I found this one also that will allow users to load a sample.

        @Christoph-Hart said in How do you load samples into the sampler via scripting?:

        There is the "Audio Loop Player" sound generator which can load a single audio file and play it either as loop or as pitched note:

        HiseSnippet 1117.3oc4W0taiTCE0SRFUZfxxBKR7SqH9QVoR6jzVVDHDosaKDneD0TJHgPKtybShU8XG4wS6FVsOV7dviBuAf87QlYRl1lrr.RriTThOWe8btWeuG6zSJbgf.gDY81mOYLfrdG69S3pQ6OhP4ntOEY8t1GSBTfDGCs2jwjf.vCYYU8qM.VqVCE87Ge0dDFg6BYPHzEBpKbD0mpxP+kNeGkwNj3AmS8yM6s6z0Uv2WvDgZ9T01AMl3dEYHbBwLsJ1nqovMAHKG6sZug7pVW9q6twLOe+2r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irjUEy8RhG6jJd0G3dNo+erDisLisRL1J03+JuCehqT7L236kXpkeqHDcbyiDgWU+Gg0iwsRuQhI23q03dlqqIY+IsPnx8n8R6wVKsGauzdryR6wmtzd7jk1iO6N7vbfxtgJgebqGB8WNfUhHA
        

        You can connect a AudioWaveformDisplay from your script interface to it. It's not 100% what you need, but it might be a good starting point (let me know if you get along with this).

        There will be a csv file with the same name as the wav that will have the start/end times in the wav for the different chords playing. So the script would need to read the csv and calculate the sample start/end pos.

        #,Name,Start,End,Length,Color
        R1,C,1.1.00,3.1.00,2.0.00,FF80C0
        R2,C,3.1.00,7.1.00,4.0.00,3776EB
        R3,C#,7.1.00,11.1.00,4.0.00,3776EB
        R4,D,11.1.00,15.1.00,4.0.00,3776EB
        R5,D#,15.1.00,19.1.00,4.0.00,3776EB
        

        Attention Required! | Cloudflare

        favicon

        (mkyong.com)

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

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey
            last edited by

            You'd need to convert your CSV to a json file, but I'm not familiar with the audio loop player so I don't know if your idea is possible.

            1 Reply Last reply Reply Quote 0
            • M
              MusoCity
              last edited by

              Link Preview Image

              Convert CSV data to JSON. TSV to JSON

              favicon

              (www.convertcsv.com)

              So it can't parse it with the scripting ?
              I can do it with Lua http://lua-users.org/wiki/LuaCsv

              #,Name,Start,End,Length,Color
              R1,,1.1.00,3.1.00,2.0.00,FF80C0
              R2,A,3.1.00,5.1.00,2.0.00,E41A27
              R3,A#,5.1.00,7.1.00,2.0.00,E41A27
              R4,B,7.1.00,9.1.00,2.0.00,E41A27
              R5,C,9.1.00,11.1.00,2.0.00,E41A27
              R6,C#,11.1.00,13.1.00,2.0.00,E41A27
              
              [
               {
                 "#": "R1",
                 "Name": "",
                 "Start": "1.1.00",
                 "End": "3.1.00",
                 "Length": "2.0.00",
                 "Color": "FF80C0"
               },
               {
                 "#": "R2",
                 "Name": "A",
                 "Start": "3.1.00",
                 "End": "5.1.00",
                 "Length": "2.0.00",
                 "Color": "E41A27"
               },
               {
                 "#": "R3",
                 "Name": "A#",
                 "Start": "5.1.00",
                 "End": "7.1.00",
                 "Length": "2.0.00",
                 "Color": "E41A27"
               },
               {
                 "#": "R4",
                 "Name": "B",
                 "Start": "7.1.00",
                 "End": "9.1.00",
                 "Length": "2.0.00",
                 "Color": "E41A27"
               },
               {
                 "#": "R5",
                 "Name": "C",
                 "Start": "9.1.00",
                 "End": "11.1.00",
                 "Length": "2.0.00",
                 "Color": "E41A27"
               },
               {
                 "#": "R6",
                 "Name": "C#",
                 "Start": "11.1.00",
                 "End": "13.1.00",
                 "Length": "2.0.00",
                 "Color": "E41A27"
               },
              
              1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey
                last edited by

                You could convert a CSV string to an array with scripting. If you use the file system api you could read in the text file directly, but a json file is simpler to work with.

                1 Reply Last reply Reply Quote 0
                • M
                  MusoCity
                  last edited by

                  HISE looks great, it should be more popular but it's seems really quiet around here and hard to get information and help. The last release was 2018.
                  The Reaper script request forum is very popular and helpful
                  https://forum.cockos.com/showthread.php?t=109934&page=64
                  Do you know anyone I can pay that will create a basic script I can work off or do you think I'm flogging a dead horse here ?

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

                    @MusoCity Last release was 5 hours ago ;) I don't really understand the idea, but Lindon is the guy to ask for commissioning HISE work.

                    1 Reply Last reply Reply Quote 0
                    • M
                      MusoCity
                      last edited by

                      So Lindon is a forum user ?
                      This is the version I have
                      HISE 2.0.0
                      @christophhart christophhart released this on Nov 19, 2018

                      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @MusoCity
                        last edited by

                        @MusoCity That's the last release Christoph made binaries for. Since then there has been one other "tagged" release, v2.1.0

                        But if you want to use the latest version then the scriptnode branch is the most up to date and the last commit was about 5 hours ago.

                        Yes, @Lindon is a forum member.

                        1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @MusoCity
                          last edited by

                          @MusoCity -- mention his name and he will appear!!!

                          HISE Development for hire.
                          www.channelrobot.com

                          1 Reply Last reply Reply Quote 1
                          • M
                            MusoCity
                            last edited by

                            I asked in the Reaper forum and got a lot of help and code also.
                            I think the users here are commercially based so it's hard to get any help, it's a shame as HISE is open source. I created the ReaTrak for Reaper with Lua scripting free for users and are always creating scripts for other users in the script request forum along with so many others doing the same so I might create a HISE thread over there and get the scripters there interested.

                            LindonL 1 Reply Last reply Reply Quote 1
                            • LindonL
                              Lindon @MusoCity
                              last edited by

                              @MusoCity "commercially based"? "hard to get help"? - @d-healey has over 7K of posts helping people out last time I looked, I checked me too -- I have over 2K of posts, there's a ton of other people also helping out here.... so I could go on....

                              Perhaps you haven't clearly defined your problem with your HISE implementation in a way we can help you?

                              HISE Development for hire.
                              www.channelrobot.com

                              1 Reply Last reply Reply Quote 1
                              • M
                                MusoCity
                                last edited by

                                Sorry, maybe it's just just a bit quiet here at the moment.
                                If I want the audio loop player to loop a particular section of a wav file when I input midi notes 57+61+64 (A chord) and loop another section when I input 58+62+65 (A# chord).
                                I want the audio loop player to also follow the host tempo.
                                So basically the user will drop a wav into the audio loop player, the script will read the start/end time pos of the chord sections in the wav file from the csv of the same name. The bpm of the wav file will be in the filename.
                                Guitar, Strum, Ev8 4-4 120bpm.wav
                                Guitar, Strum, Ev8 4-4 120bpm.csv

                                #,Name,Start,End,Length,Color
                                R1,,1.1.00,3.1.00,2.0.00,FF80C0
                                R2,A,3.1.00,5.1.00,2.0.00,E41A27
                                R3,A#,5.1.00,7.1.00,2.0.00,E41A27
                                R4,B,7.1.00,9.1.00,2.0.00,E41A27
                                R5,C,9.1.00,11.1.00,2.0.00,E41A27
                                R6,C#,11.1.00,13.1.00,2.0.00,E41A27
                                R7,D,13.1.00,15.1.00,2.0.00,E41A27
                                R8,D#,15.1.00,17.1.00,2.0.00,E41A27
                                R9,E,17.1.00,19.1.00,2.0.00,E41A27
                                

                                alt text

                                LindonL 1 Reply Last reply Reply Quote 0
                                • LindonL
                                  Lindon @MusoCity
                                  last edited by

                                  @MusoCity said in Maybe Too Hard A Question ?:

                                  I want the audio loop player to also follow the host tempo.

                                  • You mean time stretching? Not available in HISE (at the moment)

                                  @MusoCity said in Maybe Too Hard A Question ?:

                                  If I want the audio loop player to loop a particular section of a wav file when I input midi notes 57+61+64 (A chord) and loop another section when I input 58+62+65 (A# chord).

                                  I have no idea about the loop player(never used it) - but you can set the sample start, loop start, loop end and sample end points in the Sampler..

                                  • so get the BPM of the DAW,
                                  • work out (in samples the length you want i.e. 1 Bar)
                                  • decide your start point in samples
                                  • set the start end end points of the sample and the loop...

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  1 Reply Last reply Reply Quote 0
                                  • MikeBM
                                    MikeB
                                    last edited by

                                    I also think that the AudioLoopPlayer is the wrong choice for this.
                                    Why no sampler?

                                    "One hour of trial and error can save 10 minutes of reading the manual."
                                    "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                    HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                                      @MikeB

                                      Why no sampler?

                                      User can't add their own samples.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        MusoCity
                                        last edited by

                                        Sampler ? can you set the chord input, can you give an example.

                                        This is the tempo sync I mean in Audio Loop Player
                                        4 SyncMode Syncs the looper to the host tempo

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

                                          @MusoCity The user can't load their own samples into the sampler so I don't think it will be suitable for you.

                                          MikeBM 1 Reply Last reply Reply Quote 0
                                          • M
                                            MusoCity
                                            last edited by

                                            @MusoCity said in Maybe Too Hard A Question ?:

                                            do you think I'm flogging a dead horse here ?

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            56

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.9k

                                            Posts