This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# plays one note for each day in a year of checkout data from the library | |
# recording at https://soundcloud.com/laurasaurus5/checkouts | |
require 'csv' | |
data = CSV.parse(File.read("/Users/lwrubel/projects/datasonify/gwtransactcounts.csv"), {:headers => true, :header_converters => :symbol}) | |
# 7/1/2014 is a Tuesday and day 182 of the year | |
dailycount = 2 | |
day = 182 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plain hunt minimus (on 4) | |
use_synth :dull_bell | |
minimus = [:F5, :E5, :D5, :C5] | |
define :round do |c| | |
4.times do |change| | |
puts "Change #{change}" | |
for i in 0..3 | |
play c[i], release: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plain Bob Minor (6 bells) | |
use_synth :dull_bell | |
bells = [:A5, :G5, :F5, :E5, :D5, :C5] | |
define :round do |c| | |
4.times do |row| | |
puts "Round #{row}" | |
for i in 0..5 | |
play bells[i], release: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# files changed in github launchpad repo (https://github.com/gwu-libraries/launchpad) | |
# full sonic pi code at https://gist.github.com/lwrubel/5a621aa316741ad8d315 | |
require 'csv' | |
data = CSV.parse(File.read("/Users/lwrubel/projects/stg-sound/launchpad-noDmrc.csv"), {:headers => false}) | |
use_synth :subpulse | |
separator = 0.15 | |
count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cycling to work, in a brisk cold wind | |
# csv file has a heartrate and altitude measurement taken each second | |
# piano is the heartrate, higher note is higher heartrate | |
# underlying synth is altitude, higher pitch is higher altitude | |
require 'csv' | |
data = CSV.parse(File.read("/Users/lwrubel/projects/datasonify/20160222-cycle-to-work.csv")) | |
# using pentatonic scale for heartrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
data = CSV.parse(File.read("/Users/lwrubel/projects/chronam-exploration/final-counts.csv"), {:headers => false}) | |
count = 1788 | |
notes = scale(:g2, :major, num_octaves: 5) | |
separator = 0.2 | |
# for each line of data, play a drum beat and appropriate pitch | |
data.each do |line| | |
puts line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# To use: | |
# python csv-to-ris-format.py csvfile.csv risoutput.txt | |
# | |
# Assumes you have removed the header row from the csv file, | |
# columns are in the same order as the labels list, | |
# and there are no other columns in the csv. | |
import csv | |
from sys import argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MMS ID | Library | Location | Volume | Issue number | Year | Month | Barcode | Note | |
---|---|---|---|---|---|---|---|---|---|
99169315803604107 | gelman | grcmis | 1 | 1 | 1989 | Spring | 32882022255379 | ||
99169315803604107 | gelman | grcmis | 1 | 2 | 1989 | Summer | 32882022255387 | ||
99169315803604107 | gelman | grcmis | 1 | 3 | 1989 | Autumn | 32882022255635 | ||
99169315803604107 | gelman | grcmis | 1 | 4 | 1990 | Winter | 32882022255882 | ||
99169315803604107 | gelman | grcmis | 2 | 1 | 1990 | Spring | 32882022256138 | ||
99169315803604107 | gelman | grcmis | 2 | 2 | 1990 | Summer | 328820222563 | ||
99169315803604107 | gelman | grcmis | 2 | 3 | 1990 | Autumn | 32882022256393 | ||
99169315803604107 | gelman | grcmis | 2 | 4 | 1991 | Winter | 32882022256146 | ||
99169315803604107 | gelman | grcmis | 3 | 1 | 1991 | Spring | 32882022255890 |