Skip to content

Commit c7a7eb6

Browse files
committed
Rename spi extension to rb (get syntax highlighting in other editors)
1 parent e88daef commit c7a7eb6

15 files changed

+11
-27
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ into helpers so that I can easily access them later.
2424
My Sonic Pi experiments. If something becomes useful enough to be moved into helpers
2525
I'll leave the examples that use the helper in here.
2626

27-
## [Guitar](/experiments/guitar.spi)
27+
## [Guitar](/experiments/guitar.rb)
2828

2929
Programmatically generate guitar chords and strum them.
3030

31-
## [Drum Machine](/experiments/drum_machine.spi) / [Sequencer](/experiments/sequencer.spi)
31+
## [Drum Machine](/experiments/drum_machine.rb) / [Sequencer](/experiments/sequencer.rb)
3232

3333
Drum sequencer (first attempt, and second more general version).
3434

35-
## [Arpeggiator](/experiments/arpeggiator.spi)
35+
## [Arpeggiator](/experiments/arpeggiator.rb)
3636

3737
Arpeggiator inspired by [this](http://codepen.io/jakealbaugh/full/qNrZyw/).
3838

39-
## [Vibrato](/experiments/vibrato.spi)
39+
## [Vibrato](/experiments/vibrato.rb)
4040

4141
Attempt to apply vibrato to a note.
4242

43-
## [MML](/experiments/mml.spi)
43+
## [MML](/experiments/mml.rb)
4444

4545
MML (Music Macro Language) interpreter and player, with some MML for Tetris, Mario and the Star Wars Cantina song.
4646

47-
## [Scope](/experiments/scope.spi) / [Lissajous](/experiments/lissajous.spi)
47+
## [Scope](/experiments/scope.rb) / [Lissajous](/experiments/lissajous.rb)
4848

4949
Making Lissajous figures with the new scope in SP 2.11.
5050

51-
## [Play Helper](/experiments/play-helper.spi)
51+
## [Play Helper](/experiments/play-helper.rb)
5252

5353
Make it easier to play sequences of notes/chords of varying durations.
5454

covers/Take That - Rule the world.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
use_debug false
32
use_bpm 82
43

experiments/arpeggiator.spi renamed to experiments/arpeggiator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
use_debug false
32
use_synth :fm
43
use_bpm 70

experiments/drum_machine.spi renamed to experiments/drum_machine.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
use_debug false
32
use_bpm 120
43

experiments/guitar.spi renamed to experiments/guitar.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- mode: ruby;-*-
2-
3-
# Before running this file, first run helpers/guitar.spi to load the guitar and strum functions
1+
# Before running this file, first run helpers/guitar.rb to load the guitar and strum functions
42

53
use_debug false
64
use_bpm 120

experiments/lissajous.spi renamed to experiments/lissajous.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
use_random_seed 123
32

43
use_synth_defaults attack: 0.1, sustain: 60, release: 0.5, amp: 3

experiments/mml.spi renamed to experiments/mml.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Before running this file, first run helpers/mml.spi to load the mml function
1+
# Before running this file, first run helpers/mml.rb to load the mml function
22

33
use_debug false
44
use_synth :pulse

experiments/play-helper.spi renamed to experiments/play-helper.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- mode: ruby;-*-
2-
3-
# Before running this file, first run helpers/play_helper.spi to load the pl function
1+
# Before running this file, first run helpers/play_helper.rb to load the pl function
42

53
use_bpm 90
64

experiments/scope.spi renamed to experiments/scope.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
# Requires Sonic Pi 2.11+
32
# Open the scope window if not already open
43
# Make sure the Lissajous option is enabled in Prefs:Scope

experiments/sequencer.spi renamed to experiments/sequencer.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- mode: ruby;-*-
2-
3-
# Before running this file, first run helpers/sequencer.spi to load the seq function
1+
# Before running this file, first run helpers/sequencer.rb to load the seq function
42

53
use_bpm 110
64

experiments/vibrato.spi renamed to experiments/vibrato.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
use_debug false
32

43
live_loop :vib do

helpers/guitar.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
# Guitar Strumming - by Emlyn
32
# This tries to work out the guitar (or ukulele etc.) fingering for arbitrary chords (and tuning).
43
# It seems to work reasonably well for basic chords, but is quite naive and probably makes many mistakes.

helpers/mml.spi renamed to helpers/mml.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
# Attempt at a MML parser and player in Sonic Pi
32

43
define :mml do |txt, vol_scale=100|

helpers/play-helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
# Helper for playing tunes more easily.
32
# A bit like play_pattern_timed, but the durations are interspersed with the notes,
43
# so that it's easier to match the notes and durations, and it can also slide/slur between notes.

helpers/sequencer.spi renamed to helpers/sequencer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- mode: ruby;-*-
21
# Drum sequencer
32
# Pass it pairs of samples and patterns (string) and a tick duration.
43
# A space or dot in the pattern represents a rest, and a star plays

0 commit comments

Comments
 (0)