-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathes-ringtone
More file actions
45 lines (29 loc) · 995 Bytes
/
Copy pathes-ringtone
File metadata and controls
45 lines (29 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# python code
# script_name: MUSICCODE RINGTONE
#
# author: Alyssa Hoang
# description: Upbeat and repeating ringtone
#
from earsketch import *
init()
setTempo(125)
classicFade = TECHNO_CLUBRICH_PAD_002
drumBuild = CIARA_SET_DRUMBEAT_2
boop = RD_WORLD_PERCUSSION_DRUMPART_4
transition = HOUSE_BREAK_FILL_003
overStart = 1
beatPattern = "-------00000000-"
setEffect(3, VOLUME, GAIN, 5, 9)
setEffect(4, VOLUME, GAIN, 5, 10)
def base(startMeasure, endMeasure):
fitMedia(classicFade, 1, startMeasure, (endMeasure - 1.4))
fitMedia(drumBuild, 2, (startMeasure + 4), (endMeasure - 1.4))
fitMedia(boop, 3, (startMeasure + 4), (endMeasure - 1.4))
fitMedia(boop, 4, (endMeasure - 2), endMeasure)
makeBeat(transition, 5, (endMeasure - 2.2), beatPattern)
for x in [14.4, 27.8, 41.2]:
setEffect(1, VOLUME, GAIN, -15, (overStart + 4), -15, (overStart + 13))
setEffect(1, VOLUME, GAIN, -40, overStart, -18, (overStart + 4))
base(overStart, x)
overStart = x
finish()