This repository was archived by the owner on Jul 27, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathfunction-tables.orc
More file actions
103 lines (86 loc) · 3.42 KB
/
Copy pathfunction-tables.orc
File metadata and controls
103 lines (86 loc) · 3.42 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//trans rights
//Copyright © 2021 Amy Universe
//This work is free. You can redistribute it and/or modify it under the
//terms of the Do What The Fuck You Want To Public License, Version 2,
//as published by Sam Hocevar. See the COPYING file for more details.
/*
iRamp ftgenonce 0,0,2^14,7, -1,2^14,1
iTanh ftgenonce 0,0,2^14,"tanh", -5, 5, 0
iSaw ftgenonce 0,0,2^14,7, 0,2^13,1,0,-1,2^13,0
iSqur ftgenonce 0,0,2^14,7, 1,2^13,1,0,-1,2^13,-1
iSin ftgenonce 0,0,2^14,10, 1
iCos ftgenonce 0,0,2^14,11, 1
iWav ftgenonce 0,0,2^18,9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
816,0.125,0, 1166,0.062,0, 1564,0.031,0, 1910,0.016,0
*/
;dorian #4 (ukrainian dorian)
iscaledegrees = 7
itotalsize = iscaledegrees*7
iinterval = 2 ;ratio range covered before repeating (2 = 1 octave)
ibasefreq = cpspch(6) ;cpspch(8) = c4
ibaseindex = 0 ;index 0 will be ibasefreq
giud7 ftgen 0,0,-itotalsize,-51, iscaledegrees,iinterval,ibasefreq,ibaseindex,
2^(0/12),2^(2/12),2^(3/12),2^(6/12),2^(7/12),2^(9/12),2^(10/12)
; ratios (the numirators are the scale notes in this case 0=c ... 11=b)
;4 octaves
giud4 ftgen 0,0,-7*4,-51, 7,2,cpspch(6),0,
2^(0/12),2^(2/12),2^(3/12),2^(6/12),2^(7/12),2^(9/12),2^(10/12)
;natural minor (6 octaves)
gicm6 ftgen 0,0,-7*6,-51, 7,2,cpspch(6),0,
2^(0/12),2^(2/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;4 octaves
gicm4 ftgen 0,0,-7*4,-51, 7,2,cpspch(6),0,
2^(0/12),2^(2/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;2 octaves
gicm2 ftgen 0,0,-7*2,-51, 7,2,cpspch(6),0,
2^(0/12),2^(2/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;spanish mode
gism6 ftgen 0,0,-7*6,-51, 7,2,cpspch(6),0,
2^(0/12),2^(1/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;4 octaves
gism4 ftgen 0,0,-7*4,-51, 7,2,cpspch(6),0,
2^(0/12),2^(1/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;2 octaves
gism2 ftgen 0,0,-7*2,-51, 7,2,cpspch(6),0,
2^(0/12),2^(1/12),2^(3/12),2^(5/12),2^(7/12),2^(8/12),2^(10/12)
;31-tet
iscaledegrees = 31
itotalsize = iscaledegrees*4
iinterval = 2
ibasefreq = cpspch(6) ;cpspch(8) = c4
ibaseindex = 0
gi31tet4 ftgen 0,0,-itotalsize,-51, iscaledegrees,iinterval,ibasefreq,ibaseindex,
2^(00/31),2^(01/31),2^(02/31),2^(03/31),
2^(04/31),2^(05/31),2^(06/31),2^(07/31),
2^(08/31),2^(09/31),2^(10/31),2^(11/31),
2^(12/31),2^(13/31),2^(14/31),2^(15/31),
2^(16/31),2^(17/31),2^(18/31),2^(19/31),
2^(20/31),2^(21/31),2^(22/31),2^(23/31),
2^(24/31),2^(25/31),2^(26/31),2^(27/31),
2^(28/31),2^(29/31),2^(30/31)
;2 octaves
gi31tet2 ftgen 0,0,-31*2,-51, 31,2,cpspch(6),0,
2^(00/31),2^(01/31),2^(02/31),2^(03/31),
2^(04/31),2^(05/31),2^(06/31),2^(07/31),
2^(08/31),2^(09/31),2^(10/31),2^(11/31),
2^(12/31),2^(13/31),2^(14/31),2^(15/31),
2^(16/31),2^(17/31),2^(18/31),2^(19/31),
2^(20/31),2^(21/31),2^(22/31),2^(23/31),
2^(24/31),2^(25/31),2^(26/31),2^(27/31),
2^(28/31),2^(29/31),2^(30/31)
;chromatic 12 tone (10 octaves, starting at c0)
gi12tet ftgen 0,0,-12*10,-51, 12,2,cpspch(4),0,
2^(0/12),2^(1/12),2^(2/12),2^(3/12),2^(4/12),2^(5/12),
2^(6/12),2^(7/12),2^(8/12),2^(9/12),2^(10/12),2^(11/12)
;ramp wave (for bit-crushing)
giframp ftgen 0,0,64,7, -1,64,1
;tanh function for distortion
giftanh ftgen 0,0,1024,"tanh", -5, 5, 0
;sawtooth wave
gifsaw ftgen 0,0,2^13,7, 0,2^12,1,0,-1,2^12,0
;square wave (why though? can't we just make this like 2 points long?)
gifsqur ftgen 0,0,2^13,7, 1,2^12,1,0,-1,2^12,-1
;sine wave
gifsin ftgen 0,0,2^13,10,1
;cosine wave
gifcos ftgen 0,0,2^14,11,1