zita-at1-0.6.0/0000755000175000001440000000000013142674576012052 5ustar fonsuserszita-at1-0.6.0/README0000644000175000001440000000110413142674566012725 0ustar fonsusersSee doc/quickguide.html Version 0.6.0 (09/8/2017) -------------------------- * Maintenance and bugfixes. Version 0.4.0 (15/8/2014) -------------------------- * Bugfixes, added MIDI channel selection. Version 0.2.0 (10/12/2010) -------------------------- * The resampler now uses cubic interpolation (at twice the sample rate for 44.1 and 48 kHz), giving even cleaner output. * The offset control now has 400 steps of exactly 1 cent (1/100 semitone) each, and displays the set value when touched. Default mousewheel step is 10 cents, 1 cent with Shift pressed. zita-at1-0.6.0/source/0000755000175000001440000000000013142674323013340 5ustar fonsuserszita-at1-0.6.0/source/jclient.h0000644000175000001440000000446313102127142015134 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __JCLIENT_H #define __JCLIENT_H #include #include #include "retuner.h" class Jclient : public A_thread { public: Jclient (const char *jname, const char *jserv); ~Jclient (void); const char *jname (void) { return _jname; } unsigned int fsize (void) const { return _fsize; } unsigned int fsamp (void) const { return _fsamp; } Retuner *retuner (void) { return _retuner; } void set_notemask (int m) { _notemask = m; } void set_midichan (int c) { _midichan = c; } void clr_midimask (void); int get_noteset (void) { return _retuner->get_noteset (); } int get_midiset (void) { return _midimask; } private: virtual void thr_main (void) {} void init_jack (const char *jname, const char *jserv); void close_jack (void); void jack_shutdown (void); int jack_process (int nframes); void midi_process (int nframes); jack_client_t *_jack_client; jack_port_t *_ainp_port; jack_port_t *_aout_port; jack_port_t *_midi_port; bool _active; const char *_jname; unsigned int _fsamp; unsigned int _fsize; Retuner *_retuner; int _notes [12]; int _notemask; int _midimask; int _midichan; static void jack_static_shutdown (void *arg); static int jack_static_process (jack_nframes_t nframes, void *arg); }; #endif zita-at1-0.6.0/source/jclient.cc0000644000175000001440000001002713102127137015267 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include #include #include #include "jclient.h" #include "global.h" Jclient::Jclient (const char *jname, const char *jserv) : A_thread ("jclient"), _jack_client (0), _active (false), _jname (0) { init_jack (jname, jserv); } Jclient::~Jclient (void) { if (_jack_client) close_jack (); } void Jclient::init_jack (const char *jname, const char *jserv) { jack_status_t stat; int opts; opts = JackNoStartServer; if (jserv) opts |= JackServerName; if ((_jack_client = jack_client_open (jname, (jack_options_t) opts, &stat, jserv)) == 0) { fprintf (stderr, "Can't connect to JACK.\n"); exit (1); } jack_on_shutdown (_jack_client, jack_static_shutdown, (void *) this); jack_set_process_callback (_jack_client, jack_static_process, (void *) this); if (jack_activate (_jack_client)) { fprintf(stderr, "Can't activate JACK.\n"); exit (1); } _jname = jack_get_client_name (_jack_client); _fsamp = jack_get_sample_rate (_jack_client); _fsize = jack_get_buffer_size (_jack_client); _ainp_port = jack_port_register (_jack_client, "in", JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0); _aout_port = jack_port_register (_jack_client, "out", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0); _midi_port = jack_port_register (_jack_client, "pitch", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0); _retuner = new Retuner (_fsamp); _notemask = 0xFFF; _midichan = -1; clr_midimask (); _active = true; } void Jclient::close_jack () { jack_deactivate (_jack_client); jack_client_close (_jack_client); delete _retuner; } void Jclient::jack_static_shutdown (void *arg) { ((Jclient *) arg)->jack_shutdown (); } int Jclient::jack_static_process (jack_nframes_t nframes, void *arg) { return ((Jclient *) arg)->jack_process (nframes); } void Jclient::jack_shutdown (void) { send_event (EV_EXIT, 1); } void Jclient::clr_midimask (void) { int i; for (i = 0; i < 12; i++) _notes [i] = 0; _midimask = 0; } void Jclient::midi_process (int nframes) { int i, b, n, t, v; void *p; jack_midi_event_t E; p = jack_port_get_buffer (_midi_port, nframes); i = 0; while (jack_midi_event_get (&E, p, i) == 0) { t = E.buffer [0]; n = E.buffer [1]; v = E.buffer [2]; if ((_midichan < 0) || ((t & 0x0F) == _midichan)) { switch (t & 0xF0) { case 0x80: case 0x90: if (v && (t & 0x10))_notes [n % 12] += 1; else _notes [n % 12] -= 1; break; } } i++; } _midimask = 0; for (i = 0, b = 1; i < 12; i++, b <<= 1) { if (_notes [i]) _midimask |= b; } } int Jclient::jack_process (int nframes) { float *inpp; float *outp; if (!_active) return 0; inpp = (float *) jack_port_get_buffer (_ainp_port, nframes); outp = (float *) jack_port_get_buffer (_aout_port, nframes); midi_process (nframes); _retuner->set_notemask (_midimask ? _midimask : _notemask); _retuner->process (nframes, inpp, outp); return 0; } zita-at1-0.6.0/source/global.h0000644000175000001440000000201313102127014014727 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __GLOBAL_H #define __GLOBAL_H #define PROGNAME "zita-at1" #define EV_X11 16 #define EV_EXIT 31 #endif zita-at1-0.6.0/source/retuner.h0000644000175000001440000000561013102127153015165 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __RETUNER_H #define __RETUNER_H #include #include class Retuner { public: Retuner (int fsamp); ~Retuner (void); int process (int nfram, float *inp, float *out); void set_refpitch (float v) { _refpitch = v; } void set_notebias (float v) { _notebias = v / 13.0f; } void set_corrfilt (float v) { _corrfilt = (4 * _frsize) / (v * _fsamp); } void set_corrgain (float v) { _corrgain = v; } void set_corroffs (float v) { _corroffs = v; } void set_notemask (int k) { _notemask = k; } int get_noteset (void) { int k; k = _notebits; _notebits = 0; return k; } float get_error (void) { return 12.0f * _error; } private: void findcycle (void); void finderror (void); float cubic (float *v, float a); int _fsamp; int _ifmin; int _ifmax; bool _upsamp; int _fftlen; int _ipsize; int _frsize; int _ipindex; int _frindex; int _frcount; float _refpitch; float _notebias; float _corrfilt; float _corrgain; float _corroffs; int _notemask; int _notebits; int _lastnote; int _count; float _cycle; float _error; float _ratio; float _phase; bool _xfade; float _rindex1; float _rindex2; float *_ipbuff; float *_xffunc; float *_fftTwind; float *_fftWcorr; float *_fftTdata; fftwf_complex *_fftFdata; fftwf_plan _fwdplan; fftwf_plan _invplan; Resampler _resampler; }; #endif zita-at1-0.6.0/source/guiclass.cc0000644000175000001440000000733713102127371015463 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include "guiclass.h" int Pbutt0::handle_press (void) { _state |= 2; return PRESS; } int Pbutt0::handle_relse (void) { _state &= ~2; return NOP; } int Pbutt1::handle_press (void) { _state ^= 1; return PRESS; } int Pbutt1::handle_relse (void) { return NOP; } Rlinctl::Rlinctl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp, int cm, int dd, double vmin, double vmax, double vini) : RotaryCtl (parent, cbobj, cbind, rgeom, xp, yp), _cm (cm), _dd (dd), _vmin (vmin), _vmax (vmax), _form (0) { _count = -1; set_value (vini); } void Rlinctl::get_string (char *p, int n) { if (_form) snprintf (p, n, _form, _value); else *p = 0; } void Rlinctl::set_value (double v) { set_count ((int) floor (_cm * (v - _vmin) / (_vmax - _vmin) + 0.5)); render (); } int Rlinctl::handle_button (void) { return PRESS; } int Rlinctl::handle_motion (int dx, int dy) { return set_count (_rcount + dx - dy); } int Rlinctl::handle_mwheel (int dw) { if (! (_keymod & ShiftMask)) dw *= _dd; return set_count (_count + dw); } int Rlinctl::set_count (int u) { if (u < 0) u= 0; if (u > _cm) u = _cm; if (u != _count) { _count = u; _value = _vmin + u * (_vmax - _vmin) / _cm; _angle = 270.0 * ((double) u / _cm - 0.5); return DELTA; } return 0; } Rlogctl::Rlogctl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp, int cm, int dd, double vmin, double vmax, double vini) : RotaryCtl (parent, cbobj, cbind, rgeom, xp, yp), _cm (cm), _dd (dd), _form (0) { _count = -1; _vmin = log (vmin); _vmax = log (vmax); set_value (vini); } void Rlogctl::get_string (char *p, int n) { if (_form) snprintf (p, n, _form, _value); else *p = 0; } void Rlogctl::set_value (double v) { set_count ((int) floor (_cm * (log (v) - _vmin) / (_vmax - _vmin) + 0.5)); render (); } int Rlogctl::handle_button (void) { return PRESS; } int Rlogctl::handle_motion (int dx, int dy) { return set_count (_rcount + dx - dy); } int Rlogctl::handle_mwheel (int dw) { if (! (_keymod & ShiftMask)) dw *= _dd; return set_count (_count + dw); } int Rlogctl::set_count (int u) { if (u < 0) u= 0; if (u > _cm) u = _cm; if (u != _count) { _count = u; _value = exp (_vmin + u * (_vmax - _vmin) / _cm); _angle = 270.0 * ((double) u / _cm - 0.5); return DELTA; } return 0; } zita-at1-0.6.0/source/mainwin.cc0000644000175000001440000001702413102127144015303 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include #include #include "styles.h" #include "global.h" #include "mainwin.h" Mainwin::Mainwin (X_rootwin *parent, X_resman *xres, int xp, int yp, Jclient *jclient) : A_thread ("Main"), X_window (parent, xp, yp, XSIZE, YSIZE, XftColors [C_MAIN_BG]->pixel), _stop (false), _xres (xres), _jclient (jclient) { X_hints H; char s [256]; int i, j, x, y; _atom = XInternAtom (dpy (), "WM_DELETE_WINDOW", True); XSetWMProtocols (dpy (), win (), &_atom, 1); _atom = XInternAtom (dpy (), "WM_PROTOCOLS", True); sprintf (s, "%s", jclient->jname ()); x_set_title (s); H.position (xp, yp); H.minsize (XSIZE, YSIZE); H.maxsize (XSIZE, YSIZE); H.rname (xres->rname ()); H.rclas (xres->rclas ()); x_apply (&H); x = 20; _bmidi = new Pbutt0 (this, this, B_MIDI, b_midi_img, x, 12); _bmidi->x_map (); bstyle1.size.x = 50; bstyle1.size.y = 20; _bchan = new X_tbutton (this, this, &bstyle1, x - 5, 40, "Omni", 0, B_CHAN); _bchan->x_map (); _midich = 0; _jclient->set_midichan (-1); x = 100; y = 23; _tmeter = new Tmeter (this, x - 20, 53); _tmeter->x_map (); for (i = j = 0; i < 12; i++, j++) { _bnote [i] = new Pbutt1 (this, this, i, b_note_img, x, y); _bnote [i]->set_state (1); _bnote [i]->x_map (); if (j == 4) { x += 20; j++; } else { x += 10; if (j & 1) y += 18; else y -= 18; } } RotaryCtl::init (disp ()); x = 270; _rotary [R_TUNE] = new Rlinctl (this, this, R_TUNE, &r_tune_geom, x, 0, 400, 5, 400.0, 480.0, 440.0); _rotary [R_BIAS] = new Rlinctl (this, this, R_BIAS, &r_bias_geom, x, 0, 270, 5, 0.0, 1.0, 0.5); _rotary [R_FILT] = new Rlogctl (this, this, R_FILT, &r_filt_geom, x, 0, 200, 5, 0.50, 0.02, 0.1); _rotary [R_CORR] = new Rlinctl (this, this, R_CORR, &r_corr_geom, x, 0, 270, 5, 0.0, 1.0, 1.0); _rotary [R_OFFS] = new Rlinctl (this, this, R_OFFS, &r_offs_geom, x, 0, 400, 10, -2.0, 2.0, 0.0); for (i = 0; i < NROTARY; i++) _rotary [i]->x_map (); _textln = new X_textip (this, 0, &tstyle1, 0, 0, 50, 15, 15); _textln->set_align (0); _ttimer = 0; _notes = 0xFFF; _jclient->set_notemask (_notes); _jclient->retuner ()->set_refpitch (_rotary [R_TUNE]->value ()); _jclient->retuner ()->set_notebias (_rotary [R_BIAS]->value ()); _jclient->retuner ()->set_corrfilt (_rotary [R_FILT]->value ()); _jclient->retuner ()->set_corrgain (_rotary [R_CORR]->value ()); _jclient->retuner ()->set_corroffs (_rotary [R_OFFS]->value ()); x_add_events (ExposureMask); x_map (); set_time (0); inc_time (500000); } Mainwin::~Mainwin (void) { RotaryCtl::fini (); } int Mainwin::process (void) { int e; if (_stop) handle_stop (); e = get_event_timed (); switch (e) { case EV_TIME: handle_time (); break; } return e; } void Mainwin::handle_event (XEvent *E) { switch (E->type) { case Expose: expose ((XExposeEvent *) E); break; case ClientMessage: clmesg ((XClientMessageEvent *) E); break; } } void Mainwin::expose (XExposeEvent *E) { if (E->count) return; redraw (); } void Mainwin::clmesg (XClientMessageEvent *E) { if (E->message_type == _atom) _stop = true; } void Mainwin::handle_time (void) { int i, k, s; float v; v = _jclient->retuner ()->get_error (); _tmeter->update (v, v); k = _jclient->retuner ()->get_noteset (); for (i = 0; i < 12; i++) { s = _bnote [i]->state (); if (k & 1) s |= 2; else s &= ~2; _bnote [i]->set_state (s); k >>= 1; } k = _jclient->get_midiset(); if (k) _bmidi->set_state (_bmidi->state () | 1); else _bmidi->set_state (_bmidi->state () & ~1); if (_ttimer) { if (--_ttimer == 0) _textln->x_unmap (); } inc_time (50000); XFlush (dpy ()); } void Mainwin::handle_stop (void) { put_event (EV_EXIT, 1); } void Mainwin::handle_callb (int type, X_window *W, XEvent *E) { PushButton *B; RotaryCtl *R; int k; float v; switch (type) { case X_callback::BUTTON | X_button::PRESS: { X_button *Z = (X_button *) W; XButtonEvent *X = (XButtonEvent *) E; switch (Z->cbid ()) { case B_CHAN: switch (X->button) { case 1: case 4: setchan (1); break; case 3: case 5: setchan (-1); break; } break; } break; } case PushButton::PRESS: B = (PushButton *) W; k = B->cbind (); if (k < B_MIDI) { k = 1 << k; if (B->state () & 1) _notes |= k; else _notes &= ~k; _jclient->set_notemask (_notes); } else if (k == B_MIDI) { _jclient->clr_midimask (); } break; case RotaryCtl::PRESS: R = (RotaryCtl *) W; k = R->cbind (); switch (k) { case R_TUNE: case R_OFFS: showval (k); break; } break; case RotaryCtl::DELTA: R = (RotaryCtl *) W; k = R->cbind (); switch (k) { case R_TUNE: v = _rotary [R_TUNE]->value (); _jclient->retuner ()->set_refpitch (v); showval (k); break; case R_BIAS: _jclient->retuner ()->set_notebias (_rotary [R_BIAS]->value ()); break; case R_FILT: _jclient->retuner ()->set_corrfilt (_rotary [R_FILT]->value ()); break; case R_CORR: _jclient->retuner ()->set_corrgain (_rotary [R_CORR]->value ()); break; case R_OFFS: _jclient->retuner ()->set_corroffs (_rotary [R_OFFS]->value ()); showval (k); break; } break; } } void Mainwin::setchan (int d) { char s [16]; _midich += d; if (_midich < 0) _midich = 0; if (_midich > 16) _midich = 16; if (_midich) { sprintf (s, "Ch %d\n", _midich); _bchan->set_text (s, 0); } else _bchan->set_text ("Omni", 0); _jclient->set_midichan (_midich - 1); } void Mainwin::showval (int k) { char s [16]; switch (k) { case R_TUNE: sprintf (s, "%5.1lf", _rotary [R_TUNE]->value ()); _textln->x_move (285, 58); break; case R_OFFS: sprintf (s, "%5.2lf", _rotary [R_OFFS]->value ()); _textln->x_move (525, 58); break; } _textln->set_text (s); _textln->x_map (); _ttimer = 40; } void Mainwin::redraw (void) { int x; x = 80; XPutImage (dpy (), win (), dgc (), notesect_img, 0, 0, x, 0, 190, 75); x += 190; XPutImage (dpy (), win (), dgc (), ctrlsect_img, 0, 0, x, 0, 315, 75); x = XSIZE - 35; XPutImage (dpy (), win (), dgc (), redzita_img, 0, 0, x, 0, 35, 75); } zita-at1-0.6.0/source/button.cc0000644000175000001440000000505013102031653015147 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2008-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include "button.h" int PushButton::_keymod = 0; int PushButton::_button = 0; PushButton::PushButton (X_window *parent, X_callback *cbobj, int cbind, XImage *image, int xp, int yp, int xs, int ys) : X_window (parent, xp, yp, xs, ys, 0), _cbobj (cbobj), _cbind (cbind), _image (image), _state (0), _xs (xs), _ys (ys) { x_add_events (ExposureMask | ButtonPressMask | ButtonReleaseMask); } PushButton::~PushButton (void) { } void PushButton::init (X_display *disp) { } void PushButton::fini (void) { } void PushButton::handle_event (XEvent *E) { switch (E->type) { case Expose: render (); break; case ButtonPress: bpress ((XButtonEvent *) E); break; case ButtonRelease: brelse ((XButtonEvent *) E); break; default: fprintf (stderr, "PushButton: event %d\n", E->type ); } } void PushButton::bpress (XButtonEvent *E) { int r = 0; if (E->button < 4) { _keymod = E->state; _button = E->button; r = handle_press (); } render (); if (r) callback (r); } void PushButton::brelse (XButtonEvent *E) { int r = 0; if (E->button < 4) { _keymod = E->state; _button = E->button; r = handle_relse (); } render (); if (r) callback (r); } void PushButton::set_state (int s) { if (_state != s) { _state = s; render (); } } void PushButton::render (void) { XSetFunction (dpy (), dgc (), GXcopy); XPutImage (dpy (), win (), dgc (), _image, 0, _state * _ys, 0, 0, _xs, _ys); } zita-at1-0.6.0/source/zita-at1.cc0000644000175000001440000000672313102127167015304 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include #include #include #include #include "global.h" #include "styles.h" #include "jclient.h" #include "mainwin.h" #define NOPTS 3 #define CP (char *) XrmOptionDescRec options [NOPTS] = { {CP"-h", CP".help", XrmoptionNoArg, CP"true" }, {CP"-g", CP".geometry", XrmoptionSepArg, 0 }, {CP"-s", CP".server", XrmoptionSepArg, 0 } }; static Jclient *jclient = 0; static Mainwin *mainwin = 0; static void help (void) { fprintf (stderr, "\n%s-%s\n\n", PROGNAME, VERSION); fprintf (stderr, " (C) 2010-2014 Fons Adriaensen \n\n"); fprintf (stderr, "Options:\n"); fprintf (stderr, " -h Display this text\n"); fprintf (stderr, " -name Jack client name\n"); fprintf (stderr, " -s Jack server name\n"); fprintf (stderr, " -g Window position\n"); exit (1); } static void sigint_handler (int) { signal (SIGINT, SIG_IGN); mainwin->stop (); } int main (int ac, char *av []) { X_resman xresman; X_display *display; X_handler *handler; X_rootwin *rootwin; int ev, xp, yp, xs, ys; xresman.init (&ac, av, CP PROGNAME, options, NOPTS); if (xresman.getb (".help", 0)) help (); display = new X_display (xresman.get (".display", 0)); if (display->dpy () == 0) { fprintf (stderr, "Can't open display.\n"); delete display; return 1; } xp = yp = 100; xs = Mainwin::XSIZE + 4; ys = Mainwin::YSIZE + 30; xresman.geometry (".geometry", display->xsize (), display->ysize (), 1, xp, yp, xs, ys); styles_init (display, &xresman); jclient = new Jclient (xresman.rname (), xresman.get (".server", 0)); rootwin = new X_rootwin (display); mainwin = new Mainwin (rootwin, &xresman, xp, yp, jclient); rootwin->handle_event (); handler = new X_handler (display, mainwin, EV_X11); handler->next_event (); XFlush (display->dpy ()); ITC_ctrl::connect (jclient, EV_EXIT, mainwin, EV_EXIT); if (mlockall (MCL_CURRENT | MCL_FUTURE)) fprintf (stderr, "Warning: memory lock failed.\n"); signal (SIGINT, sigint_handler); do { ev = mainwin->process (); if (ev == EV_X11) { rootwin->handle_event (); handler->next_event (); } if (ev == Esync::EV_TIME) { rootwin->handle_event (); } } while (ev != EV_EXIT); styles_fini (display); delete jclient; delete handler; delete rootwin; delete display; return 0; } zita-at1-0.6.0/source/guiclass.h0000644000175000001440000000622413102127126015315 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __GUICLASS_H #define __GUICLASS_H #include "button.h" #include "rotary.h" class Pbutt0 : public PushButton { public: Pbutt0 (X_window *parent, X_callback *cbobj, int cbind, XImage *image, int xp, int yp) : PushButton (parent, cbobj, cbind, image, xp, yp, 40, 24) { } private: virtual int handle_press (void); virtual int handle_relse (void); }; class Pbutt1 : public PushButton { public: Pbutt1 (X_window *parent, X_callback *cbobj, int cbind, XImage *image, int xp, int yp) : PushButton (parent, cbobj, cbind, image, xp, yp, 16, 16) { } private: virtual int handle_press (void); virtual int handle_relse (void); }; class Rlinctl : public RotaryCtl { public: Rlinctl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp, int cm, int dd, double vmin, double vmax, double vini); virtual void set_value (double v); virtual void get_string (char *p, int n); private: virtual int handle_button (void); virtual int handle_motion (int dx, int dy); virtual int handle_mwheel (int dw); int set_count (int u); int _cm; int _dd; double _vmin; double _vmax; const char *_form; }; class Rlogctl : public RotaryCtl { public: Rlogctl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp, int cm, int dd, double vmin, double vmax, double vini); virtual void set_value (double v); virtual void get_string (char *p, int n); private: virtual int handle_button (void); virtual int handle_motion (int dx, int dy); virtual int handle_mwheel (int dw); int set_count (int u); int _cm; int _dd; double _vmin; double _vmax; const char *_form; }; #endif zita-at1-0.6.0/source/styles.h0000644000175000001440000000335613102127160015027 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __STYLES_H #define __STYLES_H #include #include "button.h" #include "rotary.h" enum { C_MAIN_BG, C_MAIN_FG, C_TEXT_BG, C_TEXT_FG, NXFTCOLORS }; enum { F_TEXT, F_BUTT, NXFTFONTS }; extern XImage *loadpng (const char *file, X_display *disp, const XftColor *color); extern void styles_init (X_display *disp, X_resman *xrm); extern void styles_fini (X_display *disp); extern XftColor *XftColors [NXFTCOLORS]; extern XftFont *XftFonts [NXFTFONTS]; extern X_textln_style tstyle1; extern X_button_style bstyle1; extern XImage *notesect_img; extern XImage *ctrlsect_img; extern XImage *redzita_img; extern XImage *b_midi_img; extern XImage *b_note_img; extern RotaryGeom r_tune_geom; extern RotaryGeom r_filt_geom; extern RotaryGeom r_bias_geom; extern RotaryGeom r_corr_geom; extern RotaryGeom r_offs_geom; #endif zita-at1-0.6.0/source/button.h0000644000175000001440000000403713102031653015015 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2008-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __BUTTON_H #define __BUTTON_H #include class PushButton : public X_window { public: PushButton (X_window *parent, X_callback *cbobj, int cbind, XImage *image, int xp, int yp, int xs, int ys); virtual ~PushButton (void); enum { NOP = 100, PRESS, RELSE, DRAG }; int cbind (void) { return _cbind; } int state (void) { return _state; } virtual void set_state (int s); static int keymod (void) { return _keymod; } static int button (void) { return _button; } static void init (X_display *disp); static void fini (void); protected: X_callback *_cbobj; int _cbind; XImage *_image; int _state; int _xs; int _ys; void render (void); void callback (int k) { _cbobj->handle_callb (k, this, 0); } private: void handle_event (XEvent *E); void bpress (XButtonEvent *E); void brelse (XButtonEvent *E); virtual int handle_press (void) = 0; virtual int handle_relse (void) = 0; static int _keymod; static int _button; }; #endif zita-at1-0.6.0/source/png2img.h0000644000175000001440000000203713102031653015043 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2006-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __PNG2IMG_H #define __PNG2IMG_H #include extern XImage *png2img (const char *file, X_display *disp, const XftColor *bgnd); #endif zita-at1-0.6.0/source/mainwin.h0000644000175000001440000000435213102127146015147 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __MAINWIN_H #define __MAINWIN_H #include #include "guiclass.h" #include "jclient.h" #include "tmeter.h" #include "global.h" class Mainwin : public A_thread, public X_window, public X_callback { public: enum { XSIZE = 640, YSIZE = 75 }; Mainwin (X_rootwin *parent, X_resman *xres, int xp, int yp, Jclient *jclient); ~Mainwin (void); Mainwin (const Mainwin&); Mainwin& operator=(const Mainwin&); void stop (void) { _stop = true; } int process (void); private: enum { B_MIDI = 12, B_CHAN = 13 }; enum { R_TUNE, R_FILT, R_BIAS, R_CORR, R_OFFS, NROTARY }; virtual void thr_main (void) {} void handle_time (void); void handle_stop (void); void handle_event (XEvent *); void handle_callb (int type, X_window *W, XEvent *E); void showval (int k); void expose (XExposeEvent *E); void clmesg (XClientMessageEvent *E); void redraw (void); void setchan (int d); Atom _atom; bool _stop; bool _ambis; X_resman *_xres; Jclient *_jclient; int _notes; PushButton *_bmidi; PushButton *_bnote [12]; RotaryCtl *_rotary [NROTARY]; Tmeter *_tmeter; X_textip *_textln; X_tbutton *_bchan; int _midich; int _ttimer; }; #endif zita-at1-0.6.0/source/retuner.cc0000644000175000001440000003007213102127151015321 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include #include #include #include "retuner.h" Retuner::Retuner (int fsamp) : _fsamp (fsamp), _refpitch (440.0f), _notebias (0.0f), _corrfilt (1.0f), _corrgain (1.0f), _corroffs (0.0f), _notemask (0xFFF) { int i, h; float t, x, y; if (_fsamp < 64000) { // At 44.1 and 48 kHz resample to double rate. _upsamp = true; _ipsize = 4096; _fftlen = 2048; _frsize = 128; _resampler.setup (1, 2, 1, 32); // 32 is medium quality. // Prefeed some input samples to remove delay. _resampler.inp_count = _resampler.filtlen () - 1; _resampler.inp_data = 0; _resampler.out_count = 0; _resampler.out_data = 0; _resampler.process (); } else if (_fsamp < 128000) { // 88.2 or 96 kHz. _upsamp = false; _ipsize = 4096; _fftlen = 4096; _frsize = 256; } else { // 192 kHz, double time domain buffers sizes. _upsamp = false; _ipsize = 8192; _fftlen = 8192; _frsize = 512; } // Accepted correlation peak range, corresponding to 60..1200 Hz. _ifmin = _fsamp / 1200; _ifmax = _fsamp / 60; // Various buffers _ipbuff = new float[_ipsize + 3]; // Resampled or filtered input _xffunc = new float[_frsize]; // Crossfade function _fftTwind = (float *) fftwf_malloc (_fftlen * sizeof (float)); // Window function _fftWcorr = (float *) fftwf_malloc (_fftlen * sizeof (float)); // Autocorrelation of window _fftTdata = (float *) fftwf_malloc (_fftlen * sizeof (float)); // Time domain data for FFT _fftFdata = (fftwf_complex *) fftwf_malloc ((_fftlen / 2 + 1) * sizeof (fftwf_complex)); // FFTW3 plans _fwdplan = fftwf_plan_dft_r2c_1d (_fftlen, _fftTdata, _fftFdata, FFTW_ESTIMATE); _invplan = fftwf_plan_dft_c2r_1d (_fftlen, _fftFdata, _fftTdata, FFTW_ESTIMATE); // Clear input buffer. memset (_ipbuff, 0, (_ipsize + 1) * sizeof (float)); // Create crossfade function, half of raised cosine. for (i = 0; i < _frsize; i++) { _xffunc [i] = 0.5 * (1 - cosf (M_PI * i / _frsize)); } // Create window, raised cosine. for (i = 0; i < _fftlen; i++) { _fftTwind [i] = 0.5 * (1 - cosf (2 * M_PI * i / _fftlen)); } // Compute window autocorrelation and normalise it. fftwf_execute_dft_r2c (_fwdplan, _fftTwind, _fftFdata); h = _fftlen / 2; for (i = 0; i < h; i++) { x = _fftFdata [i][0]; y = _fftFdata [i][1]; _fftFdata [i][0] = x * x + y * y; _fftFdata [i][1] = 0; } _fftFdata [h][0] = 0; _fftFdata [h][1] = 0; fftwf_execute_dft_c2r (_invplan, _fftFdata, _fftWcorr); t = _fftWcorr [0]; for (i = 0; i < _fftlen; i++) { _fftWcorr [i] /= t; } // Initialise all counters and other state. _notebits = 0; _lastnote = -1; _count = 0; _cycle = _frsize; _error = 0.0f; _ratio = 1.0f; _xfade = false; _ipindex = 0; _frindex = 0; _frcount = 0; _rindex1 = _ipsize / 2; _rindex2 = 0; } Retuner::~Retuner (void) { delete[] _ipbuff; delete[] _xffunc; fftwf_free (_fftTwind); fftwf_free (_fftWcorr); fftwf_free (_fftTdata); fftwf_free (_fftFdata); fftwf_destroy_plan (_fwdplan); fftwf_destroy_plan (_invplan); } int Retuner::process (int nfram, float *inp, float *out) { int i, k, fi; float ph, dp, r1, r2, dr, u1, u2, v; // Pitch shifting is done by resampling the input at the // required ratio, and eventually jumping forward or back // by one or more pitch period(s). Processing is done in // fragments of '_frsize' frames, and the decision to jump // forward or back is taken at the start of each fragment. // If a jump happens we crossfade over one fragment size. // Every 4 fragments a new pitch estimate is made. Since // _fftsize = 16 * _frsize, the estimation window moves // by 1/4 of the FFT length. fi = _frindex; // Write index in current fragment. r1 = _rindex1; // Read index for current input frame. r2 = _rindex2; // Second read index while crossfading. // No assumptions are made about fragments being aligned // with process() calls, so we may be in the middle of // a fragment here. while (nfram) { // Don't go past the end of the current fragment. k = _frsize - fi; if (nfram < k) k = nfram; nfram -= k; // At 44.1 and 48 kHz upsample by 2. if (_upsamp) { _resampler.inp_count = k; _resampler.inp_data = inp; _resampler.out_count = 2 * k; _resampler.out_data = _ipbuff + _ipindex; _resampler.process (); _ipindex += 2 * k; } // At higher sample rates apply lowpass filter. else { // Not implemented yet, just copy. memcpy (_ipbuff + _ipindex, inp, k * sizeof (float)); _ipindex += k; } // Extra samples for interpolation. _ipbuff [_ipsize + 0] = _ipbuff [0]; _ipbuff [_ipsize + 1] = _ipbuff [1]; _ipbuff [_ipsize + 2] = _ipbuff [2]; inp += k; if (_ipindex == _ipsize) _ipindex = 0; // Process available samples. dr = _ratio; if (_upsamp) dr *= 2; if (_xfade) { // Interpolate and crossfade. while (k--) { i = (int) r1; u1 = cubic (_ipbuff + i, r1 - i); i = (int) r2; u2 = cubic (_ipbuff + i, r2 - i); v = _xffunc [fi++]; *out++ = (1 - v) * u1 + v * u2; r1 += dr; if (r1 >= _ipsize) r1 -= _ipsize; r2 += dr; if (r2 >= _ipsize) r2 -= _ipsize; } } else { // Interpolation only. fi += k; while (k--) { i = (int) r1; *out++ = cubic (_ipbuff + i, r1 - i); r1 += dr; if (r1 >= _ipsize) r1 -= _ipsize; } } // If at end of fragment check for jump. if (fi == _frsize) { fi = 0; // Estimate the pitch every 4th fragment. if (++_frcount == 4) { _frcount = 0; findcycle (); if (_cycle) { // If the pitch estimate succeeds, find the // nearest note and required resampling ratio. _count = 0; finderror (); } else if (++_count > 5) { // If the pitch estimate fails, the current // ratio is kept for 5 fragments. After that // the signal is considered unvoiced and the // pitch error is reset. _count = 5; _cycle = _frsize; _error = 0; } else if (_count == 2) { // Bias is removed after two unvoiced fragments. _lastnote = -1; } _ratio = powf (2.0f, _corroffs / 12.0f - _error * _corrgain); } // If the previous fragment was crossfading, // the end of the new fragment that was faded // in becomes the current read position. if (_xfade) r1 = r2; // A jump must correspond to an integer number // of pitch periods, and to avoid reading outside // the circular input buffer limits it must be at // least one fragment size. dr = _cycle * (int)(ceilf (_frsize / _cycle)); dp = dr / _frsize; ph = r1 - _ipindex; if (ph < 0) ph += _ipsize; if (_upsamp) { ph /= 2; dr *= 2; } ph = ph / _frsize + 2 * _ratio - 10; if (ph > 0.5f) { // Jump back by 'dr' frames and crossfade. _xfade = true; r2 = r1 - dr; if (r2 < 0) r2 += _ipsize; } else if (ph + dp < 0.5f) { // Jump forward by 'dr' frames and crossfade. _xfade = true; r2 = r1 + dr; if (r2 >= _ipsize) r2 -= _ipsize; } else _xfade = false; } } // Save local state. _frindex = fi; _rindex1 = r1; _rindex2 = r2; return 0; } void Retuner::findcycle (void) { int d, h, i, j, k; float f, m, t, x, y, z; d = _upsamp ? 2 : 1; h = _fftlen / 2; j = _ipindex; k = _ipsize - 1; for (i = 0; i < _fftlen; i++) { _fftTdata [i] = _fftTwind [i] * _ipbuff [j & k]; j += d; } fftwf_execute_dft_r2c (_fwdplan, _fftTdata, _fftFdata); f = _fsamp / (_fftlen * 3e3f); for (i = 0; i < h; i++) { x = _fftFdata [i][0]; y = _fftFdata [i][1]; m = i * f; _fftFdata [i][0] = (x * x + y * y) / (1 + m * m); _fftFdata [i][1] = 0; } _fftFdata [h][0] = 0; _fftFdata [h][1] = 0; fftwf_execute_dft_c2r (_invplan, _fftFdata, _fftTdata); t = _fftTdata [0] + 0.1f; for (i = 0; i < h; i++) _fftTdata [i] /= (t * _fftWcorr [i]); x = _fftTdata [0]; for (i = 4; i < _ifmax; i += 4) { y = _fftTdata [i]; if (y > x) break; x = y; } i -= 4; _cycle = 0; if (i >= _ifmax) return; if (i < _ifmin) i = _ifmin; x = _fftTdata [--i]; y = _fftTdata [++i]; m = 0; j = 0; while (i <= _ifmax) { t = y * _fftWcorr [i]; z = _fftTdata [++i]; if ((t > m) && (y >= x) && (y >= z) && (y > 0.8f)) { j = i - 1; m = t; } x = y; y = z; } if (j) { x = _fftTdata [j - 1]; y = _fftTdata [j]; z = _fftTdata [j + 1]; _cycle = j + 0.5f * (x - z) / (z - 2 * y + x - 1e-9f); } } void Retuner::finderror (void) { int i, m, im; float a, am, d, dm, f; if (!_notemask) { _error = 0; _lastnote = -1; return; } f = log2f (_fsamp / (_cycle * _refpitch)); dm = 0; am = 1; im = -1; for (i = 0, m = 1; i < 12; i++, m <<= 1) { if (_notemask & m) { d = f - (i - 9) / 12.0f; d -= floorf (d + 0.5f); a = fabsf (d); if (i == _lastnote) a -= _notebias; if (a < am) { am = a; dm = d; im = i; } } } if (_lastnote == im) { _error += _corrfilt * (dm - _error); } else { _error = dm; _lastnote = im; } // For display only. _notebits |= 1 << im; } float Retuner::cubic (float *v, float a) { float b, c; b = 1 - a; c = a * b; return (1.0f + 1.5f * c) * (v[1] * b + v[2] * a) - 0.5f * c * (v[0] * b + v[1] + v[2] + v[3] * a); } zita-at1-0.6.0/source/tmeter.cc0000644000175000001440000000441713102127162015143 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include "tmeter.h" XImage *Tmeter::_scale = 0; XImage *Tmeter::_imag0 = 0; XImage *Tmeter::_imag1 = 0; Tmeter::Tmeter (X_window *parent, int xpos, int ypos) : X_window (parent, xpos, ypos, XS + 2 * XM, YS + 2 * YM, 0), _k0 (86), _k1 (86) { if (!_imag0 || !_imag1 || !_scale) return; x_add_events (ExposureMask); } Tmeter::~Tmeter (void) { } void Tmeter::handle_event (XEvent *E) { switch (E->type) { case Expose: expose ((XExposeEvent *) E); break; } } void Tmeter::expose (XExposeEvent *E) { if (E->count) return; XSetFunction (dpy (), dgc (), GXcopy); XPutImage (dpy (), win (), dgc (), _imag0, 0, 0, XM, YM, XS, Y1); XPutImage (dpy (), win (), dgc (), _imag1, _k0 - 2, 0, XM + _k0 - 2, YM, 5 + _k1 - _k0, Y1); XPutImage (dpy (), win (), dgc (), _scale, 0, 0, XM, YM + Y1, XS, Y2); } void Tmeter::update (float v0, float v1) { int k0, k1; k0 = (int)(floorf (86.0f + 80.0f * v0 + 0.5f)); k1 = (int)(floorf (86.0f + 80.0f * v1 + 0.5f)); if (k0 < 4) k0 = 4; if (k0 > 168) k0 = 168; if (k1 < 4) k1 = 4; if (k1 > 168) k1 = 168; XSetFunction (dpy (), dgc (), GXcopy); XPutImage (dpy (), win (), dgc (), _imag0, _k0 - 2, 0, XM + _k0 - 2, YM, 5 + _k1 - _k0, Y1); _k0 = k0; _k1 = k1; XPutImage (dpy (), win (), dgc (), _imag1, _k0 - 2, 0, XM + _k0 - 2, YM, 5 + _k1 - _k0, Y1); } zita-at1-0.6.0/source/rotary.h0000644000175000001440000000530413102031653015020 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2008-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __ROTARY_H #define __ROTARY_H #include #include #include class RotaryGeom { public: XftColor *_backg; XImage *_image [4]; char _lncol [4]; int _x0; int _y0; int _dx; int _dy; double _xref; double _yref; double _rad; }; class RotaryCtl : public X_window { public: RotaryCtl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp); virtual ~RotaryCtl (void); enum { NOP = 200, PRESS, RELSE, DELTA }; int cbind (void) { return _cbind; } int state (void) { return _state; } double value (void) { return _value; } virtual void set_state (int s); virtual void set_value (double v) = 0; virtual void get_string (char *p, int n) {} static void init (X_display *disp); static void fini (void); static int _wb_up; static int _wb_dn; protected: X_callback *_cbobj; int _cbind; RotaryGeom *_rgeom; int _state; int _count; int _range; double _value; double _angle; void render (void); void callback (int k) { _cbobj->handle_callb (k, this, 0); } static int _keymod; static int _button; static int _rcount; static int _rx; static int _ry; private: void handle_event (XEvent *E); void bpress (XButtonEvent *E); void brelse (XButtonEvent *E); void motion (XMotionEvent *E); virtual int handle_button (void) = 0; virtual int handle_motion (int dx, int dy) = 0; virtual int handle_mwheel (int dw) = 0; static cairo_t *_cairotype; static cairo_surface_t *_cairosurf; }; #endif zita-at1-0.6.0/source/tmeter.h0000644000175000001440000000266313102127164015010 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #ifndef __TMETER_H #define __TMETER_H #include class Tmeter : public X_window { public: Tmeter (X_window *parent, int xpos, int ypos); ~Tmeter (void); Tmeter (const Tmeter&); Tmeter& operator=(const Tmeter&); void update (float v0, float v1); static XImage *_scale; static XImage *_imag0; static XImage *_imag1; private: enum { XS = 173, YS = 17, XM = 0, YM = 0, Y1 = 7, Y2 = 10 }; void handle_event (XEvent *E); void expose (XExposeEvent *E); int _k0; int _k1; }; #endif zita-at1-0.6.0/source/styles.cc0000644000175000001440000001205213102127433015161 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2010-2017 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include "styles.h" #include "tmeter.h" #include "png2img.h" XftColor *XftColors [NXFTCOLORS]; XftFont *XftFonts [NXFTFONTS]; X_textln_style tstyle1; X_button_style bstyle1; XImage *notesect_img; XImage *ctrlsect_img; XImage *redzita_img; XImage *b_note_img; XImage *b_midi_img; RotaryGeom r_tune_geom; RotaryGeom r_filt_geom; RotaryGeom r_bias_geom; RotaryGeom r_corr_geom; RotaryGeom r_offs_geom; XImage *loadpng (const char *file, X_display *disp, const XftColor *color) { char s [1024]; XImage *img; sprintf (s, "%s/%s.png", SHARED, file); img = png2img (s, disp, color); if (img) return img; exit (1); } void styles_init (X_display *disp, X_resman *xrm) { XftColors [C_MAIN_BG] = disp->alloc_xftcolor (0.25f, 0.25f, 0.25f, 1.0f); XftColors [C_MAIN_FG] = disp->alloc_xftcolor (1.0f, 1.0f, 1.0f, 1.0f); XftColors [C_TEXT_BG] = disp->alloc_xftcolor (1.0f, 1.0f, 1.0f, 1.0f); XftColors [C_TEXT_FG] = disp->alloc_xftcolor (0.1f, 0.1f, 0.1f, 1.0f); XftFonts [F_TEXT] = disp->alloc_xftfont (xrm->get (".font.text", "luxi:bold::pixelsize=11")); XftFonts [F_BUTT] = disp->alloc_xftfont (xrm->get (".font.butt", "luxi:bold::pixelsize=11")); tstyle1.font = XftFonts [F_TEXT]; tstyle1.color.normal.bgnd = XftColors [C_TEXT_BG]->pixel; tstyle1.color.normal.text = XftColors [C_TEXT_FG]; bstyle1.font = XftFonts [F_BUTT]; bstyle1.color.bg[0] = XftColors [C_MAIN_BG]->pixel; bstyle1.color.fg[0] = XftColors [C_MAIN_FG]; bstyle1.type = X_button_style::PLAIN | X_button_style::ALEFT; notesect_img = loadpng ("notesect", disp, XftColors [C_MAIN_BG]); ctrlsect_img = loadpng ("ctrlsect", disp, XftColors [C_MAIN_BG]); redzita_img = loadpng ("redzita", disp, XftColors [C_MAIN_BG]); b_midi_img = loadpng ("midi", disp, XftColors [C_MAIN_BG]); b_note_img = loadpng ("note", disp, XftColors [C_MAIN_BG]); Tmeter::_scale = loadpng ("hscale", disp, XftColors [C_MAIN_BG]); Tmeter::_imag0 = loadpng ("hmeter0", disp, XftColors [C_MAIN_BG]); Tmeter::_imag1 = loadpng ("hmeter1", disp, XftColors [C_MAIN_BG]); r_tune_geom._backg = XftColors [C_MAIN_BG]; r_tune_geom._image [0] = ctrlsect_img; r_tune_geom._lncol [0] = 0; r_tune_geom._x0 = 26; r_tune_geom._y0 = 17; r_tune_geom._dx = 23; r_tune_geom._dy = 23; r_tune_geom._xref = 11.5; r_tune_geom._yref = 11.5; r_tune_geom._rad = 11; r_bias_geom._backg = XftColors [C_MAIN_BG]; r_bias_geom._image [0] = ctrlsect_img; r_bias_geom._lncol [0] = 0; r_bias_geom._x0 = 86; r_bias_geom._y0 = 17; r_bias_geom._dx = 23; r_bias_geom._dy = 23; r_bias_geom._xref = 11.5; r_bias_geom._yref = 11.5; r_bias_geom._rad = 11; r_filt_geom._backg = XftColors [C_MAIN_BG]; r_filt_geom._image [0] = ctrlsect_img; r_filt_geom._lncol [0] = 0; r_filt_geom._x0 = 146; r_filt_geom._y0 = 17; r_filt_geom._dx = 23; r_filt_geom._dy = 23; r_filt_geom._xref = 11.5; r_filt_geom._yref = 11.5; r_filt_geom._rad = 11; r_corr_geom._backg = XftColors [C_MAIN_BG]; r_corr_geom._image [0] = ctrlsect_img; r_corr_geom._lncol [0] = 0; r_corr_geom._x0 = 206; r_corr_geom._y0 = 17; r_corr_geom._dx = 23; r_corr_geom._dy = 23; r_corr_geom._xref = 11.5; r_corr_geom._yref = 11.5; r_corr_geom._rad = 11; r_offs_geom._backg = XftColors [C_MAIN_BG]; r_offs_geom._image [0] = ctrlsect_img; r_offs_geom._lncol [0] = 0; r_offs_geom._x0 = 266; r_offs_geom._y0 = 17; r_offs_geom._dx = 23; r_offs_geom._dy = 23; r_offs_geom._xref = 11.5; r_offs_geom._yref = 11.5; r_offs_geom._rad = 11; } void styles_fini (X_display *disp) { notesect_img->data = 0; ctrlsect_img->data = 0; redzita_img->data = 0; b_midi_img->data = 0; b_note_img->data = 0; Tmeter::_scale->data = 0; Tmeter::_imag0->data = 0; Tmeter::_imag1->data = 0; XDestroyImage (notesect_img); XDestroyImage (ctrlsect_img); XDestroyImage (redzita_img); XDestroyImage (b_midi_img); XDestroyImage (b_note_img); XDestroyImage (Tmeter::_scale); XDestroyImage (Tmeter::_imag0); XDestroyImage (Tmeter::_imag1); } zita-at1-0.6.0/source/png2img.cc0000644000175000001440000000747613102031653015215 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2006-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include XImage *png2img (const char *file, X_display *disp, const XftColor *bgnd) { FILE *F; png_byte hdr [8]; png_structp png_ptr; png_infop png_info; const unsigned char **data, *p; int rv, dx, dy, x, y, dp; float vr, vg, vb, va, br, bg, bb; unsigned long mr, mg, mb, pix; XImage *image; F = fopen (file, "r"); if (!F) { fprintf (stderr, "Can't open '%s'\n", file); return 0; } rv = fread (hdr, 8, 1, F); if ((rv != 1) || png_sig_cmp (hdr, 0, 8)) { fprintf (stderr, "'%s' is not a PNG file\n", file); fclose (F); return 0; } fseek (F, 0, SEEK_SET); png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0); if (! png_ptr) { fclose (F); return 0; } png_info = png_create_info_struct (png_ptr); if (! png_info) { png_destroy_read_struct (&png_ptr, 0, 0); fclose (F); return 0; } if (setjmp (png_jmpbuf (png_ptr))) { png_destroy_read_struct (&png_ptr, &png_info, 0); fclose (F); fprintf (stderr, "png:longjmp()\n"); return 0; } png_init_io (png_ptr, F); png_read_png (png_ptr, png_info, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND, 0); // This requires libpng14 or later. If you still have an // older version, use the three commented lines instead. dx = png_get_image_width (png_ptr, png_info); dy = png_get_image_height (png_ptr, png_info); dp = (png_get_color_type (png_ptr, png_info) & PNG_COLOR_MASK_ALPHA) ? 4 : 3; // dx = png_info->width; // dy = png_info->height; // dp = (png_info->color_type & PNG_COLOR_MASK_ALPHA) ? 4 : 3; data = (const unsigned char **)(png_get_rows (png_ptr, png_info)); image = XCreateImage (disp->dpy (), disp->dvi (), DefaultDepth (disp->dpy (), disp->dsn ()), ZPixmap, 0, 0, dx, dy, 32, 0); image->data = new char [image->height * image->bytes_per_line]; mr = image->red_mask; mg = image->green_mask; mb = image->blue_mask; vr = mr / 255.0f; vg = mg / 255.0f; vb = mb / 255.0f; if (bgnd) { br = bgnd->color.red >> 8; bg = bgnd->color.green >> 8; bb = bgnd->color.blue >> 8; } else br = bg = bb = 0; for (y = 0; y < dy; y++) { p = data [y]; for (x = 0; x < dx; x++) { va = (dp == 4) ? (p [3] / 255.0f) : 1; pix = ((unsigned long)((p [0] * va + (1 - va) * br) * vr) & mr) | ((unsigned long)((p [1] * va + (1 - va) * bg) * vg) & mg) | ((unsigned long)((p [2] * va + (1 - va) * bb) * vb) & mb); XPutPixel (image, x, y, pix); p += dp; } } png_destroy_read_struct (&png_ptr, &png_info, 0); fclose (F); return image; } zita-at1-0.6.0/source/rotary.cc0000644000175000001440000001123013102575206015160 0ustar fonsusers// ---------------------------------------------------------------------------- // // Copyright (C) 2008-2015 Fons Adriaensen // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program 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 this program. If not, see . // // ---------------------------------------------------------------------------- #include #include #include #include "rotary.h" cairo_t *RotaryCtl::_cairotype = 0; cairo_surface_t *RotaryCtl::_cairosurf = 0; int RotaryCtl::_wb_up = 4; int RotaryCtl::_wb_dn = 5; int RotaryCtl::_keymod = 0; int RotaryCtl::_button = 0; int RotaryCtl::_rcount = 0; int RotaryCtl::_rx = 0; int RotaryCtl::_ry = 0; RotaryCtl::RotaryCtl (X_window *parent, X_callback *cbobj, int cbind, RotaryGeom *rgeom, int xp, int yp) : X_window (parent, rgeom->_x0 + xp, rgeom->_y0 + yp, rgeom->_dx, rgeom->_dy, rgeom->_backg->pixel), _cbobj (cbobj), _cbind (cbind), _rgeom (rgeom), _state (0), _count (0), _value (0), _angle (0) { x_add_events ( ExposureMask | Button1MotionMask | ButtonPressMask | ButtonReleaseMask); } RotaryCtl::~RotaryCtl (void) { } void RotaryCtl::init (X_display *disp) { _cairosurf = cairo_xlib_surface_create (disp->dpy (), 0, disp->dvi (), 50, 50); _cairotype = cairo_create (_cairosurf); } void RotaryCtl::fini (void) { cairo_destroy (_cairotype); cairo_surface_destroy (_cairosurf); } void RotaryCtl::handle_event (XEvent *E) { switch (E->type) { case Expose: render (); break; case ButtonPress: bpress ((XButtonEvent *) E); break; case ButtonRelease: brelse ((XButtonEvent *) E); break; case MotionNotify: motion ((XMotionEvent *) E); break; default: fprintf (stderr, "RotaryCtl: event %d\n", E->type ); } } void RotaryCtl::bpress (XButtonEvent *E) { int r = 0; double d; d = hypot (E->x - _rgeom->_xref, E->y - _rgeom->_yref); if (d > _rgeom->_rad + 3) return; _keymod = E->state; if (E->button < 4) { _rx = E->x; _ry = E->y; _button = E->button; r = handle_button (); _rcount = _count; } else if (_button) return; else if ((int)E->button == _wb_up) { r = handle_mwheel (1); } else if ((int)E->button == _wb_dn) { r = handle_mwheel (-1); } if (r) { callback (r); render (); } } void RotaryCtl::brelse (XButtonEvent *E) { if (_button == (int)E->button) { _button = 0; callback (RELSE); } } void RotaryCtl::motion (XMotionEvent *E) { int dx, dy, r; if (_button) { _keymod = E->state; dx = E->x - _rx; dy = E->y - _ry; r = handle_motion (dx, dy); if (r) { callback (r); render (); } } } void RotaryCtl::set_state (int s) { if (_state != s) { _state = s; render (); } } void RotaryCtl::render (void) { double a, c, r, x, y; // A very weird bugfix. Without this, the cairo line // draw below fails if the line is exactly horizontal // or vertical. No amount of XFlush(), cairo_surface_flush() // or cairo_surface_mark_dirty() seems to help, but this // XDrawline does. XDrawLine (dpy (), win (), dgc (), 0, 0, 0, 0); XPutImage (dpy (), win (), dgc (), _rgeom->_image [_state], _rgeom->_x0, _rgeom->_y0, 0, 0, _rgeom->_dx, _rgeom->_dy); XFlush (dpy ()); cairo_xlib_surface_set_drawable (_cairosurf, win(),_rgeom->_dx, _rgeom->_dy); c = _rgeom->_lncol [_state] ? 1.0 : 0.0; a = _angle * M_PI / 180; r = _rgeom->_rad; x = _rgeom->_xref; y = _rgeom->_yref; cairo_new_path (_cairotype); cairo_move_to (_cairotype, x, y); x += r * sin (a); y -= r * cos (a); cairo_line_to (_cairotype, x, y); cairo_set_source_rgb (_cairotype, c, c, c); cairo_set_line_width (_cairotype, c ? 2.2 : 1.8); cairo_stroke (_cairotype); cairo_surface_flush (_cairosurf); } zita-at1-0.6.0/source/Makefile0000644000175000001440000000404613142674306015005 0ustar fonsusers# ---------------------------------------------------------------------------- # # Copyright (C) 2010-2017 Fons Adriaensen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program 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 this program. If not, see . # # ---------------------------------------------------------------------------- PREFIX = /usr/local SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') LIBDIR = lib$(SUFFIX) BINDIR = $(PREFIX)/bin SHARED = $(PREFIX)/share/zita-at1 VERSION = 0.6.0 CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -DSHARED=\"$(SHARED)\" CXXFLAGS += -O2 -Wall -ffast-math -pthread CXXFLAGS += -march=native LDFLAGS += -L$(PREFIX)/$(LIBDIR) all: zita-at1 ZITA-AT1_O = zita-at1.o styles.o jclient.o mainwin.o png2img.o guiclass.o \ button.o rotary.o tmeter.o retuner.o zita-at1: CPPFLAGS += -I/usr/X11R6/include `freetype-config --cflags` zita-at1: LDLIBS += -lcairo -lclxclient -lclthreads -lzita-resampler -lfftw3f -ljack -lpthread -lpng -lXft -lX11 -lrt zita-at1: LDFLAGS += -L/usr/X11R6/lib zita-at1: $(ZITA-AT1_O) g++ $(LDFLAGS) -o $@ $(ZITA-AT1_O) $(LDLIBS) $(ZITA-AT1_O): -include $(ZITA-AT1_O:%.o=%.d) install: all install -d $(DESTDIR)$(BINDIR) install -d $(DESTDIR)$(SHARED) install -m 755 zita-at1 $(DESTDIR)$(BINDIR) rm -rf $(DESTDIR)$(SHARED)/* install -m 644 ../share/* $(DESTDIR)$(SHARED) uninstall: rm -f $(DESTDIR)$(BINDIR)/zita-at1 rm -rf $(DESTDIR)$(SHARED) clean: /bin/rm -f *~ *.o *.a *.d *.so /bin/rm -f zita-at1 zita-at1-0.6.0/INSTALL0000644000175000001440000000102212403512650013055 0ustar fonsusersTo install, cd to the source directory, make, sudo make install, make clean. To build this version, you need the shared libraries libclthreads-2.4.0 libclxclient-3.9.0 and the corresponding header files. They are available at To install into /usr instead of /usr/local modify the definition of 'PREFIX' in the Makefile. Note: the 'make install' step is necessary to make the application work - it expects to find some files in $(PREFIX)/share/zita-at1. zita-at1-0.6.0/COPYING0000644000175000001440000004311012403512650013063 0ustar fonsusers GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. zita-at1-0.6.0/share/0000755000175000001440000000000012403512650013133 5ustar fonsuserszita-at1-0.6.0/share/notesect.png0000644000175000001440000000077012403512650015471 0ustar fonsusersPNG  IHDRKAI`bKGDIDATx-n"qVC &A ГƒA$E&lvb_惏x\jzJ:CH:CH:CH:CH:CH:CH:CH:CH:CH:CH:CH:COp8~,ZLX,cmO9vR4n8NuTs>t:u~}}YYvv[6Zz\.(~_(Ac2T !!!4i24=!'&F'CH:CH:Mz~~~&IVv5=6ta!!!!!!!!!!!!!@aIENDB`zita-at1-0.6.0/share/hmeter1.png0000644000175000001440000000036112403512650015206 0ustar fonsusersPNG  IHDRJZbKGDIDATH1 @Eߌ,6F Xzo`̮E l$+<%5 9 C`)3zE ZnŒ)W[Vc}:(`i3`e:I10.eJ} ~q=px w$IENDB`zita-at1-0.6.0/share/redzita.png0000644000175000001440000000241112403512650015301 0ustar fonsusersPNG  IHDR#Ku9bKGDIDATXKlEc{Mv؛4$P(U* J8 $J@H\m,.&)JVш6*3^R_4J;p8D"h46>NRJu'iiE*TX,i__~B$Ip!x\D"Sj 066644v;qzr}gEq&!Y 8tAt.4ߙ&󓓓·;%MrWV; \;`^%csSҡP|Bƺ8"Ҵg5< mC˴y D"n1IJfg퓞qT/;v3t zVSZ^*Κo=m8n"nXA:2OrZ6MƘ)b:| ϗ)51 {ua|y\"6x~V+jXjwRj[2&1U}*M>>9l[ {3kN98'G cHF`2=5<,6K(w_"WM7V,+"n_8 <(0iVB BPh1VT.?P,s"7 !>o)UU #\.???ieJ'& [5H(z rz&( cBss%?VۓX MGw^iR+b0;$=NK#H=R#9?j=gIENDB`zita-at1-0.6.0/share/midi.png0000644000175000001440000000320312403512650014561 0ustar fonsusersPNG  IHDR(`;bKGD8IDATh[hgdr8IbTLLXMZMiAVAXhP*J)Dt%-²Kli1TIw7f/3afwgggv'Cðsߞ09˗/CRQ ʬTpݵk`yϽq倫ryRPql0/"SYyVV)wtt455]r%e˖ΫW&8ΊnpѣG.+8tPYYRzt,3==t: !qddw͚53n?y3gTJ=0F9FItĉK8{IǏ\dPjSeeeLd P(Ѩb333/^ ====!0Ç744QE z!g ۷Ys*P@IIIN7n<}ҥK~q0 GfDgggUUy>'*9}tMM ;vTVV޼ySzk׮.A9uRt:'&&$mLgfƤۖX,655544aTJ3>> &{U6GI  PJTO)bUoЪoM)!ͤ+]=je\Y9!< k|g3xvv6Xf8Mѳ QW^YZ̏xPa^ !c=hx)h28_-R{5fW:!X|Z_GK3{/u%܃XU@t O~ß#"srn@Ϸcx;< vCm+\q U'ݿ :+v"R 12M; شtBj(h ,z RQl|upʏ &D᭡݃tE*d#`-m->wU(Im ?J `BϦ6GH.R㢢H T(% BIQ9 P*x&ՠB@)()$ࡖWUVүiIhF ӊH'bl\}\z_Bcrb)Z&3F3 RmURy$H2Ot8rDHJɗ @N)圧ic1EDUFWZWE;͟J)fcrK)"rsyEMzOBJ{BRUo^$76`/x[  lf_CEX KRlrab3jH)Շ1#nn_Ќf0í^*ZT0ڗ.f BkdIZ'jNi@hv=;u|p*J˙?MG )!xOrUI^_NXEȟ|qP+^_q_   Lи~U% :m VIi @jr+P2Ak\nNlmqnm \m qDu u]+B@?<n7|_.~,c ͩ%IENDB`zita-at1-0.6.0/share/hscale.png0000644000175000001440000000043412403512650015101 0ustar fonsusersPNG  IHDR bKGDIDATX E'ki@ < v` v변!{Jfww78h730|\B@Ot>c̍a,cL;i:Ʀ,799Ds-W - Xp/Zcܶ6 =*v0 V)#r]הI8RSo"{RAOY?'%>R%^IENDB`zita-at1-0.6.0/share/hmeter0.png0000644000175000001440000000036512403512650015211 0ustar fonsusersPNG  IHDRJZbKGDIDATHA E@zD/НR鸨Xv>@—VvP%6«YqrKLHHB t2(B}CcO4h\aVJi\ozqتcy8%˽UO83=p{ x'EiNIENDB`zita-at1-0.6.0/share/ctrlsect.png0000644000175000001440000001726512403512650015477 0ustar fonsusersPNG  IHDR;KbKGDjIDATxyXWߪlAYc"e&A45{\GMhPeBNsEDL懣yvYfo^QM6-t0>OSuϷOY:UDFF({,hB`oL9sKaԈ-lul˖-K4 kFDDk׎?jm*iЌ4b;%%s%''9PF~X =v̙111}'\2&&&%%m'i(tV*cd׮]c:r]V+˷oߞ|ȑ> 5''];wXV$AʪUy{2ŋ@ xT_~ԩJ2000))iIo_r]V'N FL&jϝ;!!!Czz+VXaf+^dd}l3l۶ l2a„m۶m߾Nz,gzm6mb BfbZZZlgdffB̬/JRT^t4=44>Ǐɓ`p7nCe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~ EYb?Q LKK۶m۪UիM؎OfϞ?Ny /wA?-ωNCXNNU*~KJ +QpRYpΑ潮p3޹eoEAfɼyiw.6]FJ^U+n_y* ݽs`MHs[|}6nWv~Fa&l^Np[~ۯ~uk~VH^_ao.>>ʍwrw .3:0lwu_~Ə}o \$}\t'FG/0'lW(A^ohO3Ӯ]~`_|_j߸1E($>b<}۹ĊZ09Ae2߉gmzTkqkSS%Mnu}#?ng877Gr}s޽.'J`/b0@*u'$&غ5nn}kQߵ!p#7"@6]U00gPz'iO: qk$5p_Y~OZ( vxs"筜ӣ0o뷱ǟ{.zdIG(n s.޸)'3g{w…+79̣ u+>OLGQ=dOIہwNCy0pqg7Ѡh9mw߇dBj$~=>:ĚW+6*۽IK~ o zita-at1-0.6.0/doc/0000755000175000001440000000000012403512650012576 5ustar fonsuserszita-at1-0.6.0/doc/zita-at1.png0000644000175000001440000003160212403512650014740 0ustar fonsusersPNG  IHDRa(zgAMA a=tEXtSoftwareXV version 3.10a-jumboFix+Enh of 20081216 (interim!)| IDATxy\g&e(eKq-5-M4Ҭ\%cAQTrIE@ },w9?r\+z0s9f5gsKZZZǎ-BP(-/--MK*L/4s B8,?Uas͔`H=P( 0'ސ{P( aG5p}BP(0'kB##-B4 8*gG}@YRt ``{ݭn(Ǚz쯾L8\JƑMBKE:t2-4mXҰ=;;1P״6dȼv¢PG̘OMBZ`Oi!iVw'ߜet>` 2lfcַ]L4zp ǼM6@ش ;<9ƼEX_ ^g ,tݷ72J>8//jb귖ʫ7m߮og3?BZ2+lfcַ[㬭xcNg׌߶3uybv~(Jqʍ'%Sh0o{_翗9ٝ7Ji.8jZ NX ~Ylv¢Pι7yf}Lo.غ/%#Rc U$B|evbzS(Ig6Lؗk9K7lSSTnaƥbh\)x޹I Boj _ZMؕ~F˽5%~afkU\V~WJ9W)Uiq֤bmݬ)JchzO$ $~SVWAB@w BM;/my\;f3t1o4l]3φĔk~8lلbm Qc R؟ឺwtq$k|͎0NVI崴ί|[w BMoAWl52D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~iq~Ʋ92nOйLut)<K d0ug/#d:"ljYRk&[}}ݻI9KL ??{mݺƛbb^w@ _z5W~cikObkvakKj &Q嫤m8ܵ+^)%Q5FBca&DF]]P,iBqI}^ְy%CX9[rDxCO~lX-8g{"ێ`' '/T1^^:u5T_ւ, "F$1/5V}"NW;)>~%-b?Z<"G}bq$"Ӊ '!5se/;Ξpzr<2fȃ'n2WW3uztGvaYv„ JZgϞݻw/qReSl^v!eڴMryM-Bq0*<%`Csj&ϝ;744$<66600p˖-rcb>/UƐjNh9 Q<$<ۣs@_mECa D6Sfz0/O2P(Ǟ' n Bq- ~DP(LP(LP(LP(ãztIME  ?IENDB`zita-at1-0.6.0/doc/styles.css0000644000175000001440000000170412403512650014635 0ustar fonsusersbody { font-family: sans-serif; margin: 0; color: #FFFFFF; background-color: #383838; background-image: url(emboss.png); background-repeat: repeat; background-attachment: scroll; background-position: top left; } a:link { font-size: 10pt; font-weight: bold; color: #60FF60; } a:visited { font-size: 10pt; font-weight: bold; color: #8080FF; } h1 { font-size: 18pt; font-weight:bold; background-color: #0000E0; color: #FFFFFF; padding: 8pt; } h2 { font-size: 14pt; font-weight:normal; background-color: #0000E0; color: #FFFFFF; padding-left: 8pt; } h3 { font-size: 12pt; font-weight:normal; background-color: #FF0000; color: #FFFFFF; padding-left: 8pt; } .content { font-size: 10pt; font-weight: normal; color: #FFFFFF; padding-bottom: 10pt; } .comment { font-size: 10pt; font-weight: bold; color: #FFFF00; } .lborder { font-size: 11pt; font-weight: bold; padding: 15pt; } .theader { font-size: 10pt; font-weight: bold; color: #FFFF00; } zita-at1-0.6.0/doc/redzita.png0000644000175000001440000000107312403512650014747 0ustar fonsusersGIF87a[m!!1130314211x23f..U--M,*D++>66??=7;9,[mI8ͻ`(dihlp,tmx^5@(uLhNqG&$0#I Tcni1|a# lzy L!BL Unl Qdf   ,d* cIL' c'$h%$Vҁc֏ b c ckc1YЂ;I18`#%a:c90 ^ lH 4:) m^fdR 9O)ĉC "mrbr/(usɖLIh&H7:eic 8%&vL\խc@9=W$n&kpq N=(,NA\hci$Y6Sh{ndlp`#%ӫ_Ͼ˟";zita-at1-0.6.0/doc/quickguide.html0000644000175000001440000001007612403512650015622 0ustar fonsusers AT1 - Quick guide

