Propeller and VMusic2 sound sequencer
Mike Green
Posts: 23,101
Here is the Spin code and a picture for a two channel audio sequencer for a sound installation piece. It uses a VMusic2 and a monaural amplifier for each channel with a Propeller Protoboard controlling the VMusic2's and a bank of 6 reed relays for each channel to connect the output of each channel to one of six speakers. The idea is that there are sound fragments ... pieces of interviews with several people and the fragments move around the room where the piece is installed. The two VMusic2 units are stacked and the two memory stick drives have the same content. There's a subdirectory for each person and the files in the subdirectory are numbered with a two digit number following the person's name and an MP3 extension. For example, one file is \SUSAN\SUSAN01.MP3. In the root directory, there is a playlist for each VMusic2 device named SEQUENCn.TXT where n is 1 or 2. The playlist contains a list, one per line, consisting of the subdirectory name followed by the file number, then the speaker number to be used (with a space as a delimiter). Each playlist is ended by a line consisting of just "*** END ***". There's a uOLED-128 display used to display information about the files being played. The top half of the screen is for one device. The bottom half of the screen is used for the other. The main program manages the screen while the two copies of the VMusic2 object manage each of the devices and communicate with the main program through a message buffer.
There are several routines in the VMusic2 object that should be useful for the memory stick datalogger as well including routines to fill a buffer and to look at the end of the buffer for a specific response from the device. There's a routine to change directories and read a file into a buffer.
There are still some minor bugs, but I'm posting this as an example of a complex VMusic driver that has pieces applicable to other Vinculum uses as well.
There are several routines in the VMusic2 object that should be useful for the memory stick datalogger as well including routines to fill a buffer and to look at the end of the buffer for a specific response from the device. There's a routine to change directories and read a file into a buffer.
There are still some minor bugs, but I'm posting this as an example of a complex VMusic driver that has pieces applicable to other Vinculum uses as well.
spin
15K
Comments
This was used for testing the audio sequencer hardware and figuring out some of the sloppy details of the VMusic2. It illustrates how useful BoeBotBasic (or FemtoBasic) is for testing new hardware.
The Vinculum and Parallax data logger are of particular interest to me, articles such as this are what I will be looking for.
Jeff T.
its going to be a long time before I start hooking up peripherals but the Prop is on its way [noparse]:o[/noparse])
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Adrian
1 - Propeller Protoboard with Accessory Kit
2 - VMusic2 + 2GB Memory Stick
2 - Kit 47 Monoaural amplifiers
1 - oLED-128 display
1 - Power Brick (9V? x 2A)
12 - Reed Relays
Maybe $200-$250 for the pieces
Post Edited (Mike Green) : 3/8/2010 3:09:18 PM GMT