Skip to main content

Posts

Showing posts from August, 2020

Featured

Python programming 8 Music with mouse-drawn lines by PyGame

I revised my previous program "Small interactive music maker" and now melody is made from mouse-drawn lines. Actually, change is not big. Instead of my Fourier series function, two key functions are included as - draw lines with mouse by pygame - from line to fx Drawing lines from below.   https://www.dreamincode.net/forums/topic/401541-buttons-and-sliders-in-pygame/ This must be some pretty fun for kids!   ---------------------------------------------------------------------------------------------- blog 8 Some versions of pygame may have some bug. Need " pip install pygame==2.0.0.dev6 " import pygame, math, sys, time import pygame.midi # use pygame.midi (not Mido) from random import random, choice pygame.init() # initialize Pygame pygame.midi.init() # initialize Pygame MIDI port = pygame.midi.Output(0) # port open port.set_instrument(53, channel = 0) # Voice port.set_instrument(0, channel = 1) # piano port.set_instrument(33, channel = 2) # bass X = 900 ...

Python music - Better MIDI sound using Studio One 5 Prime

Python programming 7 Small interactive music maker by PyGame

Python programming 6 Small interactive drum machine by PyGame

Python Programming 5 Rhythm (length of notes) created by Markov transition matrix

Python Programming 4 Piano Roll Animation of MIDI file by Matplotlib

Python Programming 3 Create melody with Fourier Series

Python Programming 2 Input chords ["C", "Dm", "G", "CM7onE"] and Play

Python programming 1 Basics of Mido for MIDI handling

A song "Etude No.2 - Ambient music" inspired by Fripp and Eno uploaded to Youtube.

A song "Etude No.4" created by Fourier series uploaded to Youtube.

Welcome to my blog.