Raspberry Pi Pico PIO - Ep. 18 - MIDI using MicroPython and Velocity for Pico

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 25

  • @flywittzbeats4008
    @flywittzbeats4008 Рік тому +2

    you're just so casual about being this brilliant hahaha. Thank you so so much for these video. I am a complete beginner and would love to hear more about your background in engineering sometime! Thanks again, David!

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      Thanks for watching! I have a few videos that talks a little about how I got interested in this:
      ua-cam.com/video/rxBV3YILaaM/v-deo.html
      ua-cam.com/video/BcqRvHkn-EA/v-deo.html
      ua-cam.com/video/0S9A_c3TkRo/v-deo.html
      ua-cam.com/video/chrURgrkd44/v-deo.html

  • @Guustaaf
    @Guustaaf Рік тому +1

    Good stuff David! Merry Christmas.

  • @KeithDennison
    @KeithDennison Рік тому +3

    I have really enjoyed watching the PIO series. Thank you for putting the time and effort into making these videos. Have a Merry Christmas.

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      Glad you like them! Merry Christmas and thanks for watching!

  • @vojtechmarsal8576
    @vojtechmarsal8576 Рік тому

    Thank you so much David you saved me quite bit of time i would have to spend reading all the docs. It is rather rare to stumble upon someone this knowledgeable and capable of producing content at this quality.

  • @wktodd
    @wktodd Рік тому +1

    Excellent presentation David. You are the 'goto' source for pico PIO
    Merry Christmas.

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      I really enjoy making these videos. Thanks for watching!

  • @grigoro2120
    @grigoro2120 Рік тому

    eisai poli meraklis re david

  • @jyvben1520
    @jyvben1520 Рік тому

    pio still way over my head, but the combo with micropython shows the power of the pico, great work.
    if the midi is sent over usb to a pc playing the notes then using several picos could work.
    a mini orchestra could all use the same usb , drum / piano / triangle ...

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      Thanks for watching. In fact, one Pico could act as a mini orchestra. It does by acting as a MIDI sequencer sending MIDI information to various channels on a timed basis. In fact, the closing Christmas music comes from a MIDI file played on the Tyros. In that case, the Tyros acted as the MIDI sequencer; but I would like to get the Pico to do the same thing in the future.

  • @Ololoshize
    @Ololoshize Рік тому +1

    You're genious, very clever ideas.
    13:15 i'm not understand at this moment using "wrap". What happened if you remove "wrap" command from end of sketch? And where is "wrap_target"? Thank you.

    • @LifewithDavid1
      @LifewithDavid1  Рік тому +1

      I wouldn't have needed "wrap" in this case. PIO programs will automatically wrap at the end of the program by default. Wrap target is at the start of the program by default.

  • @romiolover6852
    @romiolover6852 Рік тому

    nice

  • @Marc_Wolfe
    @Marc_Wolfe Рік тому

    Well, here's more engine management related logic. Reason I watched this one, I knew what it'd take in code to implement MIDI velocity. I was wondering about tieing together PIOs like that. I need to look more into waits, breaks, and jumps. Also curious about more info related to PIO input and output shift registers; can't mistime a read or I'd end up with a multiple of the value I'm going for, really bad.

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      My next video is all about interrupts. (It will actually be two videos.) It took a while to research; but hopefully it will be helpful. I'm hoping it's out in the next week or so.

  • @bitogre
    @bitogre Рік тому

    You did not have to set and wait on IRQ in the PIO program. You could have instead had your interrupt be based on FIFO not empty and the interrupt automatically triggered when velocity is added to the FIFO. No need to have a PIO instruction to set the IRQ. Just means you need to make sure that you read from the FIFO until empty before returning from the interrupt.

    • @LifewithDavid1
      @LifewithDavid1  Рік тому +1

      That should work also (I think). I'm digging into PIO interrupts more and the MicroPython SDK is not as robust in handling them as the C.C++ SDK. I did have an ulterior motive for using a separate interrupt for future expansion. Thanks for the comment; I'll add that to my toolkit. Remember what Maslow said: "When all you have is a hammer, everything looks like a nail".

  • @Guustaaf
    @Guustaaf Рік тому

    How would you use a PIO (and a chip) to read an x number of rotary encoders?

    • @LifewithDavid1
      @LifewithDavid1  Рік тому

      That's a good question. I'll have to look into that. Thanks for the idea; and thanks for watching!

    • @Guustaaf
      @Guustaaf Рік тому

      I am honored to have set the brilliant gears in motion :)