GNU bug report logs - #72142
[PATCH] add python-rtmidi

Previous Next

Package: guix-patches;

Reported by: Rick Huijzer <ikbenrickhuyzer <at> gmail.com>

Date: Tue, 16 Jul 2024 15:23:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: "jgart" <jgart <at> dismail.de>
To: "Rick Huijzer" <ikbenrickhuyzer <at> gmail.com>, 72142 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, Rick Huijzer <ikbenrickhuyzer <at> gmail.com>, Munyoki Kilyungi <me <at> bonfacemunyoki.com>, Lars-Dominik Braun <lars <at> 6xq.net>, Marius Bakke <marius <at> gnu.org>, Tanguy Le Carrour <tanguy <at> bioneland.org>
Subject: [bug#72142] [PATCH v1] Fix formatting, boost not needed in python-rtmidi
Date: Thu, 18 Jul 2024 16:38:54 +0000
> + (inputs (list glibc python-cffi jack-2 rtmidi))

Hi, since this is a Python library, do we want to make the Python inputs propagated?

Were you able to test in a shell that the following works fine when run from a script or repl?

If not, can you test that and report back on the results. I'll give it a try after.

Or, how have you gone about testing that this package works in a Guix environment with all the system audio requirements?


```python
import time
import rtmidi

midiout = rtmidi.MidiOut()
available_ports = midiout.get_ports()

if available_ports:
    midiout.open_port(0)
else:
    midiout.open_virtual_port("My virtual output")

with midiout:
    note_on = [0x90, 60, 112] # channel 1, middle C, velocity 112
    note_off = [0x80, 60, 0]
    midiout.send_message(note_on)
    time.sleep(0.5)
    midiout.send_message(note_off)
    time.sleep(0.1)

del midiout
```

all best,

jgart




This bug report was last modified 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.