Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Sample
- sl = "C:/Users/Pc/Desktop/Prjoects/sample/First Album/"
- x = sl + "fl studio.wav"
- ending = sl + "end.wav"
- #Timing
- #y = start
- #z = end
- y = 0
- z = 1
- #Rate
- r = 1
- #Offset
- o = 0
- define :randomseed do |a|
- use_random_seed a
- puts a
- end
- define :picksample do
- x = sl + samples.choose
- end
- define :picktime do |ymin,ymax,zmin,zmax|
- y = rrand(ymin,ymax)
- z = rrand(zmin,zmax)
- end
- define :pickrate do |rmin,rmax|
- r = rrand(rmin,rmax)
- end
- define :playnoise do |a, pan|
- randomseed a
- #picksample
- picktime 0, 1, 0, 1
- pickrate 0.2, 1
- sample x, start: y, finish: z, rate: r
- sleep sample_duration(x, start: y, finish: z) / r
- end
- define :playnoiseoverride do |pan, a, b, c|
- sample x, start: a, finish: b, rate: c
- sleep sample_duration(x, start: a, finish: b) / c
- end
- with_fx :bitcrusher, bits: 12, sample_rate: 14000 do
- with_fx :distortion, distort: 0.1 do
- with_fx :reverb, room: 0.7, damp: 1 do
- playnoise 5, 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement