-
Notifications
You must be signed in to change notification settings - Fork 3
/
self_dot.csd
123 lines (102 loc) · 3.24 KB
/
self_dot.csd
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
; Copyright 2014 Oeyvind Brandtsegg and Axel Tidemann
;
; This file is part of [self.]
;
; [self.] is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License version 3
; as published by the Free Software Foundation.
;
; [self.] is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with [self.]. If not, see <http://www.gnu.org/licenses/>.
<CsoundSynthesizer>
<CsOptions>
;-odac1 -iadc0
;-odac18 -iadc20
; -iadc -d
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1
;#include "cs_python_globals.inc"
#include "ftables.inc"
#include "udos.inc"
;******************************
; DEBUG
instr 1
k1 init 0
k1 = (k1+1)%100
printk2 k1
endin
;******************************
; audio input and housekeeping
; instruments 1-29
#include "input_housekeep.inc"
; ******************************
; instr 31 - 35
; input analysis and recording
#include "input_analyze.inc"
#include "input_recording.inc"
; ******************************
; instr 41-49
; mapping and tests
#include "channel_mapping.inc"
; ******************************
; instr 50-59
; primary synth, resynthesis/imitation
;#include "synth_primary.inc"
; ******************************
; instr 60-69
; self's voice instruments
#include "self_voices.inc"
; ******************************
; instr 70-79
; Playback of secondary associations / memory images of heard sounds
; #include "synth_secondary.inc"
#include "secondary_efx.inc"
; ******************************
; instr 91-99
; Master output, self analysis
#include "master_outputs.inc"
;******************************
; DEBUG
instr 100
k1 init 0
k1 = (k1+1)%100
printk2 k1+9900, 30
endin
</CsInstruments>
<CsScore>
; run for N sec
#define SCORELEN # 604800 # ; 604800 secs is one week
;#define SCORELEN # 15 #
;i1 0 $SCORELEN ; debug
i2 0 .1 ; init chn values
i4 0 $SCORELEN ; audio input
i11 0 $SCORELEN ; panalyze, merge left and right input
i21 0 .1 1 ; initialize input level
i22 0 .1 "inputNoisefloor" -20 ; initialize noise floor
i31 0 $SCORELEN ; analysis
i77 0 $SCORELEN ; delay for secondary associations playback
i78 0 $SCORELEN ; reverb for secondary associations playback
i79 0 $SCORELEN ; mixer for secondary associations playback
i93 0 $SCORELEN ; ambient sound reverb
i99 0 -1 ; master out
;i100 0 $SCORELEN ; debug
;instr, start, soundfile, segstart, segend, amp, maxamp, voiceChannel, delaySend, reverbSend, speed)
;i 61 0 1 "./memory_recordings/2014_08_07_15_15_54.wav" 0 0 -3 0.9 1 -96 -96 1
/*
i 90 3 1 "./memory_recordings/2014_08_07_15_15_54.wav"
i 90 6 1 "./memory_recordings/2014_08_07_15_15_54.wav"
i 90 9 1 "./memory_recordings/2014_08_07_15_15_54.wav"
i 90 12 1 "./memory_recordings/2014_08_07_15_15_54.wav"
i 90 15 1 "./memory_recordings/2014_08_07_15_15_54.wav"
*/
</CsScore>
</CsoundSynthesizer>