add Pattern.tune with tunejs + example tune
This commit is contained in:
parent
a1fa306cae
commit
0792ef7288
6 changed files with 289 additions and 0 deletions
|
|
@ -458,3 +458,30 @@ export const barryHarris = `piano()
|
|||
.slow(2)
|
||||
.tone(p.toDestination()))
|
||||
`;
|
||||
|
||||
export const jemblung = `() => {
|
||||
const delay = new FeedbackDelay(1/8, .6).chain(vol(0.15), out());
|
||||
const snare = noise({type:'white',...adsr(0,0.2,0)}).chain(lowpass(5000),vol(1.8),out());
|
||||
const s = polysynth().set({...osc('sawtooth4'),...adsr(0.01,.2,.6,0.2)}).chain(vol(.23).connect(delay),out());
|
||||
return stack(
|
||||
stack(
|
||||
"0 1 4 [3!2 5]".edit(
|
||||
// chords
|
||||
x=>x.add("0,3").len("0.05!3 0.02"),
|
||||
// bass
|
||||
x=>x.add("-8").struct("x*8").len(0.1)
|
||||
),
|
||||
// melody
|
||||
"12 11*3 12 ~".len(0.005)
|
||||
)
|
||||
.add("<0 1>").mul(5/5).round().tune("jemblung2").tone(s),
|
||||
//.add("<0 1>").mul(22/5).round().xen("22edo").tone(s),
|
||||
//.add("<0 1>").mul(12/5).round().xen("12edo").tone(s),
|
||||
// kick
|
||||
"[c2 ~]*2".len(0.05).tone(membrane().chain(out())),
|
||||
// snare
|
||||
"[~ c1]*2".early(0.001).tone(snare),
|
||||
// hihat
|
||||
"c2*8".tone(noise().chain(highpass(6000),vol(0.5).connect(delay),out())),
|
||||
).slow(3)
|
||||
}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue