<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Gary,<br>
<br>
This is very exciting and I would love to help test it when it is ready
for that. This idea came to mind when I noticed Mexico's OLPC activity
information for TamTamMini showed the relationship of the XO keys to those
of an actual music keyboard. Why not let the children experience the real thing? You can download their guide here (see page 3 in the TamTamMini instruction<a href="s%29:%20%20http://www.mochiladigitaltelmex.com.mx/olpc/index.php/Herramientas_pedag%C3%B3gicas">s):<br><a href="%20http://www.mochiladigitaltelmex.com.mx/olpc/index.php/Herramientas_pedag%C3%B3gicas"><br>http://www.mochiladigitaltelmex.com.mx/olpc/index.php/Herramientas_pedag%C3%B3gicas</a></a><br>
<br>
As a former music major and the wife of a retired instrumental music
teacher, I really would love to have TamTam give students a chance to
transfer their skills to music keyboards and mallet instruments. I
asked on the olpc-sur list if anyone would use something like this with
their students. I got only one reply, but I think it was evidence of
the concerns teachers have...they thought it was a great idea except for
the cost of the music keyboards.<br>
<br>
Maybe we need to start a company to make no-frills basic usb music
keyboards to sell for about $20-$25 US so that schools in countries
with deployments could afford to get some for their music classes.<br>
<br>
Keep me posted on your progress!<br>
<br>
Caryl<br><br>> CC: echerlin@gmail.com; devel@lists.laptop.org<br>> From: gary@garycmartin.com<br>> To: cbigenho@hotmail.com<br>> Subject: Re: Music Keyboard for TamTam?<br>> Date: Tue, 9 Dec 2008 01:12:59 +0000<br>> <br>> Hi Caryl,<br>> <br>> On 4 Dec 2008, at 07:55, Caryl Bigenho wrote:<br>> <br>> > Thanks for all your efforts!<br>> ><br>> > The last time I used a midi keyboard with a Mac (it was a G3) it had <br>> > to have a special "midi interface" and then was just "plug and play" <br>> > from there using Finale as a program. In looking over your <br>> > discussion below, it looks like you did manage to get a midi <br>> > keyboard to work with the XO, but with great difficulty. Some <br>> > questions...<br>> ><br>> > Will it work with all of the TamTam Activities?<br>> <br>> It does not work with any of the TamTam activities yet, but I am <br>> digging through TamTamMini to see what's the best way to add this <br>> functionality. The Python code is fairly obtuse, likely due to all the <br>> copy/paste hacking that it's been through (all 4 activities used to be <br>> one big single activity).<br>> <br>> Right now I've just tested that the standard 8.2-767 release does <br>> respond correctly to a USB MIDI keyboard by writing some simple/small <br>> CSound code. No special kernel modules, drivers, updates are needed – <br>> so it works 'out the box' but we have no current activities that <br>> listen for MIDI events just now.<br>> <br>> > Is it likely that all midi keyboards would work?<br>> <br>> Yes I think so, USB MIDI keyboards being the easiest to use. I also <br>> have a MIDI to USB converter kicking around (some other folks sent you <br>> links to these), and a bunch of old school MIDI synths and devices <br>> that I plan to test function correctly.<br>> <br>> > Would it be possible to put the instructions into language that the <br>> > less technically inclined could easily follow to get started on this?<br>> <br>> If I can update TamTamMini the way I intend, you'd just need to plug <br>> in a MIDI keyboard and start hitting keys in a tuneful way :-)<br>> <br>> > Does anything have to be changed in the software/hardware to make <br>> > this easily used by teachers everywhere?<br>> <br>> New releases of the TamTam Activities (if I manage to get this <br>> working). Should just be a software update away for those already <br>> running Sugar.<br>> <br>> > Do you know of any source of very simple, inexpensive midi <br>> > keyboards? No bells and whistles needed, they are already in the XO <br>> > in the TamTam Activities.<br>> <br>> M-Audio is what I've used. Doing a quick google, my curiosity was <br>> piqued by a "roll-up USB piano" (49key, velocity sensitive) - it's <br>> about £20 here in the UK, ~$40 in the US, any one got one of these? I <br>> only ask as it seems both cheap, potentially durable, easy to store, <br>> and easy to ship... Pity it doesn't come in green ;-)<br>> <br>> > Could easier use of a midi keyboard be incorporated into a change in <br>> > the Sugar OS (like 9.1.0)?<br>> <br>> 8.2 seems to have all the required components.<br>> <br>> A new control panel module for advance MIDI device configuration could <br>> be something for the future, but to be honest that seem like massive <br>> over kill, and a potential source of confusion. I've hacked about with <br>> keyboards for plenty of years now, and it is almost always the <br>> individual client software that deals with fancy MIDI configurations, <br>> if needed, and not the OS.<br>> <br>> Regards,<br>> --Gary<br>> <br>> > Or is there an easy way to make the current set-up easier?<br>> ><br>> > Thanks again for your interest and efforts!<br>> ><br>> > Caryl<br>> ><br>> ><br>> ><br>> > > Date: Mon, 1 Dec 2008 20:37:59 -0800<br>> > > From: echerlin@gmail.com<br>> > > To: gary@garycmartin.com<br>> > > Subject: Re: Music Keyboard for TamTam?<br>> > > CC: cbigenho@hotmail.com; devel@lists.laptop.org<br>> > ><br>> > > See also<br>> > ><br>> > > http://www.flickr.com/photos/curiouslee/189728345/<br>> > ><br>> > > Walter and Simon demonstrate MIDI keyboard input into the A-TEST <br>> > board<br>> > > Taken on July 14, 2006, uploaded July 14, 2006<br>> > ><br>> > > On Sun, Nov 30, 2008 at 9:16 PM, Gary C Martin <br>> > <gary@garycmartin.com> wrote:<br>> > > > On 1 Dec 2008, at 04:01, Gary C Martin wrote:<br>> > > ><br>> > > >> On 30 Nov 2008, at 22:16, Erik Garrison wrote:<br>> > > >><br>> > > >>> On Sun, Nov 30, 2008 at 12:20 AM, Gary C Martin<br>> > > >>> <gary@garycmartin.com> wrote:<br>> > > >>>> On 30 Nov 2008, at 01:29, Erik Garrison wrote:<br>> > > >>>><br>> > > >>>>> On Mon, Nov 17, 2008 at 8:23 AM, <pgf@laptop.org> wrote:<br>> > > >>>>>><br>> > > >>>>>> ignacio wrote:<br>> > > >>>>>>><br>> > > >>>>>>> On Mon, 2008-11-17 at 04:24 +0000, Gary C Martin wrote:<br>> > > >>>>>>>><br>> > > >>>>>>>> On a more disappointing note I found this ticket "G1G1 <br>> > tamtam<br>> > > >>>>>>>> suite<br>> > > >>>>>>>> should respond to MIDI keyboard input" from 10 months ago.<br>> > > >>>>>>>> Closed.<br>> > > >>>>>>>> Wont fix :-(<br>> > > >>>>>>>><br>> > > >>>>>>>> https://dev.laptop.org/ticket/6031<br>> > > >>>>>>><br>> > > >>>>>>> All "wontfix" means is that they're waiting for someone <br>> > with a<br>> > > >>>>>>> stronger<br>> > > >>>>>>> itch to scratch it ;)<br>> > > >>>>>><br>> > > >>>>>> i really have no idea how such devices are normally <br>> > presented to<br>> > > >>>>>> the systems, but is it possible that the keyboard is <br>> > consists of<br>> > > >>>>>> more than one USB device (i.e., via a built-in hub) and <br>> > that not<br>> > > >>>>>> all the drivers are present on the XO?<br>> > > >>>>>><br>> > > >>>>><br>> > > >>>>> FWIW, The M-audio systems abide by open midi specifications <br>> > and are<br>> > > >>>>> platform-independent. I don't know about the driver situation.<br>> > > >>>>><br>> > > >>>>> There is a program which can be used to dump midi signals to<br>> > > >>>>> stdout.<br>> > > >>>>> It might be a good test as it's very simple to configure and <br>> > its<br>> > > >>>>> results are very clear, unlike the audio programs you'll <br>> > want to<br>> > > >>>>> use.<br>> > > >>>><br>> > > >>>> ... and it's called??? Gah! ;-)<br>> > > >><br>> > > >> Just for reference, after connecting the USB Midi keyboard <br>> > amidi -l<br>> > > >> gives me:<br>> > > >><br>> > > >> [olpc@xo-0C-E6-BB ~]$ amidi -l<br>> > > >> Dir Device Name<br>> > > >> IO hw:1,0,0 Keystation 49e MIDI 1<br>> > > >><br>> > > >>> I'm not at an XO or my development machine now, but looked <br>> > around the<br>> > > >>> web to try to find some information to help.<br>> > > >>><br>> > > >>> See: http://www.4front-tech.com/pguide/midi.html<br>> > > >><br>> > > >> Will go read.<br>> > > >><br>> > > >>> Does the system have a /dev/midi* when you plug the device in?<br>> > > >><br>> > > >> Yep, I get a /dev/midi1<br>> > > >><br>> > > >>> Do you see anything interesting in the kernel logs returned with<br>> > > >>> dmesg?<br>> > > >>><br>> > > >>> Unfortunately our kernel configs aren't online anywhere i can <br>> > find...<br>> > > >>> but I'll check to see if it's enabled. My guess would be not, <br>> > but<br>> > > >>> perhaps I'm mistaken.<br>> > > >>><br>> > > >>>> I'm trying to hack my way through coding csound, but I've not <br>> > had<br>> > > >>>> much time<br>> > > >>>> to play so far. A magic midi data dumping tool would be a nice<br>> > > >>>> shortcut to<br>> > > >>>> test – FWIW, I can see my M-audio correctly listed on the <br>> > USB as an<br>> > > >>>> available MIDI input device, but not got any further yet.<br>> > > >>><br>> > > >>> Perhaps cat /dev/midi* if the file(s) exist.<br>> > > >><br>> > > >> Fab, yes, cat/dev/midi1 gives me wild ascii characters each <br>> > time I<br>> > > >> press a key, looks like both note and velocity (this particular<br>> > > >> keyboard doesn't emit pressure but I have another one somewhere <br>> > that<br>> > > >> does), also other controls (volume, pitch blend & modulation) <br>> > trigger<br>> > > >> comms.<br>> > > >><br>> > > >> I'd say the drivers are good to go, and I need to get back to <br>> > reading<br>> > > >> csound documentation and try a demo to pickup the incoming midi <br>> > feed.<br>> > > ><br>> > > > OK, really boring but working example (XO 8.2-767):<br>> > > ><br>> > > > 1) Plug in your USB MIDI input device<br>> > > ><br>> > > > 2) In terminal run "amidi -l" it should list something like:<br>> > > ><br>> > > > Dir Device Name<br>> > > > IO hw:1,0,0 Keystation 49e MIDI 1<br>> > > ><br>> > > > 3) Make a file bells.csd, it MUST be called <br>> > <some_such_or_other>.csd,<br>> > > > that alone wasted hours of my life :-( here's a what should go <br>> > in it,<br>> > > > the one thing to watch is the -M hw:1,0,0 as this is the option <br>> > that<br>> > > > tells csound which midi device to listen to, if "amidi -l" shows <br>> > your<br>> > > > MIDI device with a different reference, use that instead:<br>> > > ><br>> > > > <CsoundSynthesizer><br>> > > > <CsOptions><br>> > > > -odac -M hw:1,0,0<br>> > > > </CsOptions><br>> > > > <CsInstruments><br>> > > > instr 1<br>> > > > idec = 1<br>> > > > iamp ampmidi 32767<br>> > > > kfrq cpsmidib 2<br>> > > > kenv expsegr 1, idec, 0.1, 0.1, 0.01<br>> > > > asig oscili kenv*iamp, kfrq, 1<br>> > > > out asig<br>> > > > endin<br>> > > > </CsInstruments><br>> > > > <CsScore><br>> > > > f0 36000<br>> > > > f1 0 16384 10 1<br>> > > > </CsScore><br>> > > > </CsoundSynthesizer><br>> > > ><br>> > > > 4) Then again in console run:<br>> > > ><br>> > > > csound bells.csd<br>> > > ><br>> > > > 5) Start pressing keys and make beautiful music, see I said it <br>> > wasn't<br>> > > > too exciting, but nice to get this far :-) The XO speakers don't <br>> > do<br>> > > > very well below middle C (with this instrument), but it's a start.<br>> > > ><br>> > > > So... hardware/kernel/driver all working in 8.2-767. MIDI input <br>> > is now<br>> > > > demoted to just ;-) a client software side feature for the TamTam<br>> > > > activities. I'll do a little more csound reading on the python <br>> > side<br>> > > > and try to hack on TamTamMini, will ping the list if I make useful<br>> > > > progress.<br>> > > ><br>> > > > Regards,<br>> > > > --Gary<br>> > > ><br>> > > >>> Erik<br>> > > >><br>> > > >> Many thanks,<br>> > > >> --Gary<br>> > > >> _______________________________________________<br>> > > >> Devel mailing list<br>> > > >> Devel@lists.laptop.org<br>> > > >> http://lists.laptop.org/listinfo/devel<br>> > > ><br>> > > > _______________________________________________<br>> > > > Devel mailing list<br>> > > > Devel@lists.laptop.org<br>> > > > http://lists.laptop.org/listinfo/devel<br>> > > ><br>> > ><br>> > ><br>> > ><br>> > > --<br>> > > Silent Thunder (默雷/ <br>> > धर्ममेघशब्दगर्ज/ <br>> > دھرممیگھشبدگر ج) is my name<br>> > > And Children are my nation.<br>> > > The Cosmos is my dwelling place, The Truth my destination.<br>> > > http://wiki.sugarlabs.org/go/User:Mokurai<br>> <br></body>
</html>