AT1 - Quick guide

AT1 is an 'autotuner', normally used to correct the pitch of a voice singing (slightly) out of tune. Compared to 'Autotalent' it provides an improved pitch estimation algorithm, and much cleaner resampling. AT1 does not include formant correction, so it should be used to correct small errors only and not to really transpose a song. The 'expected' pitch can be controlled by Midi (via Jack only), or be a fixed set of notes. AT1 can probably be used on some instruments as well, but is primarily designed to cover the vocal range. It's also usable as a quick and dirty guitar tuner.

The resampling algorithm in zita-at1 is designed to produce an absolute minimum of artefacts and distortion, see the pictures at the bottom of this page.

The rotary knobs can be used in two ways:

* Click on the knob with the left mouse button, keep it pressed and move either left..right or up..down.

* Using the mouse wheel. Press Shift for smaller steps.

From Left to right we have:

* Midi indicator. Apart from the static note selection AT1 also accepts Midi note on/off messages. If the set of notes enabled in this way is not empty it takes priority over the static selection. This is indicated by this button lighting up. Clicking on it will reset any 'hanging' Midi notes.

* Midi channel selection. This can be 'Omni' or 1..16. Left/right click or use the mouse wheel to change.

* Note selection buttons. These select which notes are accepted as 'correct' ones. By default all 12 are enabled. Depending on the key of the tune being processed it can help to disable some of them. These buttons also indicate the current note as selected by the pitch estimator.

* Pitch error meter. Indicates the pitch error of the input signal w.r.t. the current note. The range is +/- one semitone.

* Tuning. This sets the frequency corresping to 'A' pitch, in other words the required tuning. This will be the default 440 Hz in most cases. The exact value is displayed whenever this control is touched, and can be set in steps of 0.2 Hz.

* Bias. Normally the pitch estimator will select the enabled note closest to the measured pitch. The Bias control adds some preference for the current note - this allows it to go off-tune more than would be the case otherwise.

* Filter. This sets the amount of smoothing on the pitch correction while the current note does not change. If it does change the filter is bypassed and the correction jumps immediately to the new value.

* Correction. Determines how much of the estimated pitch error gets corrected. Full correction may remove expression or vibrato.

* Offset. Adds an offset in the range of +/- two semitones to the pitch correction. With the Correction control set to zero the result is a constant pitch change.

Back Zita-at1 retuning 1kHz to B.
Back The talentedhack LV2 plugin retuning 1kHz to B.