[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] MIDI output on OS X???
- To: pygame-users@xxxxxxxx
- Subject: [pygame] MIDI output on OS X???
- From: Chris Phoenix <cphoenix@xxxxxxxxx>
- Date: Thu, 8 Oct 2009 02:20:45 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 08 Oct 2009 05:20:47 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=yVYH1j2oBApWbFb/Un6CfFC9zA4bqA2BiuiNelMsY8k=; b=S58mSn8eCx6OjL7aFNbIyoZgAeXeYjWwSRNqmzQqFzACZqXEFk/jP0LiVLffW0bbTc +W1O0FgsVdQue4x26yrA1ehyORTeZWRFXXP29WrH0VXPJn/ScN0kx0tH8zHXoAeGrr93 ckFi5yC9chQ75Iq2F4A+vjNk3ucSEYqqar46Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=UMA6q6Q0zqnBwhxkAneKiMU3M3kXBTLpAPqf0jPhujCIupvu+tCRQmLczqUPZ+KLld e+IADvElQpott1o8WrGLlLhFCH0nrXqekdcfJ6STICNJYCqIjp4+ZK+RgbwEPrMr8PsC v2bc2eUe5kEDlADMW1/lq/PqOVhovh2v/zFfA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'd like to make a MIDI sound from a Python program. PyGame's midi
module was supposed to do it, but it doesn't seem to have a default
midi output device - or any midi output device!
pygame.midi.get_default_output_id() returns -1. Half an hour of
googling didn't help. Looking at the unit tests didn't help (there's a
bugfix aimed at this problem, but it seems to just bypass the test).
The mixer module can indeed read a midi file and make a sound come out
the speakers, but I'd rather drive the midi directly instead of
writing mini-files and playing them...
What should I pass in to pygame.midi.Output() on 10.5? Or what should
I do to create the midi device so that
pygame.midi.get_default_output_id() will tell me something other than
-1?
Thanks...
Chris
--
Chris Phoenix
cphoenix@xxxxxxxxx
650-776-5195
Director of Research
Center for Responsible Nanotechnology
http://CRNano.org