HISE Logo Forum
    • Categories
    • Register
    • Login

    Maybe Too Hard A Question ?

    Scheduled Pinned Locked Moved General Questions
    54 Posts 6 Posters 3.2k 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

      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.

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

            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.

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

                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
                  • d.healeyD
                    d.healey @MusoCity
                    last edited by

                    @MusoCity I don't know enough about the audio loop player or your use case to give an informed opinion.

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

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

                      @UD-AUDIO said in Audio Loop Player Sync Mode Not Working?:

                      @MikeB It does "work" for me but I have issues with changing octaves.
                      I need to leave a gap between any note to get it work correctly.
                      Got no clue why this is happening but I guess it has time stretching reasons etc.

                      One says it doesn't work and one says it works ???

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

                        @MusoCity I think the tempo sync is just the playback speed of the loop, it won't do any time stretching though. Is that what you need?

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

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

                          @d-healey said in Maybe Too Hard A Question ?:

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

                          I know that - but he didn't mention that users can load samples themselves.
                          Or did I read something over?

                          "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

                            So basically the user will drop a wav into the audio loop player,

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

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

                              Then I have read something over

                              "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

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

                                Solved:
                                Maybe Too Hard A Question ? = Too Hard

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

                                  Here's a video of a script in Reaper that takes midi chord input then goes to that section of the wav, that was all I was looking to do.
                                  https://www.dropbox.com/s/cclb5zq413870e4/BB-Tracks-Live-Chord-Playing.mp4?dl=0

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

                                    @MusoCity then all you need is a script that detects the chords you care about - and a sample start modulator(a constant) that you then set to a percentage of your sample length...simple really...

                                    HISE Development for hire.
                                    www.channelrobot.com

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

                                      @Lindon But the user still can't add audio to the sampler - does start mod work with the audio loop player?

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

                                      LindonL 1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @d.healey
                                        last edited by

                                        @d-healey said in Maybe Too Hard A Question ?:

                                        @Lindon But the user still can't add audio to the sampler - does start mod work with the audio loop player?

                                        true, and no idea...

                                        HISE Development for hire.
                                        www.channelrobot.com

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

                                          BUT, what if the code is created that "detects the chords you care about - and a sample start modulator" for this
                                          Guitar, Strum, Ev8 4-4 120bpm
                                          Save as XML into that folder then the user just > Open XML > Guitar, Strum, Ev8 4-4 120bpm.xml ?
                                          You even have a Recent list for XML.
                                          Will this loop the section same as looper ?

                                          C=48,52,55
                                          C#=49,53,56
                                          .....
                                          B=59,63,66

                                          Cm=48,51,55
                                          C#m=49,52,56
                                          .....
                                          Bm=59,62,66

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

                                            @MusoCity HISE doesn't have a scriptable xml parser. The save as/open recent XML is for HISE's internal project file format.

                                            If you (not the end user) load some samples into a sampler and set it so the whole sample is loaded into RAM, then you can start playback from any position you like. If you script a chord detector then you can link the sample start position to the played chord.

                                            As far as I know HISE only manages a single looped section for each sample. You can change the looped section's start and end dynamically, but I don't know if this is suitable for real-time playback, you'd need to test it.

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

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

                                            23

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.2k

                                            Posts