Convert Any Music Into Musical Marble Animation | Blender Tutorial | Step By Step Guide
ะััะฐะฒะบะฐ
- ะะฟัะฑะปัะบะพะฒะฐะฝะพ 3 ะปะธะฟ 2024
- In this Blender tutorial, we have discussed how to create a musical marble animation from any music. You can start with any music of your choice. Then we have a script to convert it into timeline markers. Based on these markers we can position our notes such that the animation is perfectly in sync with the music. This is the second part of our tutorial in this series. Please watch the video for the complete tutorial. If you have any question on this tutorial, please leave your comment below.
๐๐๐ซ๐ญ-๐ ๐๐ข๐ง๐ค ๐๐จ๐ซ ๐๐ฎ๐ฌ๐ข๐๐๐ฅ ๐๐๐ซ๐๐ฅ๐๐ฌ ๐๐ง๐ข๐ฆ๐๐ญ๐ข๐จ๐ง ๐ โข Musical Marble Animati...
๐๐จ๐ฐ๐ง๐ฅ๐จ๐๐ ๐๐๐ซ๐ข๐ฉ๐ญ-๐ (๐๐ง๐ฌ๐ญ๐๐ฅ๐ฅ ๐๐ข๐๐ซ๐จ๐ฌ๐) ๐ (You need to run Blender with administrative privilege as shown in the tutorial) drive.google.com/file/d/1_Uaa...
๐๐จ๐ฐ๐ง๐ฅ๐จ๐๐ ๐๐๐ซ๐ข๐ฉ๐ญ-๐ (๐๐ฎ๐ฌ๐ข๐ ๐ญ๐จ ๐๐๐ซ๐ค๐๐ซ๐ฌ) ๐ (You need to run Blender with administrative privilege as shown in the tutorial) drive.google.com/file/d/1o5Qy...
๐๐จ๐ฐ๐ง๐ฅ๐จ๐๐ ๐ญ๐ก๐ ๐๐ฅ๐๐ง๐ ๐๐ข๐ฅ๐ ๐๐จ๐ซ ๐ญ๐ก๐ข๐ฌ ๐ญ๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ (๐๐ง๐ฅ๐ฒ ๐๐จ๐ซ ๐จ๐ฎ๐ซ ๐ฆ๐๐ฆ๐๐๐ซ๐ฌ) ๐ drive.google.com/file/d/1EVFG...
๐๐จ๐ข๐ง ๐จ๐ฎ๐ซ ๐๐ก๐๐ง๐ง๐๐ฅ ๐๐จ๐ซ ๐ญ๐ก๐ ๐๐ฅ๐๐ง๐ ๐๐ข๐ฅ๐ & ๐๐๐๐ข๐ญ๐ข๐จ๐ง๐๐ฅ ๐ฉ๐๐ซ๐ค๐ฌ ๐ / 5minutesblender
๐ ๐จ๐ฅ๐ฅ๐จ๐ฐ ๐ฎ๐ฌ ๐จ๐ง ๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ ๐ / 5minutesblender
๐๐ก๐๐ง๐ค๐ฌ ๐๐จ๐ซ ๐ฒ๐จ๐ฎ๐ซ ๐๐จ๐ง๐๐ญ๐ข๐จ๐ง๐ฌ ๐ donorbox.org/5-minutes-blender
==================================================
We have many more tutorials that can help you learn Blender like a professional. You can go through the following playlists for the relevant topics:
๐ ๐๐ฅ๐๐ง๐๐๐ซ ๐ ๐จ๐ฎ๐ง๐๐๐ญ๐ข๐จ๐ง ๐๐จ๐ฎ๐ซ๐ฌ๐ ๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ:
If you are absolutely new to Blender, take this foundation course.
โข Blender Foundation Course
๐ ๐๐ฅ๐ฅ ๐๐ ๐๐ฅ๐๐ฌ๐ฌ๐๐ฌ ๐๐จ๐ ๐๐ญ๐ก๐๐ซ ๐๐ง ๐๐ง๐ ๐๐จ๐ฎ๐ซ:
โข Blender Foundation Cou...
๐ ๐๐ฅ๐๐ง๐๐๐ซ ๐๐ข๐ฉ๐ฌ ๐๐ง๐ ๐๐ซ๐ข๐๐ค๐ฌ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Blender Tips & Tricks
๐ ๐๐๐ฌ๐ฒ ๐๐จ๐๐๐ฅ๐ฌ ๐ ๐จ๐ซ ๐๐๐ ๐ข๐ง๐ง๐๐ซ๐ฌ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Easy Models For Beginners
๐ ๐๐๐ญ๐๐ซ๐ข๐๐ฅ๐ฌ ๐๐จ๐ฎ ๐๐๐๐ ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Materials You Need In ...
๐ ๐๐ฅ๐ฅ ๐๐๐ฑ๐ญ ๐๐๐๐๐๐ญ๐ฌ ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Text Effects In Blender
๐ ๐๐๐ฆ๐๐ซ๐ ๐๐จ๐ฏ๐๐ฆ๐๐ง๐ญ & ๐๐๐ญ๐ญ๐ข๐ง๐ ๐ฌ ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ:
โข Camera Movement & Sett...
๐ ๐๐ฌ๐๐๐ฎ๐ฅ ๐๐ข๐ ๐ก๐ญ๐ข๐ง๐ ๐๐๐ญ๐ฎ๐ฉ ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Useful Lighting Setup ...
๐ ๐๐ข๐ ๐ข๐ ๐๐จ๐๐ฒ ๐๐ก๐ฒ๐ฌ๐ข๐๐ฌ & ๐๐ข๐ ๐ข๐ ๐๐จ๐๐ฒ ๐๐จ๐ง๐ฌ๐ญ๐ซ๐๐ข๐ง๐ญ๐ฌ:
โข Rigid Body Physics in ...
๐ ๐ ๐ข๐ซ๐ & ๐๐ฆ๐จ๐ค๐ ๐๐ข๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐จ๐ง ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Fire & Smoke Simulatio...
๐ ๐ ๐ฅ๐ฎ๐ข๐ ๐๐ข๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐จ๐ง ๐๐ง ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Fluid Simulation in Bl...
๐ ๐๐๐ฌ๐ญ๐๐ซ๐ข๐ง๐ ๐๐ฅ๐๐ง๐๐๐ซ (๐๐ฎ๐ญ๐จ๐ซ๐ข๐๐ฅ๐ฌ):
โข Mastering Blender
If you want to watch our own creations in Blender, you can also check out the following channel where we regularly upload videos on Animation, Space Exploration and AI.
๐๐ฎ๐ซ ๐จ๐ญ๐ก๐๐ซ ๐๐ก๐๐ง๐ง๐๐ฅ ๐ฅ๐ข๐ง๐ค: / @thealienworld
#Blender #Animation #Musically #RigidBody
Timestamp
00:00 Prepare your system with Librosa package
01:28 Create timeline markers from your music
02:47 Add a speaker and import your music
03:32 How to rectify the location of the notes
05:38 Prob-1: When too many marker are added
06:04 Prob-2: If you cannot install or run Librosa
06:36 Prob-3: Speaker starts at a wrong frame
07:04 Prob-4: How to set up the note materials
08:06 Verify the final result
๐๐๐ซ๐ญ-๐ ๐๐ข๐ง๐ค ๐๐จ๐ซ ๐๐ฎ๐ฌ๐ข๐๐๐ฅ ๐๐๐ซ๐๐ฅ๐๐ฌ ๐๐ง๐ข๐ฆ๐๐ญ๐ข๐จ๐ง ๐ ua-cam.com/video/6cEBZpmSnds/v-deo.html And remember to set your FPS (Frame Per Second) parameter in the Output properties in the beginning itself. The rigid body physics, the flow of music and also our marker script - everything is driven by this FPS which you set initially. If you use a wrong FPS and later you change it, things can easily get out of sync. Decide your FPS and stick to it all throughout (or start afresh).
Thank you bro ๐
Glad you liked it ๐๐๐
Thanks bro
Thank you too ๐๐๐
Thanks a lot for this. Very simple to follow along also very concise. The only tutorial series that provides all the steps.
Glad it was helpful! ๐ Would love to see if you create something based on this tutorial ๐๐
@@5MinutesBlenderAlready working on one. The problem I'm facing is that the ball isn't spinning. But everything else works fine.
@@nickyreigns254Great! You can add spinning to the ball by increasing the friction values as shown in the 1st part of this tutorial. But it may have some consequences like the ball may divert from the center line of the notes. You need to put a lot of effort to keep it on track. What I did for our demo is, I added the spinning using a driver (the driver calculates the distance covered and the direction of movement and accordingly assigns a rotation to the ball). It is a quick solution and near-perfect. If you are interested, we did a similar thing for the rotation of a shopping cart's wheels in this tutorial ๐ ua-cam.com/video/4cm0cpo_708/v-deo.html
@@5MinutesBlender Thanks, I'll check it out. You are amazing ๐
@@5MinutesBlender Do you know how I can make the ball collide with suspended poles like I have seen in many other animations?
Thank you bro ๐Looking forward to Part3
Thanks ๐ What do you want us to cover next?
@@5MinutesBlender As long as you share it, I like to watch it๐ป
@@5MinutesBlender The music in the music marble animation video I saw seemed to be more like the sound of objects colliding, how did they come about
@@ryd2455The original marble music is made by a physical machine with real sounds of some marbles hitting metal plates. The animation videos have melodies behind them, some even used collision sounds. We published a tutorial on how to create such a music with python script ๐ ua-cam.com/video/bRlKsEv-et8/v-deo.html It creates a single track. You can extend this script and create a bunch of tracks to generate more realistic collision sounds.
@@5MinutesBlender Thank you, it was me who ignored this video. But I seem to have a new problem, after running two scripts successfully generated the notes and aligned the F_0 with the keyframes, the sound is not in sync, I try to press to move the notes forward but the sound still sounds at the beginning of the music, it doesn't seem to work, I chose Snyc to Audio, I don't know where the problem is
Very very thanks this is so useful please upload a tutorial of sculpting
Glad you liked this tutorial ๐๐๐ There are already so many tutorials on sculpting, so we wanted to focus on areas where we do not have good tutorials yet.
Itโs helpful but still working on how to work the script in the Mac as administrator
Hmm. I don't have a mac so I can't test it. Did Google yield any result about how to do it in mac?
please i want to do a small pip for the animation but the rigide body dont fonctionne with me end if you can put the 3rd parts for camra end another type of synchronization music
What are the specific issues you faced? We can help you to solve the issues, please let us know the specifics, you can send your blend file to us at 5minblender@gmail.com
Sir i want your helpโฆi have made a animation in blender by using rigid body..simply i just want it to export is as fbx along with animation and then when i tried using that fbx to another 3d software..animation get removed..only fbx is coming without any animation please help me out sir
Select all the objects in your scene that have rigid body physics. Now go to Object menu > Rigid Body > Bake to keyframes. Now export the scene in fbx, it should work ๐
Please give me some guide to animate the camera to render as you have shown in the tutorial. I've taken an empty and parented to camera (selected camera, then empty). Used add object constraints - copy location (sphere). It works fine in the viewport, but when I render video sphere remains in the camera as static and nodes com up one after another and hit the sphere.
The camera in your case is set up correctly. But the problem is, it appears wrong as we see through the camera. Don't use that copy location constraint. It creates a wrong appearance as if the camera is fixed along with the ball, and the notes are moving up. Instead, move your camera and the empty manually. In the camera view mode, set the appropriate viewing angle for frame# 1. Then keyframe the location and the rotation for the camera. Do it for frame# 100, 200 etc. until the last frame, with an interval of 100 or 50 whatever works best for you. Do it for the camera as well as for the empty side by side. Our add-on can help you do this easily ๐ ua-cam.com/video/UGYbQLFCh7c/v-deo.html but you can set up the camera yourself as well if you're not in a position to buy something. All the best ๐
Thanks for the kind reply- it helps me a lot. Let me seize the opportunity to tell that yours tutorials are just amazing and unique. Best wishes @@5MinutesBlender
@@manaspaul869Thank you so much ๐๐
HI, thanks for ur video but i have a problem. When i want to add another note, ball's previous movement path different. So im locked to a step and dont know how to correct it to continue.
I understand the issues. Blender's physics is not 100% perfect. It uses an approximation at every step. So adding some new notes in the scene can sometimes dis-balance an existing physics - even at a previous step which seems completely unrelated. To overcome this issue, before you add the new objects, you can convert the existing physics movements into keyframes (bake to keyframes - we discussed this toward the end in the first part of our tutorial on marble music). And do take a backup at each step, just in case you need to go one step back to correct something. Now add the new note and keep converting them into keyframes at a regular interval. Even Blender's official guide recommends this since the physics is not 100% dependable always.
thanks so much๏ผ but i just a little english ๏ผ
I'm glad that it helped ๐๐๐
My Blender got freeze while running music marker script. Any suggestions why so? And what I can do to avoid such lag
You need to run Blender as administrator (Run As Administrator option) as shown in the tutorial. Otherwise it won't work. Please let me know if this does not solve your problem.
That is really nice.
Thank you so much! ๐โค๏ธโค๏ธ
thank you bro but my music is not syncing
pls you have any idea
If you follow each step accurately, it should work. Do it as per our tutorial and point out at which step particularly it differs or it goes wrong. Then we can identify the cause and resolve it too.
Hello, thank you for this detailed video. However, I am quite perplexed at one point (0:45 ). How do you get the scale โF_0, F_1, F_2,.....F_10 in the timeline?
Thank you very much for your help.
Is it this one? -> Make Markers Local
hey bro, my next problem. I can't hear the music. It's a WAV file. Can you please help me?
Sorry for the later reply. Those F_0, F_1, F_2 markers are created when you run the script we provided here. Wav files are perfectly fine. Increase the speaker volume and ensure that it is closer to the world origin. If you are still unable to hear the music, please send us the blend file and the wav file (5minblender@gmail.com) so that we can test it and suggest you accordingly.
Can you make tutorials on how to make videos like hoog or lemmino or imperial UA-cam channels
These are long videos with many components, difficult to explain in a short comment. But most of their videos consist of still images, 2d animations etc with some occasional 3d models. It is a different world, not the same as what we discuss here. And there are countless such channels on YT, only a lucky few get very famous.
Sir Why is the Ball's previous movement path different when there are too many spring boards added?
Blender's physics is not 100% perfect. It uses an approximation at every step. So adding some new objects in the scene can sometimes dis-balance an existing physics although you might not have added anything there. To overcome this issue, before you add the new objects, always convert the physics movement into keyframe (bake to keyframes - watch the first part where we discussed this). And do take a backup at each step, just in case you need to go one step back to correct something.
Hi, did you found the solution ?
Hello how to convert for example rap music into sound for animation I can't do it, thank you.
A rap music is actually easier to covert as it contains distinct beats. This method works better for songs with beats. If you can tell me exactly where you got stuck I can help you to resolve it.
@@5MinutesBlender my problem is that I cannot convert music into a musical score :/
@@LucasRisbourg Sorry for the late reply, I was stuck with some personal work for a week. Please let me know the exact step where you are stuck or where you are getting a different result compared to our tutorial. If you can tell me a specific issue I can surely help you get it resolved.
@@5MinutesBlender Hi no worries, thank you for your response.
My problem is that I would like to convert rap music for example and obtain one musical note at a time and not a whole (I don't know how to explain sorry).
Bir ลarkฤฑnฤฑn mรผzik melodisini nasฤฑl bu ลekil yapabilirim?
You can pick up any song of your choice and follow this tutorial to create the animation matching with that song.
Hi, your videos are really helping, but I am stuck. When I paste the second script, the console command says 'access denied' (or crashes), even though I have administrator privileges and I put the correct path to the audio file (I went to properties/location). Itโs still not working. Could you help my uneducated mind solve this riddle?
Hi, in my test I have seen that the script fails or hangs if we try to run it normally. We need to start Blender as administrator. You may already have admin privileges, but it is not sufficient. You need to start Blender as administrator, it then allows you a higher access which it does not do if you start Blender normally.
@@5MinutesBlenderIt worked! I went back and did it manually, and it went fine. So, thank you very much. I'll watch the rest!
@@lucasjaulin3313 Great! ๐๐
Great project and I am learning a lot. Unfortunately, I am getting an error when running the second script. Here is the error: Error: Python: Traceback (most recent call last):
File "C:\Users\David\BLENDER\Projects\bouncing notes.blend\Text.002", line 22, in
KeyError: 'bpy_prop_collection[key]: key "Cube" not found'
Do you have any idea of what is going wrong? My music file is in the path I gave it and is a WAV file. Anything you can do to help me continue this project will be greatly appreciated.
Hi, that particular line in the code is redundant. I have updated the code and uploaded the modified script, please get the new link from the video description and try with the new script. It should work without this error. Please let me know if it fails for any reason. Thanks!
@@5MinutesBlender Still facing the same issue...please help...
@@pbgaming2004 Can you please send your blend file as-it-is to 5minblender@gmail.com so that we can verify it at our end and then suggest a fix?
@@5MinutesBlender ok...will be sending shortly
@@5MinutesBlender sent please check
Bagaimana mengubah music menjadi suara instrumen ?
Music into instrument sound? I did not get you bro ๐ค๐ค
But what about copyright in music?
You can use one from UA-cam's music library, it has a great stock of music free for use in shorts. Unless you have monetization target, you can use commercial music as well - most of them will allow you to use their music but they will claim the revenue, if any. If you take the later route, upload your video as unlisted and wait for a day (so that any claim can happen before you publish it).
Music to markers script is written for only the music shown in this video or it will work for any music?
It should work for any music. However, the density of the markers will depend on the rythm of your music, you may need to ignore a few markers if needed.
@@5MinutesBlender Thanks bro๐
Your pc specs pls
For this tutorial we have used a core i5 windows machine with 8 gb RAM, 2.3 GHz clock speed and AMD graphics card.
has anyone tried this on mac?
It should work on mac as well since Blender runs perfectly on mac. The script needs you to run Blender with administrative privilege, that could be the only thing you need to figure out. Did you encounter any issues while trying this on mac?
ๆฏๆฌง็น็ฆ
please Here is the error
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\BlenderFoundation.Blender_4.1.0.0_x64__ppwjx1n5r4v9t\\Blender\\4.1\\python\\Lib\\site-packages\\typing_extensions.py'
Consider using the `--user` option or check the permissions.
[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: C:\Program Files\WindowsApps\BlenderFoundation.Blender_4.1.0.0_x64__ppwjx1n5r4v9t\Blender\4.1\python\bin\python.exe -m pip install --upgrade pip
Error: Python: Traceback (most recent call last):
File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_4.1.0.0_x64__ppwjx1n5r4v9t\Blender\4.1\python\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Program Files\\WindowsApps\\BlenderFoundation.Blender_4.1.0.0_x64__ppwjx1n5r4v9t\\Blender\\4.1\\python\\bin\\python.exe', '-m', 'pip', 'install', 'librosa']' returned non-zero exit status 1.
Did you start Blender with administrative privileges? Right-click on Blender exe and choose Run as administrator. Please let me know if that solves the issues.
@@5MinutesBlender thanks pro ,
I done ,that solves the issues
Glad to know that it was resolved. Cheers!!
It doesn't work for me either when I try script-2! I get the same error AND others in some lines! I always run as admin
Traceback (most recent call last):
File "E:\Programas\OBJETOS 3D BLENDER\QUARTOS\QUARTO 1\.BLEND\EDITANDO ULTIMO.blend\Text", line 14, in
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\librosa\core\audio.py", line 183, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\librosa\util\decorators.py", line 59, in __wrapper
return func(*args, **kwargs)
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\librosa\core\audio.py", line 239, in __audioread_load
reader = audioread.audio_open(path)
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\audioread\__init__.py", line 127, in audio_open
return BackendClass(path)
File "E:\Programas\Blender 2.92\2.92\python\lib\site-packages\audioread
awread.py", line 59, in __init__
self._fh = open(filename, 'rb')
PermissionError: [Errno 13] Permission denied: 'E:\\MUSIC MARBLE\\musica 1'
Error: Python script failed, check the message in the system console
Hi, the error is "Permission denied" which seems to be related to your user account. You are trying to access (read/write) on your E: drive. Please restart Blender with administrative privileges (right-click on Blender exe and choose Run as administrator). I hope this resolves the issue. The script is fine as such but you are facing an issue with accessing your drive ๐