Autotune using Python & How Pitch Correction Works

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 25

  • @djcannut6193
    @djcannut6193 2 ปีที่แล้ว +3

    Being a coder, Dj and a music producer. This video made my day. Thankyou so much

  • @lukalicina8230
    @lukalicina8230 2 ปีที่แล้ว +1

    Your channel is a gem! Idk how you dont have more subs. Great content as always!

  • @Sacred-Lotus
    @Sacred-Lotus หลายเดือนก่อน +1

    It is rare to see playing with sound wave + python coding 😁. Any follow up experiments on sound tuning?Good work.

    • @PyExplained
      @PyExplained  19 วันที่ผ่านมา

      So far, I haven't had the time to revisit my Python projects. I've had some more ideas (like combining the concept of a ray tracer with sound to create an immersive echo simulator), but I'm currently prioritizing my studies over new projects :).

  • @william8495
    @william8495 2 ปีที่แล้ว +1

    Excuseme I download your code and run on spyder, but I cant show like your GUI, maybe I need to install something?

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว

      Yes, you do indeed need to install some libraries in order to run the code. Here is the link to the documentation (including a list of the libraries you need to install): github.com/PyExplained/Autotune-using-Python#Required_modules.
      If you're still having trouble running the code after this, please let me know.

    • @william8495
      @william8495 2 ปีที่แล้ว

      @@PyExplained I have already install all required modules in your GitHub, but it still can’t run the GUI.Does using the different compiler meter?(Sorry about some wrong grammar and thanks for help!)

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว

      @@william8495 Could you copy the error message you're getting? Then I could take a look at it.

    • @william8495
      @william8495 2 ปีที่แล้ว

      @@PyExplained I don't have error message, but my output just have a Image like your GUI, and I can't use any function.

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว

      @@william8495 Mmmhh... That's weird. I'm not entirely sure what could cause that, but I suggest trying to run it with a different IDE (maybe IDLE?).
      You should also check whether all the example audiofiles are present (maybe you deleted them?).

  • @genesis697
    @genesis697 2 ปีที่แล้ว +1

    nice vid bro where do you study?

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว +1

      Thanks! I'm still in highschool, so I can't refer you to any university (if you're asking about that). I live in Belgium, so the name of my school isn't really important, neither would it be a smart decision to share in my comment-section ;).
      I hope that answers your question, but don't hesitate to specify your question if I didn't yet answer it as intended.

  • @lelabodezaocreationdinstru3569
    @lelabodezaocreationdinstru3569 ปีที่แล้ว +1

    Do you think, this could be implemented on micropython ?

    • @PyExplained
      @PyExplained  ปีที่แล้ว

      To be totally honest, before reading your comment, I had no idea what micropython even was. Therefore, I don't think the code could just be run the way it is. Maybe with some adjustments, but again... don't know a lot about running programs on microcontrollers.
      Thanks for your comment tho :)

  • @bemyheartfill
    @bemyheartfill 2 ปีที่แล้ว +1

    Damn amazing

  • @wws2179
    @wws2179 2 ปีที่แล้ว +1

    Great video!

  • @muzammildharwadkar8101
    @muzammildharwadkar8101 2 ปีที่แล้ว +1

    I loved it bro really you are doing great job and thanks for the code
    I have subscribed and i will tell all to my friends to subscribe and to like
    Bro plz do what others are not doing thanks

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว +1

      Thanks a lot! I really appreciate that :)

  • @mazekaty-3700
    @mazekaty-3700 2 ปีที่แล้ว

    i can use this with web app ?

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว

      I'm not entirely sure what you mean by your question. If you're asking whether or not you can use the application as a web application, the answer would be no. You can currently only use it by downloading the code (including all the required modules) and running it.
      I might have misunderstood your question though, so if something still isn't clear, you may have to specify your question.

  • @Looki2000
    @Looki2000 2 ปีที่แล้ว +1

    in true autotuning, increasing the pitch does not produce a chipmunk effect

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว

      I guess you're right, but I tried my best to make it sound as good as possible. It's also the first time that I tried to do something with sound, so I was glad that it worked as is. But, as you say, there is still room for improvement, so definitely let me know if you have ideas on how to improve the autotuning ;).

    • @Looki2000
      @Looki2000 2 ปีที่แล้ว +1

      @@PyExplained I recently discovered that if you autotune a sound in a true autotune to a high pitch and a low pitch and then display a logarithmic spectrum of these sounds, the component frequencies of the first low-pitched sound have the same spacing between them as the component frequencies of high-pitched sound. I think that solution for that is shifting frequencies from fourier transform not lineary but exponentialy. TH-cam does not allow me to insert a link so I had to replace dot with A and / with B. imgurAcomBaBJAQdpkW

    • @PyExplained
      @PyExplained  2 ปีที่แล้ว +1

      That's really interesting! Thanks a lot for the explanation. As I said in the video, I didn't do a lot of research as a means to challenge myself (or maybe because I was a tad bit lazy ;)). I was curious to see if it would just work by shifting the spectrogram up or down by a certain amount, but this obviously throws off the ratios between frequencies, making it sound out of tune. That's why I ended up stretching the spectrogram instead.
      As you're saying, the solution might just be stretching it exponentially, but I think it might also have to do with the fact that I 'chop up' the audio signal. In earlier testing phases, I did use overlapping samples, but I found that working with chopped-up audio was a lot easier. In the end, the chipmunk effect isn't all that bad when increasing the pitch. It's mostly reverting the audio signal that causes it to sound a little funny. So even in unchanged audio samples, you can hear the distortions. It's also very noticeable when layering multiple voices (like in the reharmonization I did for the intro). However, I do think that doing the thing you described would help with making the 'corrected sample' sound more realistic (since the frequency components of our voice don't always have the same ratio to each other).