|
Up |
|
Author: Rick Bolen
Date: Dec 14, 2006 05:44
This is the heart of my challenge. The midisport 2x2 usb midi interface
requires hotplug to upload firmware to it, which I am successfully doing.
When I attach the midisport, hotplug detects it and does its' job, however,
since I have a "partial-alsa" install, I don't think the system ever assigns
a /dev/ filename alias to the hardware. I suppose the device is
available to the system through IOCTLs or some type of low-level addressing,
but I don't know how to: 1) find it; 2) talk to it. If I knew my way around
lower-level linux hardware stuff, I could probably work around this and spit
bytes out to the device, but I haven't been able to find info on how to
accomplish this. Since installing alsa-base & alas-utils requires removing
linux-sound-base, which hangs during uninstall, I'm stuck.
> #!/usr/bin/perl
> use warnings;
> use strict;
> use diagnostics;
> use Fcntl;
> require 'sys/soundcard.ph';
>
> sysopen(SEQ_FH,'/dev/sequencer',O_WRONLY) or die $!;
|
|
no comments
|
|
|
Author: Rick Bolen
Date: Dec 12, 2006 05:32
Yes, you're correct, I should take this to a Debian forum. Debian's is
nearing the next release, and I was holding out for that, because I'm using
somewhat unusual hardware.
Just for documentation purposes (in case some poor soul wanders a similar
path), I have an Openbrick computer (via epia 533Mhz, lex mobo) running off
a compact flash card using hacom's cf images. They changed Debian around
abit to write less often to the cf among other things. They've tweaked the
kernel for their hardware and I haven't looked to see if they left a .config
laying around, so upgrading this to the newest may be more of a challenge
than usual.
My project was to use a perl script to generate random midi cc event values
that would get sent out to a couple of midi light-dimmer strips (Light
Master) I have (4 dimmers/strip) so I could have nice blinky Christmas
lights. I was hoping to play around with different "equations" (fractal?) in
calculating random intensity values to try and achieve visually interesting
and "organic randomness".
... maybe by Mardi Gras!
Thanks for all the help,
Rick
|
Show full article (2.89Kb) |
no comments
|
|
|
Author: Rick Bolen
Date: Dec 8, 2006 07:39
Thanks zentara. I'll try your suggestion.
I had read your posts on experimenting with MIDI::Realtime previously.
Ultimately I need to send CC events out the port, which I don't know if
MIDI::Realtime supports, but for testing I can use note events.
I tried installing OSS-Compat (alsa oss), but it didn''t change anything
(although I didn't config anything in it either).
Regards,
Rick
|
Show full article (3.57Kb) |
no comments
|
|
|
Author: Rick Bolen
Date: Dec 7, 2006 19:31
Hello,
I'm trying to get MIDI::Music to send midi data out to the USB connected
Midisport 2x2. Ifinally got the Midisport initialized via hotplug and
firmware dowloading, but...
I'm using alsa on Debian testing, and MIDI::Music wants to write to
/dev/music (which doesn't exist). I tried creating symlinks from /dev/music
to /dev/midi[0-3] but MIDI::Music still can't find the port.
Any way to get the data moving?
Thanks,
Rick
|
|
no comments
|
|
|
Author: Marcus
Date: Oct 9, 2006 15:45
--0-1310933465-1160433906=:80281
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Thanks to Christian and Paul. They answered my question....
Marcus
---------------------------------
How low will we go? Check out Yahoo! Messenger
|
|
no comments
|
|
|
Author: Peter Billam
Date: Oct 8, 2006 20:16
Marcus wrote:
> I need a perl script that given an input midi file writes a new file
> with notes transformed (for example, transposed by +3 note numbers).
One possibilty (not much tested) follows after .sig, usage:
miditranspose -3 fn.mid > fn_low.mid # transposes down 3 semtiones
miditranspose +5 fn.mid > fn_high.mid # transposes up 3 semtiones
Regards, Peter
AUS/TAS/DPIW/CIT/Servers hbt/lnd/l8 6233 3061 http://www.pjb.com.au
Pasaré, pasarémos dice el agua y canta la verdad contra la piedra
-- Pablo Neruda
------------------------------------------------------------------
#! /usr/bin/perl
eval 'require MIDI'; if ($@) {
die "you'll need to install the MIDI::Perl module from www.cpan.org\n";
}
import MIDI;
my $Version = '1.0';
|
Show full article (2.38Kb) |
no comments
|
|
|
|
|
Author: Marcus
Date: Oct 8, 2006 16:45
|
|
1 Comment |
|
|
|