perl.midi
  Home Bitcoin Casinos 2022 FAQ Contact
perl.midi only
 
Advanced search
December 2006
motuwethfrsasuw
    123 48
45678910 49
11121314151617 50
18192021222324 51
25262728293031 52
2006
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2006      
total
RELATED GROUPS

comp.lang.perl.announce
comp.lang.perl.misc
comp.lang.perl.moderated
comp.lang.perl.modules
comp.lang.perl.tk
comp.music.midi
de.comp.lang.perl.cgi
de.comp.lang.perl.misc
maus.technik.midi
fr.comp.lang.perl
linux.debian.maint.perl
z-netz.alt.musiker.midi
perl.advocacy
perl.ai

POPULAR GROUPS

alt.marketplace.online.ebay
alt.forsale
alt.marketplace.collectables
rec.antiques.marketplace
news.admin.netabuse.sightings
alt.politics.bush
alt.fan.rushlimbaugh
alt.politics
fr.soc.politique
it.politica

more...

 Up
  RE: accessing midisport 2x2 using ALSA & MIDI::Music...         


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
  RE: accessing midisport 2x2 using ALSA & MIDI::Music...         


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
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]On
> Behalf Of zentara
> Sent: Tuesday, December 12, 2006 6:52 AM
> To: [email protected]
> Subject: Re: accessing...
Show full article (2.89Kb)
no comments
  RE: accessing midisport 2x2 using ALSA & MIDI::Music...         


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
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]On
> Behalf Of zentara
> Sent: Friday, December 08, 2006 10:04 AM
> To: [email protected]
> Subject: Re: accessing...
Show full article (3.57Kb)
no comments
  accessing midisport 2x2 using ALSA & MIDI::Music...         


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
  Re: Transforming midi note numbers         


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
  Re: Transforming midi note numbers         


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
  Transforming midi note numbers         


Author: Marcus
Date: Oct 8, 2006 16:45

Hi everybody,

I'm new to the list. I don't yet know how to search the archives.

I need a perl script that given an input midi file writes out a new file with notes transformed (for example, transposed by +3 note numbers).

Has such a script been published to this list? If so, could a kind generous soul point it out to me?

Thanks so much!
Marcus

# Perfect Buzz Music Podcast
http://web.mac.com/marcushobbs/iWeb/PerfectBuzzMusic/Perfect%%20Buzz%%20Music%%20Podcast/Perfect%%20Buzz%%20Music%%20Podcast.htm...

# Perfect Buzz Music Home
http://www.perfectbuzzmusic.com

---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

Hi everybody,I'm new to the list.  I don't yet know how to search the archives.I need a perl script that given an input midi file writes out a new file with notes transformed (for example, transposed by +3 note numbers).Has such a script been published to this list?  If so, could a kind generous soul point it out to me?Thanks so much!Marcus# Perfect Buzz Music Podcasthttp://web.mac.com/marcushobbs/iWeb/PerfectBuzzMusic/Perfect%%20Buzz%%20Music%%20Podcast/Perfect%%20Buzz%%20Music%%20Podcast.htm... Perfect Buzz Music Homehttp://www.perfectbuzzmusic.com
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
1 Comment