00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 char header_22050_mono[] = "sr=22050\nkr=2205\nksmps=10\nnchnls=1";
00021 void insert_header22050mo_cb(Fl_Widget*,void* v)
00022 {
00023 EditorWindow* e = (EditorWindow*) v;
00024 int pos = e->editor->insert_position();
00025 textbuf->insert(pos, header_22050_mono);
00026 }
00027
00028 char header_22050_stereo[] = "sr=22050\nkr=2205\nksmps=10\nnchnls=2";
00029 void insert_header22050ste_cb(Fl_Widget*,void* v)
00030 {
00031 EditorWindow* e = (EditorWindow*) v;
00032 int pos = e->editor->insert_position();
00033 textbuf->insert(pos, header_22050_stereo);
00034 }
00035
00036 char header_44100_mono[] = "sr=44100\nkr=4410\nksmps=10\nnchnls=1";
00037 void insert_header44100mo_cb(Fl_Widget*,void* v)
00038 {
00039 EditorWindow* e = (EditorWindow*) v;
00040 int pos = e->editor->insert_position();
00041 textbuf->insert(pos, header_44100_mono);
00042 }
00043
00044 char header_44100_stereo[] = "sr=44100\nkr=4410\nksmps=10\nnchnls=2";
00045 void insert_header44100ste_cb(Fl_Widget*,void* v)
00046 {
00047 EditorWindow* e = (EditorWindow*) v;
00048 int pos = e->editor->insert_position();
00049 textbuf->insert(pos, header_44100_stereo);
00050 }
00051
00052 char header_48000_mono[] = "sr=48000\nkr=4800\nksmps=10\nnchnls=1";
00053 void insert_header48000mo_cb(Fl_Widget*,void* v)
00054 {
00055 EditorWindow* e = (EditorWindow*) v;
00056 int pos = e->editor->insert_position();
00057 textbuf->insert(pos, header_48000_mono);
00058 }
00059
00060 char header_48000_stereo[] = "sr=48000\nkr=4800\nksmps=10\nnchnls=2";
00061 void insert_header48000ste_cb(Fl_Widget*,void* v)
00062 {
00063 EditorWindow* e = (EditorWindow*) v;
00064 int pos = e->editor->insert_position();
00065 textbuf->insert(pos, header_48000_stereo);
00066 }
00067
00068 char conversions[] = "ifrq = cpspch(p5)\niamp = ampdb(p4)";
00069 void insert_conversions_cb(Fl_Widget*,void* v)
00070 {
00071 EditorWindow* e = (EditorWindow*) v;
00072 int pos = e->editor->insert_position();
00073 textbuf->insert(pos, conversions);
00074 }
00075
00076
00077
00078 char gen01[] = "f1 0 0 1 \"file.wav\" 0 0 0";
00079 void insert_gen01_cb(Fl_Widget*,void* v)
00080 {
00081 EditorWindow* e = (EditorWindow*) v;
00082 int pos = e->editor->insert_position();
00083 textbuf->insert(pos, gen01);
00084 }
00085
00086 char gen02[] = "f1 0 16 -2 0 1 2 3 4 5 6 7 8 9 10 11 0";
00087 void insert_gen02_cb(Fl_Widget*,void* v)
00088 {
00089 EditorWindow* e = (EditorWindow*) v;
00090 int pos = e->editor->insert_position();
00091 textbuf->insert(pos, gen02);
00092 }
00093
00094 char gen03[] = "f1 0 1025 3 -1 1 5 4 3 2 2 1 gen03";
00095 void insert_gen03_cb(Fl_Widget*,void* v)
00096 {
00097 EditorWindow* e = (EditorWindow*) v;
00098 int pos = e->editor->insert_position();
00099 textbuf->insert(pos, gen03);
00100 }
00101
00102 char gen04[] = "f1 0 512 4 1 1";
00103 void insert_gen04_cb(Fl_Widget*,void* v)
00104 {
00105 EditorWindow* e = (EditorWindow*) v;
00106 int pos = e->editor->insert_position();
00107 textbuf->insert(pos, gen04);
00108 }
00109
00110 char gen06[] = "f1 0 65 6 0 16 .5 16 1 16 0 16 -1";
00111 void insert_gen06_cb(Fl_Widget*,void* v)
00112 {
00113 EditorWindow* e = (EditorWindow*) v;
00114 int pos = e->editor->insert_position();
00115 textbuf->insert(pos, gen06);
00116 }
00117
00118 char gen07[] = "f1 0 256 7 0 128 1 0 -1 128 0";
00119 void insert_gen07_cb(Fl_Widget*,void* v)
00120 {
00121 EditorWindow* e = (EditorWindow*) v;
00122 int pos = e->editor->insert_position();
00123 textbuf->insert(pos, gen07);
00124 }
00125
00126 char gen08[] = "f1 0 65 8 0 16 0 16 1 16 0 16 0";
00127 void insert_gen08_cb(Fl_Widget*,void* v)
00128 {
00129 EditorWindow* e = (EditorWindow*) v;
00130 int pos = e->editor->insert_position();
00131 textbuf->insert(pos, gen08);
00132 }
00133
00134 char gen09[] = "f1 0 1024 9 1 3 0 3 1 0 9 .3333 180";
00135 void insert_gen09_cb(Fl_Widget*,void* v)
00136 {
00137 EditorWindow* e = (EditorWindow*) v;
00138 int pos = e->editor->insert_position();
00139 textbuf->insert(pos, gen09);
00140 }
00141
00142 char gen10[] = "f1 0 4096 10 1";
00143 void insert_gen10_cb(Fl_Widget*,void* v)
00144 {
00145 EditorWindow* e = (EditorWindow*) v;
00146 int pos = e->editor->insert_position();
00147 textbuf->insert(pos, gen10);
00148 }
00149
00150 char gen11[] = "f1 0 2049 11 4 1 1";
00151 void insert_gen11_cb(Fl_Widget*,void* v)
00152 {
00153 EditorWindow* e = (EditorWindow*) v;
00154 int pos = e->editor->insert_position();
00155 textbuf->insert(pos, gen11);
00156 }
00157
00158 char gen12[] = "f1 0 2049 -12 20";
00159 void insert_gen12_cb(Fl_Widget*,void* v)
00160 {
00161 EditorWindow* e = (EditorWindow*) v;
00162 int pos = e->editor->insert_position();
00163 textbuf->insert(pos, gen12);
00164 }
00165
00166 char gen13[] = "f1 0 1025 13 1 1 0 5 0 3 0 1";
00167 void insert_gen13_cb(Fl_Widget*,void* v)
00168 {
00169 EditorWindow* e = (EditorWindow*) v;
00170 int pos = e->editor->insert_position();
00171 textbuf->insert(pos, gen13);
00172 }
00173
00174 char gen15[] = "f# time size 15 xint xamp h0 phs0 h1 phs1 h2 phs2 . . .";
00175 void insert_gen15_cb(Fl_Widget*,void* v)
00176 {
00177 EditorWindow* e = (EditorWindow*) v;
00178 int pos = e->editor->insert_position();
00179 textbuf->insert(pos, gen15);
00180 }
00181
00182 char gen17[] = "f 1 0 128 -17 0 1 12 2 24 3 36 4 48 5 60 6 72 7 84 8";
00183 void insert_gen17_cb(Fl_Widget*,void* v)
00184 {
00185 EditorWindow* e = (EditorWindow*) v;
00186 int pos = e->editor->insert_position();
00187 textbuf->insert(pos, gen17);
00188 }
00189
00190 char gen19[] = "f1 0 1024 19 .5 1 270 1";
00191 void insert_gen19_cb(Fl_Widget*,void* v)
00192 {
00193 EditorWindow* e = (EditorWindow*) v;
00194 int pos = e->editor->insert_position();
00195 textbuf->insert(pos, gen19);
00196 }
00197
00198 char gen20[] = "f 1 0 8192 20 1 1";
00199 void insert_gen20_cb(Fl_Widget*,void* v)
00200 {
00201 EditorWindow* e = (EditorWindow*) v;
00202 int pos = e->editor->insert_position();
00203 textbuf->insert(pos, gen20);
00204 }
00205
00206 char gen23[] = "f # time size -23 \"filename.txt\"";
00207 void insert_gen23_cb(Fl_Widget*,void* v)
00208 {
00209 EditorWindow* e = (EditorWindow*) v;
00210 int pos = e->editor->insert_position();
00211 textbuf->insert(pos, gen23);
00212 }
00213
00214 char gen25[] = "f 1 0 257 25 0 0.001 100 1 200 .001 256 0.001";
00215 void insert_gen25_cb(Fl_Widget*,void* v)
00216 {
00217 EditorWindow* e = (EditorWindow*) v;
00218 int pos = e->editor->insert_position();
00219 textbuf->insert(pos, gen25);
00220 }
00221
00222 char gen27[] = "f 1 0 257 27 0 0 100 1 200 -1 256 0";
00223 void insert_gen27_cb(Fl_Widget*,void* v)
00224 {
00225 EditorWindow* e = (EditorWindow*) v;
00226 int pos = e->editor->insert_position();
00227 textbuf->insert(pos, gen27);
00228 }
00229
00230 char gen28[] = "f 1 0 0 28 \"move\"";
00231 void insert_gen28_cb(Fl_Widget*,void* v)
00232 {
00233 EditorWindow* e = (EditorWindow*) v;
00234 int pos = e->editor->insert_position();
00235 textbuf->insert(pos, gen28);
00236 }
00237
00238 char cs_tags[] = "<CsoundSynthesizer>\n<CsOptions>\n -o myfile.wav -W\n</CsOptions>\n<CsInstruments>\n</CsInstruments>\n<CsScore>\n</CsScore>";
00239 void insert_cstags_cb(Fl_Widget*,void* v)
00240 {
00241 EditorWindow* e = (EditorWindow*) v;
00242 int pos = e->editor->insert_position();
00243 textbuf->insert(pos, cs_tags);
00244 }
00245