Skip to content

Instantly share code, notes, and snippets.

View nischalshrestha's full-sized avatar
👋
Haven't been open sourcing but will be back soon!

Nischal Shrestha nischalshrestha

👋
Haven't been open sourcing but will be back soon!
View GitHub Profile
@nischalshrestha
nischalshrestha / auto_dubstep.rb
Last active May 25, 2023 21:47 — forked from xavriley/auto_dubstep.rb
Auto generating dubstep with Sonic Pi
# DUBSTEP
# Combines ideas from my other gists
current_bpm = 140.0
use_bpm current_bpm
# WOBBLE BASS
define :wob do
use_synth :saw
lowcut = note(:E1) # ~ 40Hz
@nischalshrestha
nischalshrestha / hopeful.rb
Last active March 19, 2023 05:25
Sonic Pi Jam
use_bpm 120
# You will need Kount Drums Volume 4 sample 😬
# get it here: https://thekount.sellfy.store/p/kount-drums-volume-4/
cymbols = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Highhats and Cymbals"
snares = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Snares"
note_value = 0.5 # eighth notes
@nischalshrestha
nischalshrestha / split_base_pipe_naive.R
Last active July 10, 2023 23:37
Meta explorations in R
library(tidyverse)
string_code <-
"
diamonds |>
select(carat, cut, color, clarity, price) |>
group_by(color) |>
summarise(n = n(), price = mean(price))
"
google-cloud-bigquery==1.8.0
pandas==0.25.1
@nischalshrestha
nischalshrestha / open_eye_signal.rb
Last active October 24, 2023 21:22
One Eye Signal cover
# Open Eye Signal cover
# Drum sample pack: https://thekount.sellfy.store/p/kount-drums-volume-4/
kicks = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Kicks"
hh = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Hihats_Cymbals"
snares = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Snares"
percs = "/Users/nischal/Music/Kount Drums Volume 4/One Shot/Percussion"
textures = "/Users/nischal/Music/Kount Drums Volume 4/Textures"
# opening distant sounds
@nischalshrestha
nischalshrestha / shepard_tone.rb
Last active November 7, 2023 00:40
Shepard Tone
# Shepard Tone
start_amp, end_amp = 0, 1
with_fx :reverb, room: 0.8, mix: 0.8 do
with_fx :lpf, cutoff: 100 do
live_loop :shephard do
high = synth :saw, amp: start_amp, amp_slide: 20, notes: [:c5],
note_slide: 30, release: 30
control high, notes: [:c7], amp: end_amp