fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] percussion channel problem


From: michael miller
Subject: [fluid-dev] percussion channel problem
Date: Sun, 23 Jul 2023 01:56:28 +0000

# RaspBerry Pi 4 and/or 400
# FluidSynth from RPi repository

# Launch Qsynth
# Launch Thonny (Python)
# No sound from channel 10 ????
# This works right with Timidity

import os
import time

os.system("sudo modprobe snd-virmidi")
os.system("aconnect 28:0 128:0")

fo=open("/dev/snd/midiC3D0","wb",buffering=0)

for x in range(4):
    print("channel 10, any note number")
    fo.write(bytes([153,60,127]))
    time.sleep(0.5)
    fo.write(bytes([153,60,0]))
for x in range(4):    
    print("channel 1")
    fo.write(bytes([144,60,127]))
    time.sleep(0.5)
    fo.write(bytes([144,60,0]))  
   

Attachment: 1midi1.py
Description: 1midi1.py


reply via email to

[Prev in Thread] Current Thread [Next in Thread]