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
|
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 64
nchnls = 2
0dbfs = 1
seed 0
#include "/twist/twist.udo"
gStransform = "twst_tf_fftpitchscale";, "twst_tf_morph"
SchanSet[] fillarray "timescale", "pitchscale", "winsize", "randwin", "overlap", "wintype", "shift", "amp", "freq", "fftsize", "otinstchan", "instanceindex", "otinststart", "otinstend", "pvresmode", "time", "scale", "formants"
ichanset[] fillarray 1.5, 1, 4410, 441, 4, 0, 900, 0, 1, 512, -1, 1, 0, 1, 0, 0.4, 2, 0
index = 0
while (index < lenarray(ichanset)) do
chnset ichanset[index], sprintf("%s_%s", gStransform, SchanSet[index])
index += 1
od
gSfile1 = "d:/temp/kord.wav"
gSfile2 = "d:/temp/drive.wav"
instr load1
gitwst_instanceindex = 0
schedule("twst_loadfile", 0, 1, 0, gSfile1)
endin
instr load2
gitwst_instanceindex = 1
schedule("twst_loadfile", 0, 1, 0, gSfile2)
endin
instr boot
schedule("load1", 0, 1)
schedule("load2", 1, 1)
schedule("audition", 2, 2)
endin
instr apply
schedule("twst_commit", 0, -1, 0, 0, 1, -1, gStransform, 0, 0, 0)
turnoff
endin
instr playback
schedule("twst_audition", 0, p3, 0, 0, 1, -1, "", 0)
turnoff
endin
instr audition
gitwst_instanceindex = 0
schedule("twst_audition", 0, p3, 0, 0, 1, -1, gStransform, 0)
turnoff
endin
/*
gStransform = "twst_tf_freqshift1"
gStransform = "twst_tfi_sndwarp"
SchanSet[] fillarray "timescale", "pitchscale", "winsize", "randwin", "overlap", "wintype", "shift"
ichanset[] fillarray 1.5, 1, 4410, 441, 4, 0, 900
index = 0
while (index < lenarray(ichanset)) do
chnset ichanset[index], sprintf("%s_%s", gStransform, SchanSet[index])
index += 1
od
gSfile = "d:/temp/sinetest.wav"
instr boot
schedule("twst_loadfile", 0, 1, 0, gSfile)
schedule("audition", 1, 2)
schedule("apply", 3, 1)
schedule("playback", 4, 2)
endin
instr apply
schedule("twst_commit", 0, -1, 0, 0, 1, -1, gStransform, 0, 0, 0)
turnoff
endin
instr playback
schedule("twst_audition", 0, p3, 0, 0, 1, -1, "", 0)
turnoff
endin
instr audition
schedule("twst_audition", 0, p3, 0, 0, 1, -1, gStransform, 0)
turnoff
endin
*/
</CsInstruments>
<CsScore>
i"boot" 0 10
</CsScore>
</CsoundSynthesizer>
|