Loopy Pro: Create music, your way.

What is Loopy Pro?Loopy Pro is a powerful, flexible, and intuitive live looper, sampler, clip launcher and DAW for iPhone and iPad. At its core, it allows you to record and layer sounds in real-time to create complex musical arrangements. But it doesn’t stop there—Loopy Pro offers advanced tools to customize your workflow, build dynamic performance setups, and create a seamless connection between instruments, effects, and external gear.

Use it for live looping, sequencing, arranging, mixing, and much more. Whether you're a live performer, a producer, or just experimenting with sound, Loopy Pro helps you take control of your creative process.

Download on the App Store

Loopy Pro is your all-in-one musical toolkit. Try it for free today.

Unordered sets of a cartesian product?

edited April 2023 in Other
The user and all related content has been deleted.
«1

Comments

  • edited April 2023
    The user and all related content has been deleted.
  • wimwim
    edited April 2023

    Humm ... I'm a bit rusty, but I think this should do it.

  • The user and all related content has been deleted.
  • edited April 2023
    The user and all related content has been deleted.
  • edited April 2023

    @tja said:
    The ordered tuples of the cartesian product of two sets contains both (a,1) and (1,a).

    When it is delivered you should do an unboxing video.

    I was thinking of getting one but I wasn't sure I'd be happy with (1,a). A video would help me decide if it is worth the money and if I should order one.

  • wimwim
    edited April 2023

    Are the tuples ethically raised? Industry regulation is much better these days, but there are still widespread abuses. I for one would rather go without than to potentially support such cruelty.

  • @wim said:
    Are the tuples ethically raised? Industry regulation is much better these days, but there are still widespread abuses. I for one would rather go without than to potentially support such cruelty.

    +a

  • The user and all related content has been deleted.
  • Can we ask musical questions on Stackoverflow? I’m glad you found your answer. I suspected testing for alphabetical ordering might be involved. Are there useful musical applications of this algorhythm and does Mozaic have the right Boolean tests to apply it in a script on two or more MIDI input streams.

    Just trying to follow the new rules here ;^)

  • The user and all related content has been deleted.
  • @tja said:
    Free for any non-controversial content.

    Snippet nuggets.

  • edited April 2023

    @tja said:
    The cartesian product is simply this:

      while read -r a; do while read -r b; do echo "$a, $b"; done < ${set2} ; done < ${set1}
    

    But what to do, when the diagonal line with (a, a), (b, b) and (c, c) and also all equal sets like (a, b) and (b, a) need to be skipped?

    And this for very large sets ;-)

    i would suggest to consult such problems with GPT - directly chat or Copilot plugin if your IDE supports it ;

    just out of curiosity, does this what you want ?

    while read -r a; do
    while read -r b; do
    if [[ "$a" != "$b" ]]; then
    echo "$a, $b"
    fi
    done < <(grep -v "^$a$" ${set1})
    done < ${set1}

  • edited April 2023
    The user and all related content has been deleted.
  • edited April 2023
    The user and all related content has been deleted.
  • The user and all related content has been deleted.
  • edited April 2023

    honestly i just copy pasted your first 2 postes where you was asking into GPT and the code it returned posted here :)))

    now try paste your faster function into GPT and ask him to write more efficient faster version of it ;) you'll be probably very surprised

    edit: i tried it and it returned this, does it same like your code ?

    tuples() {
    local files=( "$@" )
    local i=0
    local j=0

    for ((i=1; i<${#files[@]}; i++)); do
    for ((j=0; j<i; j++)); do
    paste -d',' "${files[$j]}" "${files[$i]}"
    done
    done
    }

  • The user and all related content has been deleted.
  • edited April 2023

    i can't test it now ... but i am using GITHUB Copilot (which uses GTP api) in my IDE in my daily work and it is INCREDIBLE help especially for this kind of small one-purpose functions .. try it , they have one month free trial version ..

    Also chat gpt is for free.. just register and then go here : https://chat.openai.com/ and ask him.. with good precise definition what you want, and specification which language he should use, it often gives suprisingly good results

    even better if you give im function you made and ask him for optimising it to work faster for example.. it works like magic

  • The user and all related content has been deleted.
  • The user and all related content has been deleted.
  • @tja said:

    @dendy said:

    edit: i tried it and it returned this, does it same like your code ?

    tuples() {
    local files=( "$@" )
    local i=0
    local j=0

    for ((i=1; i<${#files[@]}; i++)); do
    for ((j=0; j<i; j++)); do
    paste -d',' "${files[$j]}" "${files[$i]}"
    done
    done
    }

    No 😅

    And it seems quite inefficient... with this use of "paste" and trying to run in memory instead of from files.

    So, tell chatGPT and see what it comes up with.

  • wimwim
    edited April 2023

    It's much like asking a question on this forum. You can get some incorrect or inefficient answers, but usually can converge on something you hadn't thought of.

  • The user and all related content has been deleted.
  • @tja said:

    @wim said:
    It's much like asking a question on this forum. You can get some incorrect or inefficient answers, but usually can converge on something you hadn't thought of.

    Yes. Probably.

    But I prefer people over spending my time with a bot 😅🤗

    Weird.

  • edited April 2023

    ok, sometimes what you get from GPT is not that useable :-))) it alswass depends on how you ask .. i probably asked this wrong way

    it’s great for example for making regule expressions, this is something i really hate doing, i always get my brain overloaded :-)) But in 95% gpt after correct precise description what i want to achieve gives correct regular expression

    with this use of "paste" and trying to run in memory instead of from files.

    if loading into memory is made efficiently (like with one command), then looping through long dataset in memory vs. looping from disk is always much much faster

  • The user and all related content has been deleted.
  • edited April 2023
    The user and all related content has been deleted.
  • The user and all related content has been deleted.
  • The user and all related content has been deleted.
  • The user and all related content has been deleted.
Sign In or Register to comment.