Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A small language on Sonic Pi with similar syntax to TidalCycles

License

NotificationsYou must be signed in to change notification settings

siaflab/petal

Repository files navigation

Petal logo

About

Petal is a small language onSonic Pi with similar syntax toTidalCycles.

The primal motivation of this project is creating a language suitable for ourtelecoding live performance ofspace-moere atSIAF2017.

Requirements

Sonic Pi v2.10 or later (v2.10, v2.11.1, v3.0.1, v3.1.0, v3.3.1)

Installation

Download zip file fromRelease Page and extract it.

Usage

Open an empty Sonic Pi buffer, type in the following code and hitRun.

require"~/petal/petal.rb"# the path you extract the filed1'bd'

Tutorial

Petal: the guide

Examples

My demo

https://twitter.com/kn1kn1/status/881498461635461121

require"~/petal/petal.rb"cps0.55d1":bd_klub(11,16)",amp:3d2":bd_haus(6,16)",amp:4d3"hh(13,16)",n:0,amp:4,rate:'rand -1 1',pan:'rand -1 1'd4"if(5,16)",n:'irand 64',amp:3d5"if(11,16,2)",n:'irand 64',rate:'rand -1 1',pan:'rand -0.2 0.2',amp:3

https://twitter.com/papa_oom_mowmow/status/903943411052552193

require"~/petal/petal.rb"cps2.5/6use_bpmget_bpm *2live_loop:pauldod1"hh*2 808:2(3,4) ~ ~"with_fx:echo,phase:[2.5,1.0,0.5].ring.tick /6,mix:1dowith_fx:krush,cutoff:90dod2"[bd d d ~] cp:3"endendsleep16endlive_loop:ringodosleep4endlive_loop:john,sync::ringodouse_random_seed100032.timesdowith_fx:lpf,cutoff:60dowith_fx:slicer,amp_min:0.4,wave:2dosynth:saw,note:(chord:d3,:augmented,num_octaves:3).choose,release:4.5unlessone_in3sleep0.25endendendendlive_loop:chris,sync::ringodosleep[0,4].choosewith_fx:echo,decay:[8,12].choose,phase:[0.25,0.5].choosedosample:drum_splash_hard,rate: -1,amp:0.3,lpf:110endsleep8end

My livecoding performance at Algorave Tokyo 2018 August

https://twitter.com/h3xl3r/status/1031194838874509312

# Algorave Tokyo 2018-08-19#  Kenichi Kanai @kn1kn1require"~/petal/petal.rb";cps1;d9;use_bpmget_bpmlive_loop:l5,sync::d0dowith_fx:pitch_shift,pitch:12,window_size:[0.001,0.005,0.01].choosedowith_fx:distortiondod1"tech(11,16)",slow:2,rate:1,amp:1,n:"irand 64"d2"sf(7,16,1)",slow:2,rate:1,amp:0.5,n:"irand 64",pan:"rand -0.5 0.5"d4"peri(3,16,1)",slow:2,rate:1,amp:0.5,n:"irand 64",pan:"rand -0.5 0.5"d5"perc(3,16,2)",slow:2,rate:1,amp:0.5,n:"irand 64",pan:"rand -0.5 0.5"d6"ifdrums(9,16,2)",slow:2,rate:1,amp:0.75,n:"irand 64",pan:"rand -0.5 0.5"d7"jazz(3,16,1)",slow:2,rate:1,amp:0.5,n:"irand 64",pan:"rand -0.5 0.5"d8"ul(3,16,3)",slow:2,rate:1,amp:0.5,n:"irand 64",pan:"rand -0.5 0.5"d3:bd_haus,slow:4endsleep7endend

Seehttps://github.com/kn1kn1/algorave.tokyo_2018-aug-19 for more code.

Some code from our live performance ofspace-moere.

space-moere #0 - Balloon

require"~/petal/petal.rb"d1"outdoor:2/2",rate:"rand -1 -0.125"

space-moere #1 - Landing

require"~/petal/petal.rb"cps0.55d1":bd_haus*4"d2"sid(11,16,2)",n:'irand 1 11'

space-moere #2 - Clouds

require"~/petal/petal.rb"cps0.55d1":bd_klub(12,32) :bd_klub(12,32)",rate:"1.5 1",slow:8d2"ul(11,16,3)",n:'irand 9'

space-moere #3 - Outer

require"~/petal/petal.rb"cps0.55d1"d(7,8,1)",n:'irand 3'

About

A small language on Sonic Pi with similar syntax to TidalCycles

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp