Python Forum
How do I manipulate musical notes using Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I manipulate musical notes using Python?
#2
Hi,

Quote:I know this is a very basic python problem but I do not know exactly how to search for an answer here.
No it's not. To be precise, it has nothing to do with Python in a strict sense. What you are looking for is a Python module which cannot only print tracks - as shown in your example, but can access the actual MIDI date and manipulate it. The mido module you are using seems to be able to do so.

After a quick read through https://mido.readthedocs.io/en/latest/intro.html I think it's fairly easy: iterate of the messages of a MIDI file, copy the current message and alter the note at the same time, write the message to a new file. Done - I guess ;-)

Gruß, noisefloor
Reply


Messages In This Thread
RE: How do I manipulate musical notes using Python? - by noisefloor - Jul-06-2019, 12:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to code a musical slur in python tkinter? philipbergwerf 0 583 Jul-27-2023, 04:21 PM
Last Post: philipbergwerf
  Openpyxl manipulate excel write formula SamLiu 0 1,104 Nov-04-2022, 03:00 PM
Last Post: SamLiu
  using fitz to manipulate pdf Pedroski55 1 4,842 Mar-11-2020, 07:18 AM
Last Post: Gribouillis
  DB_ methods to calculate/manipulate data issac_n 0 2,297 Dec-26-2017, 07:03 AM
Last Post: issac_n
  How to manipulate csv 2 Prince_Bhatia 4 3,744 Nov-24-2017, 10:16 AM
Last Post: Prince_Bhatia
  Simplest way to create a musical note and play it insearchofanswers87 3 13,662 Nov-21-2017, 07:02 PM
Last Post: insearchofanswers87
  How to manipulate csv Prince_Bhatia 4 3,376 Nov-06-2017, 09:11 AM
Last Post: Prince_Bhatia
  Python 3.5 Instantiate and manipulate object with multiprocessing jipete 1 4,897 Dec-28-2016, 12:46 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020