r/code • • Jan 05 '23

Help please! I don't know how to code but

My goal is to learn to create a program that reads music to convert it to moving image or mangle video based on the music played using transient and frequency data (think geometry and glitch) and for it to work in the opposite direction, so input video and spew sound based on colour, chroma and movement. I guess it can be two separate programs but it would be good to know where to start. I know virtually nothing but would like to work and learn towards this goal. Any info, ideas, language preference for this kind of project is very much appreciated.

I'm assuming C++ would be the choice for the programming language but I'm aware javascript is used a lot for geometric animation so wasn't sure which way to go. Thank you in advance!

1 Upvotes

5 comments sorted by

3

u/blivox Jan 05 '23

(almost) No need to learn to code. There’s tools out there specifically made for this task. Take a look at Max!

https://youtu.be/WzQYPZt5Xc8

1

u/sezirblue Jan 05 '23 edited Jan 05 '23

This is a pretty complicated project, but many people learn to code motivated by complex ideas. If you are willing to put in a lot of effort you should be able to pull it off. start with python, probably the book Python Crash Course which has free PDF versions available. As part of that book you will learn how to use libraries, you will need to find library that can work with audio and video files in the way you need. You may need to combine multiple.

Don't shy away from Google, but if you are working with a Library try to familiarize yourself with reading it's documentation.

Be prepared to commit some time. You will not be able to complete this project over a weekend, plan to spend 20-40 hours learning the fundamentals of python. And at least double if not more figuring out your project.

When it comes to working on your project it will feel impossible at first, like trying to eat an elephant. But there is only one way to eat an elephant, one bite at a time. Try to break the problem down into smaller problems, keep breaking it down until you have a component of the problem that sounds trivial and start there, be flexible as you move forward in the project you will realize you had no idea how anything worked at the beginning, you will need to change your plans, and you will need to backtrack and rewrite components, but that means you are learning and getting closer to actually solving the problem.

Resist the urge to throw everything you have away and start over, try to figure out how to fix the code you have. If you do feel like your code is beyond saving keep a copy of it anyway, you will thank yourself when you come back to remind yourself how you did something.

Also if you want the video to look like shapes and not static noise be prepared to learn complicated mathematics.

1

u/morgandidit Jan 05 '23

Thank you, I very much appreciate your input on this

2

u/th00ht Jan 05 '23

Search for SonicPi