As I told you all in an email some time ago, this past week at OLPC, with the help of Chris Ball - the author of Pippy - we got Pippy tp list and or play a selected .csd from a folder of .csd files.
NOTE: Update your XO - to 656 stable at least! or if you are a developer - to the latest joyride release.
Here is a collection of .csd compositions to try:
Here is a collection of .csd instruments to try:
Here is the file to put in pippy to add a playCsound command to the sidebar:
Here's what you need to do to get Pippy to Play .csd files and add the playcsound command to Pippy:
1. copy this attached *playCsound* file onto a USB memory stick, and then into this directory on an XO:
2. on the XO,
- mkdir /usr/share/csound/csd/
- copy all the .csd files from the links above (or some of yours!) into /usr/share/csound/csd/
3. Restart Sugar: Ctrl-Alt-Erase
If you don't remember or know how to mount a USB memory stick and transfer files:
go to the terminal activity
su - to become root
mount - to see the dev name
mount /dev/sda1 /mnt - now we have created a device with a directory on your XO called /mnt
cd /mnt - to change to that directory
ls - to list the files you want to copy
cp playCsound /usr/share/activities/Pippy.activity/data/sound/
cp *.csd /usr/share/csound/csd/
when you are done transferring you should type:
In Pippy, by default, it will try to play the piece Maple7.csd. But... if you don't have Maple7 in your collection,
you erase that orchestra name from the line csd_toplay = 'Maple7.csd' and you just leave that blank and hit the run button.
As you can see from the code, if that line has no argument, it will list all the .csd files in your /usr/share/csound/csd folder and
you could just type in one of those names.
We will be working a lot more on this next week so that it will display the text of the .csd and have a bunch of presets as part of the download, but for now - this might be fun for you all.