Strangely works OK only if the peak reading display is on ??????
________________________________
From: fluid-dev-bounces+mnjmiller=outlook....@nongnu.org 
<fluid-dev-bounces+mnjmiller=outlook....@nongnu.org> on behalf of michael 
miller <mnjmil...@outlook.com>
Sent: Saturday, July 22, 2023 6:56 PM
To: fluid-dev@nongnu.org <fluid-dev@nongnu.org>
Subject: [fluid-dev] percussion channel problem

# 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]))


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to