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?
#4
(Jul-07-2019, 12:04 AM)joe_momma Wrote: Hey have you heard of sonic pi: home page You can run your input with the program and capture outputs and control tones with their module psonic. (Use pip to install) The main program needs to be running to use python. Lots of examples to get you started.
looks awesome! thanks!

(Jul-06-2019, 12:31 PM)noisefloor Wrote: 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
Ah yes... I think you nailed the root of my problem. I was thinking the midifile command I was using was already pulling it into a list but I still need more formatting before I can manipulate. Thanks!
Reply


Messages In This Thread
RE: How do I manipulate musical notes using Python? - by rockproper - Jul-07-2019, 11:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to code a musical slur in python tkinter? philipbergwerf 0 566 Jul-27-2023, 04:21 PM
Last Post: philipbergwerf
  Openpyxl manipulate excel write formula SamLiu 0 1,076 Nov-04-2022, 03:00 PM
Last Post: SamLiu
  using fitz to manipulate pdf Pedroski55 1 4,803 Mar-11-2020, 07:18 AM
Last Post: Gribouillis
  DB_ methods to calculate/manipulate data issac_n 0 2,288 Dec-26-2017, 07:03 AM
Last Post: issac_n
  How to manipulate csv 2 Prince_Bhatia 4 3,714 Nov-24-2017, 10:16 AM
Last Post: Prince_Bhatia
  Simplest way to create a musical note and play it insearchofanswers87 3 13,640 Nov-21-2017, 07:02 PM
Last Post: insearchofanswers87
  How to manipulate csv Prince_Bhatia 4 3,360 Nov-06-2017, 09:11 AM
Last Post: Prince_Bhatia
  Python 3.5 Instantiate and manipulate object with multiprocessing jipete 1 4,882 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