From 6599178e5fede23e9f18e3a12da4eff85bcfb6d9 Mon Sep 17 00:00:00 2001 From: Mustafa Date: Thu, 22 May 2014 10:52:07 -0700 Subject: [PATCH] added custom instrument totorial section --- oregano/Tutorial.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/oregano/Tutorial.md b/oregano/Tutorial.md index 2300697..eff6ad8 100644 --- a/oregano/Tutorial.md +++ b/oregano/Tutorial.md @@ -74,13 +74,18 @@ You can either use a preset instrument or define your own instrument ;; create a custom instrument ;; can use oscilators and envelopes ;; "freq" is the frequency parameter -(make-instrument "my-inst" ([freq 500] [modulaion 20]) - (mul (sin-osc ar modulation 0) +(make-instrument "my-inst" ([freq 500] [mod 20]) + (mul (sin-osc ar mod 0) (sin-osc ar freq 0))) +(define weird-note (play-note "my-inst" 440)) +; change frequency (set-note-param my-note "freq" 808) +; change modulation +(set-note-param my-note "mod" 40) + ```