-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from scarpe-team/bloopsaphone
Bloopsaphone
- Loading branch information
Showing
12 changed files
with
264 additions
and
9 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
require 'bloops' | ||
|
||
# the song object | ||
b = Bloops.new | ||
b.tempo = 320 | ||
|
||
# an instrument | ||
saw = b.sound Bloops::SAWTOOTH | ||
saw.test | ||
|
||
# assign a track to the song | ||
b.tune saw, "c5 c6 b4 b5 d5 d6 e5 e6" | ||
|
||
# make it go | ||
b.play | ||
sleep 1 while !b.stopped? | ||
|
||
# a percussion | ||
beat = b.sound Bloops::NOISE | ||
beat.repeat = 0.6 | ||
beat2 = b.sound Bloops::NOISE | ||
beat2.repeat = 0.2 | ||
beat3 = b.sound Bloops::SQUARE | ||
beat3.sustain = 0.25 | ||
beat3.decay = 0.2 | ||
beat3.slide = 0.2 | ||
beat3.square = 0.3 | ||
beat3.vibe = 0.25 | ||
beat3.vspeed = 0.25 | ||
|
||
# assign a track to the song | ||
b.tune beat, "4 4 4 b4 4 d5 4 e5" | ||
b.tune beat2, "c2 4 c2 4 c2 4 c2 4" | ||
b.tune beat3, "4 4 4 4 4 c2 c5 4" | ||
|
||
# make it go | ||
loop do | ||
b.play | ||
saw.test | ||
sleep 0.02 while !b.stopped? | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
# | ||
# -)= Cheeky Drat (=- | ||
# composed by freQvibez | ||
# [within TextMate] | ||
# exclusively for _why's BloopSaphone | ||
# | ||
# from Farbrausch with ♥ | ||
# | ||
|
||
require 'bloops' | ||
|
||
b = Bloops.new | ||
b.tempo = 172 | ||
|
||
bass = b.sound Bloops::SQUARE | ||
bass.volume = 0.4 | ||
bass.sustain = 0.1 | ||
bass.attack = 0.1 | ||
bass.decay = 0.3 | ||
|
||
base = b.sound Bloops::SQUARE | ||
base.volume = 0.35 | ||
base.punch = 0.3 | ||
base.sustain = 0.1 | ||
base.decay = 0.3 | ||
base.phase = 0.2 | ||
base.lpf = 0.115 | ||
base.resonance = 0.55 | ||
base.slide = -0.4 | ||
|
||
snare = b.sound Bloops::NOISE | ||
snare.attack = 0.075 | ||
snare.sustain = 0.01 | ||
snare.decay = 0.33 | ||
snare.hpf = 0.55 | ||
snare.resonance = 0.44 | ||
snare.dslide = -0.452 | ||
|
||
chord = b.sound Bloops::SQUARE | ||
chord.volume = 0.275 | ||
chord.attack = 0.05 | ||
chord.sustain = 0.6 | ||
chord.decay = 0.9 | ||
chord.phase = 0.35 | ||
chord.psweep = -0.25 | ||
chord.vibe = 0.0455 | ||
chord.vspeed = 0.255 | ||
|
||
lead = b.sound Bloops::SINE | ||
lead.volume = 0.45 | ||
lead.attack = 0.3 | ||
lead.sustain = 0.15 | ||
lead.decay = 0.8 | ||
lead.vibe = 0.035 | ||
lead.vspeed = 0.345 | ||
lead.vdelay = -0.5 | ||
lead.hpf = 0.2 | ||
lead.hsweep = -0.05 | ||
lead.resonance = 0.55 | ||
lead.phase = 0.4 | ||
lead.psweep = -0.05 | ||
|
||
b.tune bass, %q^ | ||
8 4a1 8a 8a 4a 4a 4c2 9c 7c 4c 8e |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1 | ||
1 1 | ||
1 1 1 | ||
1 1 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
2 1 2e4 2 1 2d4 | ||
^ | ||
|
||
b.tune lead, %q^ | ||
1 4 | ||
1 1 1 1 | ||
1 1 1 1 1 1 | ||
1 1 1 1 | ||
2g3 1a4 2 | ||
2c5 1e4 2 1 | ||
1a4 2 4 2e4 1d4 2 | ||
2a3 1b4 2 | ||
2d5 2g4 1c5 | ||
1a4 1e5 | ||
1b4 2 4 8 8d4 | ||
2g3 1a4 2 | ||
2c5 1e4 3d4 5g4 | ||
1a4 1e4 | ||
1d4 1 | ||
^ | ||
|
||
while true do | ||
b.play | ||
sleep 0.5 while not b.stopped? | ||
end |
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
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