Funcube Dongle Pro and Pro+ on the Raspberry Pi

update 6/2014: latest version of MaxSDR offers FCD pro+ drivers: http://zerokidz.com/radio

original post

A fork of the David Pella code which was the basis for the MaxSDR project externals. It seems plausible that we could modify the drivers and get MaxSDR working with the funCube pro+.

By Alex Csete, OZ9AEC

http://www.oz9aec.net/index.php/funcube-dongle/479-the-funcube-dongle-propro-on-the-raspberry-pi

 

 

 

 

Soundcloud API in Max

In this patch, Max uses the Soundcloud API to find available tracks for a user and then stream or download one of the tracks.

Features:
  • Resolve the user-id for a given Soundcloud user name – in this case “dannyzic”
  • Process the JSON response to get a track list
  • Request the first track as either a download or streaming file
  • Play the track in Max using [jit.qt.movie]

The Soundcloud API reference provides examples using curl.

http://developers.soundcloud.com/docs/api/reference

download

https://github.com/tkzic/internet-sensors

folder: soundcloud

files

main Max patch
  • soundcloud2.maxpat
abstractions and other files
  • sc-process-user-data.js
  • sc-process-track-data.js

authorization

  • The Soundcloud client-id is embedded in the Max patch. To get a client ID you will first need a Soundcloud account. Then register an app at: http://soundcloud.com/you/apps

instructions

  • Open the Max patch: soundcloud2
  • Unlock the patch and enter your client-id in the yellow [message] object in the upper right corner. Lock and save the patch.
  • Click the green button to resolve the Username: ‘dannyzic’
  • Click the blue button retrieve ‘tracks’ for this user
  • Click the yellow button to begin streaming the first available track
  • Optional: click the red button to download the track.

Musical stairs

Notes from Gould Academy 2013.

For construction details of the final project see: https://reactivemusic.net/?p=12300

original post

An attempt to collect notes on this project as we bring it to a close.

During Monday’s class I gave students the current version of the Arduino sketch  – and showed them how to hack the code which triggers Midi notes.  it was amazing to see them make changes to the code, which they barely understood – and then upload their changes into the Arduino to see how it affected the sound of the stairs.

There are two sets of stairs:

  • version 1 – built with foam/aluminum foil sensors and a circuit-bent  Radio Shack keyboard. (based on a design from a previous life)
  • version 2 – was done with Arduino, IR emitter/receivers, an Ethernet shield for data logging,

Here are relevant posts – until the student portfolio presentations begin…

Logging data to Pachube

https://reactivemusic.net/?p=4900

https://reactivemusic.net/?p=5163

Arduino IR beam testing

https://reactivemusic.net/?p=4027

Raspberry-Pi Osc synthesizer

A variation on the Midi synthesizer from this post: https://reactivemusic.net/?p=4960

The synthesizer was built in PureData (Pd extended) using the visual interface on a MacBook. Then the pd file was run in command line mode on the r-pi. The sound card is a Griffin i-Mic, running at 22.5 Khz sample rate. Although there’s no reason why you couldn’t use the builtin DAC on the r-pi.

The r-pi is connected via the ethernet port to a wi-fi network which receives Osc (Open Sound Control) messages from an iPod running touch-Osc. The network connection could have been made using a USB wifi adapter.

All together the cost of this arrangement (less the iPod) would be less than $50. The software is all open source.  The huge financial barriers to working with music synthesis and signal processing, that have been associated with these fields for years, simply don’t exist anymore.

Alternative ways of controlling the synth – if a wiFi router is not available, include:

  • USB keyboard (usually free)
  • USB Midi Keyboard ($25)
  • switches or dials via the GPIO pins (spare parts)
  • direct ethernet connection to another device.
Here is a screenshot of the Pd Patch.

Notes:

Pd file: tkzic/rpi/pd/piSynth1_OSC.pd

recieve port is 8000 – and it uses page 1 of the simple touchOSC template

pd-extended -nogui -noadc  piSynth1_Osc.pd

Note: there is some special code to prevent seg faults when you go from page 2 to page 1 of the touchOSC template

Here’s a great tutorial on using OSC with Pure Data

http://en.flossmanuals.net/pure-data/network-data/osc/

 

 

 

GPS on Raspberry Pi

Successfully installed this GPS board on the R-Pi.

By Kevin Townsend at adafruit.com

http://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/introduction

The drivers for the console cable were already in the Raspian distribution on the R-Pi.

I installed the gpsd (daemon) software as directed in the above tutorial.

Documentation for gpsd is here:

http://gpsd.berlios.de/client-howto.html

Sample C code is: gpxlogger.c and cgps.c – which can be found in tkzic/rpi/gpsd 3.7/

(todo – write sample code and add to telemetry tracker)