2001-08-12 Michael Krause * Released v0.6.4 * app/clavier.c (clavier_init): If "5x8" font can't be found, use "fixed". * Added 'config.guess' and 'config.sub' files from automake distribution (reported by Wilbern Cobb ). 2001-08-04 Michael Krause * app/drivers/oss-input.c: Made "/dev/dsp" configurable. (oss_release): Only remove polltag if polltag != 0. Fixes a glib warning. * app/audioconfig.c (audioconfig_clist_select): When a different driver is selected, don't just leave the default settings, but load the settings from disk if there are saved settings. 2001-07-31 Michael Krause * app/drivers/oss-output.c: Made "/dev/dsp" configurable. 2001-07-25 Michael Krause * app/sample-editor.c (sample_editor_init_sample): If instrument is initialized, initialize sample map with current sample number, too. * app/tips-dialog.c: Added tip "Is your cursor trapped in a number entry field? Just press Return or Tab to free yourself!". * soundtracker.spec: Disable ALSA when building an RPM. * po: Added gl.po by Xosé Anxo Pereira Torreiro . 2001-06-15 Michael Krause * app/main.c (main): On Linux, we use setresuid()/setresgid() instead of seteuid()/setegid() in order to make gtk+-1.2.10 happy. Otherwise, SoundTracker doesn't run if installed suid-root. 2001-05-24 Michael Krause * Released v0.6.3 * app/audio.c (audio_ctlpipe_stop_playing): If audio_songpos_ew is still active, confirm it. This fixes the crash that occurs when pressing Ctrl directly after changing the playback position (during playback), reported by Aki Kemppainen * app/audioconfig.c (audioconfig_save_config): prefs_open_write() was accidentally called with an argument "rw" instead of a real file-name, so the audio settings never got saved!! I wonder why nobody reported this. 2001-03-05 Michael Krause * po: Updated ru.po, it.po. 2001-01-03 Michael Krause * Released v0.6.2 2000-12-27 Michael Krause * app/sample-editor.c (sample_editor_save_wav_main): Check for existence of dynamic loader functions, and use audiofile-0.2.0 code if not. 2000-12-23 Michael Krause * app/sample-editor.c (sample_editor_save_wav_main): Fix sample format initialization for libaudiofile-0.2.0. 2000-12-20 Michael Krause * app/tracker-settings.c (trackersettings_read_fontlist), app/tracker.c (tracker_init): Default font is now 'fixed'. 7x13 appears not to be present on all X installations (Florian Heinz ) pointed this out. 2000-12-16 Michael Krause * app/fr.po: Updated french translation (XxKarLKoXxX@aol.com) 2000-12-09 Rob Adamson * app/xm.c: Escape filenames that are passed to the shell for decompressing. 2000-10-30 Michael Krause * app/gui.c (keyevent): Removed old "capture_keys" logic, and replaced it by a simple check if the window's current focus lies on an entry widget. Finally, the spin buttons are editable using the keyboard! * app/gui.c: Replaced all gtk_spin_button_new() by extspinbutton_new() plus disabled size hack (in order to get the "changed" callback mentioned below into effect). * app/extspinbutton.c: Added option to disable the horizontal size hack, and added "changed" callback that immediately removes focus from widget if the value has been changed using the mouse. 2000-10-22 Michael Krause * Released v0.6.1 2000-10-20 Michael Krause * po/sl.po: Added slovene translation by Matej Erman. * app/mixers/midi.c, midi-settings.[ch], midi-utils.c: Updates from Luc Tanguay; The MIDI Settings dialog box now includes a page for Output parameters (for future dev.) and one for Misc parameters. This last page has one parameter for now: debug level (to allow MIDI users to see the MIDI events SoundTracker is receiving). Will be useful when MIDI events will be assignable to SoundTracker commands. * app/mixers/kb-x86.c (kb_x86_mix_sub): Remove g_assert(pos >= ch->sample->loopstart). This is simply not true for short loops. 2000-09-28 Michael Krause * Released v0.6.0 -- the first officially stable version ever :) * po: Updated ja.po 2000-09-27 Michael Krause * app/sample-editor.c, app/xm.c: Added various pointer arithmetic changes due to the recent change of sample.data from void* to gint16*. Fixes some crashes.. 2000-09-26 Michael Krause * app/midi-settings.c (midi_load_config): Yet another compilation fix :) 2000-09-25 Michael Krause * Released v0.5.9 * app/tracker.c: Rewrote expose/draw/update handling. * app/sample-display.c: Rewrote expose/draw/update handling a little bit (using an idle function). Now switching notebook pages works without problems. * app/sample-editor.c (sample_editor_handle_keys): If we have a selection, play only the selected part of the sample. * app/mixer.h: XM Player and mixers can now play part of the sample only. Added new method 'setsmplend' to mixer structure for this. * app/sample-editor.c (sample_editor_load_wav_main): Init relnote and finetune such that samples are played at C-6 in original speed. (sample_editor_ok_clicked): Here as well. * app/xm.c (xm_freq_note_to_relnote_finetune): If a specified FT note is to be played at a specific frequency, return the needed relnote and finetune settings. 2000-09-24 Michael Krause * app/audio.h: Remove #include -- fixes compiler warnings on IRIX. * app/midi-settings.c: Use new prefs_() functions. * app/main.c (main): Add dummy drivers if no actual drivers for the architecture are available. * app/mixers/kb-x86.c: Cleanups. Changed name appearing to the user to "kbfloat", since it's no longer x86-specific. * app/mixers/kb-x86-asm.S (kbasm_mix): val*vl+val*vr = val*(vl+vr). Using basic ring properties can help make your code shorter :) * app/mixers/kbfloat-mix.c: Portable C version of the cubically interpolating mixer. * configure.in (sgi_support): Added checks for IRIX dmedia library. Cleanups. Added '--disable-asm' option. * app/xm.c (xm_load_xm_instrument): Endianness-convert envelope points to host order. (xm_save_xm_instrument): Here as well. * app/drivers/irix-output.c: Added IRIX 5.x output driver. 2000-09-19 Michael Krause * Released v0.5.8 * Preliminary Win32 port by Fabian Giesen. Does not compile out-of-the-box, since I integrated his 0.5.4 work into 0.5.7 without being able to test anything. In particular, Makefiles are missing. The easiest way should be to build it with Cygwin. Some notes for the brave: - app/drivers/dsound-output.c (working as is) - app/preferences.c (needs some work done, see comments) - app/poll.c: added Win32 pipe emulation code. Need to replace all pipe write's and read's in the main program with calls to these functions. - app/keys.c: This is the only part that actually requires hard work for a fully functional Tracker. The current version does not permit pattern editing ;-( - The kb-x86 mixer requires some work if you want to use an assembler other than gas. A manually translated version of the assembler source comes with this archive, though (kb-x86-asmIntel.a). - Non-gcc compilers probably require that some gcc'isms be removed, such as void* arithmetic and interval case statements. - Look at how the GIMP Win32 port is built up; since GIMP also uses the gtk+ toolkit, the building process will be similar. * app/preferences.h: Directory structure is now hidden from the caller; access through opaque prefs_node* handle. * app/module-info.c: Update XM's 'modified' flag after various operations. * app/midi-settings.c: Disable if GNOME is not installed. * app/envelope-box.c (envelope_box_canvas_event): Stop point dragging when we receive a button release event on the canvas (sometimes the appropriate event for the respective point does not come - bug in canvas?). 2000-09-18 Michael Krause * app/track-editor.c (track_editor_handle_column_input): Instrument column uses decimal values always. * app/gui.c: Get rid of 'songpos' variable; use playlist_get_position() instead. (gui_update_player_pos): Some slight reorganization here. * app/gui-subs.c (statusbar_update): Run messages through gettext(). * app/gui.c (playlist_position_changed): Don't update current pattern if we're in playing mode (that will be done at proper time in gui_update_player_pos()). (gui_update_player_pos): Freeze playlist signals while updating song position. 2000-09-17 Michael Krause * app/tracker.c (note2string): Always use decimal numbers for instrument numbers. * app/gui-settings.c: Automatical Tempo / BPM button update when running through Fxx effect is default now. * app/event-waiter.[ch]: New more abstract interface for dealing with the GUI / audio event syncing issue (this is different from time-buffer!). songpos, tempo and bpm updates are handled through this interface now. Code is a lot cleaner now. * app/gui.c, app/audio.c: In "tempo / bpm update" mode: If the user changes tempo / bpm using the interface during playing, we use a protective mechanism similar to that used by the "song position changed" function. * po: Updated it.po 2000-08-25 Michael Krause * app/envelope-box.c (envelope_box_canvas_event): Insert new point only if insert_after != -1 and y in range. * app/tracker.c (print_notes_line): Corrected bounds check. * app/sample-editor.c (sample_editor_paste_clicked): Only convert source data to 8bits if destination sample is in treat_as_8bit mode. (sample_editor_perform_ramp): If we are in 8bit mode, call cutoff function after performing the ramp. 2000-08-17 Tomasz Maka * app/track-editor.[ch]: command and volume parameter generator (inc/dec) added. * app/track-editor.c: delete key behaviours like FT2 now. * app/track-editor.c: set cursor row-step to gui_get_current_jump_value() in command and volume column. * app/gui.c: spin_jump max value changed to 16. 2000-08-16 Michael Krause * app/xm-player.c (xmpPlayTick, xmpCmdEnvPos): Check if ch->curins is initialized before accessing it. Fixes another player crash. 2000-08-15 Michael Krause * Released v0.5.7 * app/xm.c (XM_Free): Ehhhh... let's free the sample data as well. Helps a lot if you don't want a full swap after loading some mods. :) (pointed out by (Rikard Bosnjakovic ) * app/xm.c (xm_load_mod): Close file before returning. (Rikard Bosnjakovic ) (XM_Load): dito * app/track-editor.c (track_editor_interpolate_fx): Added effect interpolator. At the moment only for volume and panning effects. Support for other effects is easily added. See README for instructions. * app/gui.c, app/playlist.c: After using spin buttons with mouse, the main window focus is immediately reset in order to enable menu shortcuts again. Rather hacky, but very useful for keyboard-only tracking. * app/xm-player.c (xm_player_playnote_fasttracker): If ch->cursamp is unitialized, do nothing. Fixes edX crash bug. * app/sample-display.c (XPOS_TO_OFFSET): Use temporary guint64 calcs to prevent overflow in case of large samples. Large samples are now edited without problems in SoundTracker. (sample_display_startoffset_to_xpos): (sample_display_endoffset_to_xpos): dito (sample_display_set_mixer_position): Move code that decides which parts of the widget to redraw to sample_display_draw(). * app/gui.c (playlist_position_changed): Choice of current song position changes currently edited pattern as well. (keyevent): Stop GDK_Tab and GDK_Return key press event signal from propagating to the entry widgets. * app/sample-display.c (sample_display_set_mixer_position): area.x + area.width must not exceed width of widget. * app/sample-editor.c: We load raw samples now (8/16 bits, signed/unsigned, little-endian/big-endian, mono/stereo). * app/xm.c (xm_save_xm_samples): Endianness conversion on saving. * INSTALL: Some words about the dangers of suid root installation. * app/Makefile.am (install-exec-local): Added warning due to suid root installation. * app/gui.c: Call statusbar functions while loading/saving modules. * app/xm.c: Don't call statusbar functions from this file. That's the job of app/gui.c. * app/xm.c (xm_load_xm_pattern): Accept length 0 patterns (create a dummy 1-length pattern for it). 2000-08-14 Michael Krause * app/gui-settings.c: "Save unused patterns" is default now. * app/gui.c (gui_free_xm): Clear xm pointer after freeing. 2000-08-12 Michael Krause * app/tracker.c (print_notes_line): Added color for selection background to colors array. (tracker_draw): Reordered drawing calls; less flickering during scrolling. (tracker_init): Added baselineskip variable, 0 for now. 2000-08-11 Michael Krause * Released v0.5.6 * app/menubar.c (menubar_block_mode_set): Disable menu bar callback when setting this in the program. 2000-08-08 Michael Krause * app/menubar.c: Renamed "Save Song" to "Save without samples". 2000-08-07 Michael Krause * app/gui-settings.c: Removed "show zeroes" option. 2000-08-02 Olivier Glorieux * Context menu in track editor (only Gnome) * Track line format in Config/GUI * Track editor: shift + del clears entire line (note + ins + vol + effect) 2000-07-30 Michael Krause * po: Updated it.po 2000-07-29 Olivier Glorieux * Block selection enhanced and mouse support. 2000-06-12 Michael Krause * po: Updated ja.po 2000-06-04 Tomasz Maka * app/sample-editor.c: added "set as loop" function. * app/sample-editor.c: added "half" and "double" buttons in volume ramp dialog to set 50% or 200% for left and right spinbuttons. * app/track-editor.[ch]: added track_editor_kill_notes_track function which kill all notes from cursor position to the end of pattern. 2000-05-27 Michael Krause * Released v0.5.5 * app/sample-editor.c (sample_editor_close_volume_ramp_dialog): Remember last used values. (sample_editor_open_volume_ramp_dialog): Allow negative values as well. 2000-05-20 Michael Krause * app/xm.c (xm_load_xm_instrument): Handling instrument header size correctly. ST loads a few more XMs where it complained about "instrument header size != 40" before. 2000-05-13 Michael Krause * app/sample-display.c (sample_display_set_mixer_position): Correct expose/draw behaviour now; calculating widget areas are redrawn in this function rather than in _draw() now. This was what I thought to be a bug in gtk+, but it wasn't :) 2000-05-08 Luc Tanguay * app/xm.h: added constant for XM min/max note volume. * app/midi.c: fixed problem when MIDI velocity is out of the range of the volume of a XM note. 2000-05-03 Luc Tanguay * app/midi-settings.[ch]: MIDI settings dialog box and load/save functions. * app/menubar.c: updated to add MIDI settings item in Settings menu. Save MIDI settings when "Save settings now" is clicked. * app/midi.c: updated to use new MIDI settings. The volume and/or channel info from the MIDI event can be turned on and off. The input client number or port can be changed. * app/main.c: load/save MIDI configuration settings. 2000-05-05 Tijs van Bakel * Added minor row highlighting feature. 2000-05-02 Tomasz Maka * Added option to update tempo/bpm spin buttons upon appearance of the Fxx command. * Added option to switch back to tracker page after loading / saving. 2000-05-01 Michael Krause * app/drivers/*-output.c (prefs_update_estimate): Use "milliseconds" instead of "microseconds", that's nearer to the truth (Rob Adamson). * po: Updated ja.po 2000-04-29 Michael Krause * Released v0.5.4 * Applied patch from Tomasz Maka ("save song" option). 2000-04-15 Michael Krause * app/scope-group.c (scope_group_new): Initialize update frequency from gui_settings structure. * app/track-editor.c (tracker_page_create): Initialize update frequency from gui_settings structure. * app/audio.c (mixer_mix_and_handle_scopes): Clipflag handling improved; keeps the flag on for a moment before switching it off again, so that clippings get visible, even if they are short. * app/sample-editor.c: Has its own timeout function to display current mixer position. * app/audio.c (mixer_mix_and_handle_scopes): Get mixer_position dumps at regular, configurable intervals. Defaulting to 50 updates per second for now. * app/file-operations.c (file_selection_dir_button): Check if something has been selected actually. Fixes occasional segfault when doing double-clicks in the directory list (reported by Giles). 2000-04-09 Michael Krause * app/mixers/kb-x86-asm.S: Added non-volramping version of mixer (gives another 15% speedup). * app/module-info.c (modinfo_pack_patterns): Reinitialize playlist widget after changing the pattern order table. * app/main.c (main): Print error message if no output driver is available and exit. (sigsegv_handler): Capture segmentation faults and try to rescue currently edited XM. * app/sample-editor.c (sample_editor_monitor_clicked): Return if no input driver available. * app/audioconfig.c (audioconfig_load_config): Works without input drivers. * app/main.c (main): Don't require input drivers. 2000-04-08 Michael Krause * app/xm-player.c (xmplayer_play_note): (xmplayer_play_note_full): Stop old sample before starting new one (prevents clicks when playing live on the keyboard). * app/mixers/kb-x86.c (kb_x86_setsmplpos): Declick this situation as well. 2000-04-01 Luc Tanguay * app/midi.c: MIDI input recorded only if track editor visible and edit mode enabled. 2000-03-30 Michael Krause * app/mixers/kb-x86*: removed unused code. 2000-03-29 Michael Krause * Released v0.5.3 * app/mixers/kb-x86.c (kb_x86_stopnote): Rewrote sample-change declicking to use a virtual second channel for each logical channel. See comments in the source code. (kb_x86_mix_sub): Disabled sample-end exponential declicking, because it sounds like shit on white-noise samples (i.e. hi-hats). See comments in kb-x86.c for why. * configure.in: Changed the autoconf stuff in order to check for gasp and disable build of the kb_x86 mixer if it's not available. We should now build on non-i386 platforms again. * app/mixers/kb-x86-asm.S: Fix for newer gasp (remove \(.data) and use .section .data instead). (kbasm_declick_postproc): Fix an assembler warning only issued by newer binutils than mine (there is no faddp %st(1),%st; only faddp %st,%st(1)). (kbasm_mix): Fixed the other related warning (changed call %ebp to call *%ebp, whatever sense that has). 2000-03-28 Michael Krause * app/mixers/kb-x86.c: Added linear ramp declicking upon sample change on channel (not only when the sample ends, but also when a new one is started immediately). Also making use of the asm routines' volume ramping functions to smoothen volume changes. Using 1ms ramps. Seems to be okay for all the mods I've listened to so far. * app/mixers/kb-x86.c (kb_x86_mix_sub): Reordered some 64bit calculations to optimize gcc output. Also fixed a typo bug in pingpong handling. * po: Updated ja.po 2000-03-27 Michael Krause * app/mixers/integer32.c: Fix non-i386 code (declare some variables properly). * app/sample-editor.c: Removed #include (hint by Nicolas Leveille) * Released v0.5.2 * po: Updated ja.po 2000-03-27 Luc Tanguay * app/midi.[ch], app/midi-utils.[ch]: code to add MIDI input. 2000-03-26 Michael Krause * app/gui.c (gui_init): Status bar is in a GNOME dock item now and can be moved around. Non-GNOME bar is at the bottom of the window by default. * app/gui-subs.c (statusbar_update): Added new argument "force_update" which forces a GUI update in order to make the "Loading XXX..." messages actually visible. * app/envelope-box.c (envelope_box_point_event): If a point is dragged out of sight, the canvas scrolls to the new location as soon as the button has been released. 2000-03-25 Michael Krause * app/envelope-box.c (envelope_box_canvas_event): Middle mouse button scrolls the canvas (just like the sample display widget). (envelope_box_canvas_event): Middle mouse button plus Shift zooms in and out. (spin_offset_changed): (envelope_box_delete_point): Adjust canvas max x. * Released v0.5.1 * po: Updated it.po. Added fr.po from Saïd Bougribate . * app/instrument-editor.c (instrument_editor_update): Disable "Save XI" button if no instrument loaded. * app/sample-editor.c: Remove all references to mixer_sample_word_length(). Assume 16bit. * app/sample-editor.c (sample_editor_reverse_clicked): Don't access sample pointed to by sample end, only the one before. * app/menubar.c: Added "Tracker" submenu to "Settings" menu, containing the 'cycle font' functions. * app/tracker-settings.[ch]: Tracker font selection - you can fill a list with your favourite fonts and then cycle through them with Keypad-Plus/Minus from within the tracker. You should use only fixed-width fonts for now.. 2000-03-22 Michael Krause * Applied patch from Tomasz Maka for status bar, timer, "show zeroes" and "channel numbering" options. 2000-03-19 Michael Krause * app/mixers/kb-x86.c (kb_x86_mix_sub): Optimizing for the non-filtered case. Gives a speed-up of roughly 15% on plain XMs. I expected more, though :) * app/mixers/kb-x86-asm.S: Created a big 'gasp' macro which can generate various versions of the mixer core routine without having to c'n'p eight different versions. 2000-03-14 Michael Krause * po: Updated ja.po. 2000-03-13 Michael Krause * Released v0.5.0 * app/audio.c (mixer_mix): Stereo to mono conversion works now. * app/xm.h: Added "treat_as_8bit" variable so that 8bit sample handling can still be faked to the user by the GUI. * app/mixer.h: Removed "type" field from st_mixer_sample_info. All samples are stored in 16bit format internally now. Removes a lot of duplicate code in sample-editor.c and in the mixers. 2000-03-12 Michael Krause * app/mixers/integer32.c: Adjusted for 16bit scope buffers. * app/audio.c: Using 16bit scope buffers now. Makes the mixer routines faster. * app/mixers/kb-x86.c, app/mixers/kb-x86-asm.S: Added scopes handling. * app/xm.c: Load XM's with odd number of channels as well (generate empty channel in that case). * app/mixers/kb-x86.c (kb_x86_updatesample): Can handle updates of loop limits while playing. * app/audio.c (driver_startnote): Don't call mixer if sample is empty. * app/audioconfig.c, app/audio.c, app/main.c: You can choose a mixer module now. 2000-03-10 Michael Krause * app/mixers/kb-x86.c (kb_x86_mix_sub): Added pingpong loop handling. Been listening to some of my favourite modules for quite some time now and I haven't discovered any more mixing bugs. And it sounds just great :-) * app/mixers/kb-x86-asm.S: Added backwards mixing function. 2000-03-09 Michael Krause * app/cheat-sheet.c: Added new effects. * app/mixers/kb-x86-asm.S (kbasm_mix): Enabled IT filter code. Sounds crappy. No wonder, this is a one-tap IIR filter. But IT just sounds like that. * app/audio.c (driver_set_ch_filter_*), app/mixer.h: Added player interface for filter commands. * app/xm-player.c (xm_player_playnote_fasttracker, xmpPlayTick): Don't set procins = 0 when procnot==97 (xmpPlayTick): Added filter commands. (xmpPlayTick): Some Mxx fixes. (all these changes taken from latest OpenCP CVS). * app/mixers/kb-x86.c: Looping code and no-loop code unified. Now bullet-proof with regards to extremely short loop lengths. Added declicking logic for sample ends. Still no ping-pong loop support. 2000-03-08 Michael Krause * app/mixers/kb-x86.c: Rewrote complete loop handling code in C and corrected it so as to deal with unmodified samples (the interpolation code would read three invalid sample values after the loop end otherwise). Actually, this required loop prediction logic to be written similar to integer32.c. This thing sounds great :-) 2000-03-06 Jason Nunn * app/xm.c: Soundtracker can now load compressed zip lzh gz bz2 modules. 2000-03-05 Michael Krause * app/mixers/kb-x86.c, app/mixers/kb-x86-asm.S: First try at incorporating Tammo Hinrich's brandnew FPU mixer code into SoundTracker. I have ported two versions, one with linear interpolation and one with cubic interpolation (both have code for the IT filters). Support for Ping-Pong loops, 8 bit samples and oscilloscopes is missing, though. 2000-03-03 Michael Krause * app/scope-group.c (scope_group_timeout): Add some hackery to deal with too short latencies and the scopes dropping out. * app/gui.c: The Win95 Menu key now plays all channels of the current row only. Nice ProTracker feature. * app/audio.c (audio_ctlpipe_play_pattern): Support "only1row" argument. Use edit-mode driver for the single row play feature. * app/xm-player.c: Hacked support for playing only one row of the current pattern and then stopping. * app/gui-settings.c (gui_settings_dialog): Renamed advance_cursor_in_fx_columns to "Advance cursor horizontally in effect columns". * app/gui.c, app/track-editor.c, app/gui-settings.[ch]: Added asynchronous IT-style editing where you can still edit patterns while playing them and the patterns don't scroll. Use "Escape" after starting playing the song or pattern to enable editing mode. "Space" still stops the song. * po: Updated ru.po. 2000-02-19 Michael Krause * app/mixers/integer32.c (integer32_setfreq): If freq is set too low, c->speed can become 0. Force it to be 1 in this case. * app/keys.c (keys_dialog): Initializing capturing variables. * app/audioconfig.c, app/gui-settings.c, app/transposition.c: Added Close button. * app/mixers/integer32.c: Removed ugly reverb effect. * app/keys.c: Added standard OK / Cancel / Apply buttons. 2000-02-13 Michael Krause * app/sample-editor.c (sample_editor_update): Reordered some initialization functions to avoid some triggered assert's. (sample_editor_page_create): Cleaned up selection widget mess. 2000-02-11 Michael Krause * po: Updated ja.po. 2000-02-09 Michael Krause * app/drivers/alsa2-input.c, app/drivers/alsa2-output.c: s/_plugin_/_channel_/ (as requested by Kai Vehmanen). 2000-02-07 Nicolas Leveille * app/track-editor.c: fixed handling of the advance_in_fx_column. * doc/hacking.texi: some fixes to make it a well-formed texinfo file. 2000-01-26 Michael Krause * Released v0.3.10 2000-01-22 Michael Krause * app/gui.c: "Escape" can be used to toggle editing on even if we're in playing mode (patch by Conrad Parker). * app/clavier.c, app/playlist.c: Also replace custom marshallers by gtk-provided ones. * app/sample-display.c: Replace my_2ints_marshal() by gtk_marshal_NONE__INT_INT (patch by Conrad Parker). 2000-01-21 Michael Krause * app/sample-editor.c (sample_editor_page_create): Rename "Clear" to "Clear Sample". * app/track-editor.c: "Insert" and "Backspace" key bindings (shift down / pull up track). (patch by Tomasz Maka) (track_editor_find_next_jazz_channel): Jazz edit logic extracted into a new function. Made more intelligent (takes care of channels that are still busy playing a sample). * app/sample-editor.c: Added "Save Region" button, which saves only the selected region as a WAV. (Tomasz Maka) 2000-01-19 Michael Krause * app/xm.c (XM_Load): setting restart position to song_length - 1 if out of range (FT2 does this). 2000-01-18 Michael Krause * app/track-editor.c (track_editor_set_num_channels): For the jazz edit mode, only display those buttons for channels that are actually available. * app/xm.c (XM_Load): Checking if restart_position is < song_length (setting rp to 0 otherwise). Encountered a funny XM from my favourite label "Rohformat" that has a bug here and subsequently crashed the tracker due to a failed assertion in the playlist widget. Which shows us that assertions are your friend. Shame on you, Ronny :-) * app/menubar.c: Even more menu bar translation hacking code. This really sucks. Thanks to Yuuki Ninomiya for discussing this with me. * po: Updated ja.po. 2000-01-15 Michael Krause * app/menubar.c (menubar_create): all_translated calculated correctly now (patch by Yuuki NINOMIYA). * app/sample-editor.c (sample_editor_copy_cut_common): Adjust loop data after cutting parts of the sample (patch by Conrad Parker). 2000-01-12 Michael Krause * Released v0.3.9 2000-01-12 Kai Vehmanen * Added ALSA pcm2 input and output plugins (ALSA 0.5.0 and newer) 2000-01-08 Michael Krause * po: Updated ja.po. * app/playlist.c (playlist_insert_clicked): (playlist_delete_clicked): Force emission of "song_length_changed" signal. Fixes crashes due to not updated XM structures (bug reported by globber). * app/sample-editor.c: Adds "Sel All" button, renames other buttons, clears up _update_sample() (patch by Conrad Parker). * app/keys.c (keys_fixup_xkeymap): Fix strange keymaps. Fixes problem a Polish user was having. 1999-12-26 Michael Krause * Released v0.3.8 * app/track-editor.c (track_editor_handle_keys): Delete key: delete note only if in note column. Otherwise delete corresponding effect column. * app/gui.c (current_instrument_changed): Don't set gui_cur*_name here at all. * app/sample-editor.c (sample_editor_update): Set gui_cursmpl_name correctly. * app/instrument-editor.c (instrument_editor_update): Set gui_curins_name correctly. * app/sample-editor.c: Can handle stereo samples now (extracts one channel or mixes left and right). Based on a patch sent in by Stefan Hager on 1999-08-22. Also remember last saved and loaded path. * app/gui-subs.c (file_selection_create): Add selection entry to list of text entry widgets to be captured. * app/menubar.c (menubar_create): (menubar_init_prefs): If not all menu bar strings could be translated, disable translation of the other menu bar strings completely and issue a warning (all this only for the non-GNOME version). * po: Updated ja.po. 1999-12-24 Michael Krause * app/file-operations.c (fileops_page_create): Disable certain dialogs in NO_AUDIOFILE case. * app/gui-settings.c: Save path for DIALOG_SAVE_MOD_AS_WAV. * app/playlist.c (playlist_restartpos_changed, playlist_songpat_changed): Only emit signal if value really changed. * app/playlist.[ch]: New functions _freeze_signals() and _thaw_signals(). * app/playlist.c (playlist_set_nth_pattern): If pos == current_position, set pattern spinbutton value as well. (playlist_set_restart_position): Set spinbutton value. (playlist_songlength_changed): Adjust limits of restart pos spin. * app/audioconfig.c (audioconfig_close_requested): Deinitialize cw_currentobject when closing window. (Conrad Parker striked back again) 1999-12-23 Michael Krause * app/sample-editor.c: "Reverse" function (patch by Conrad Parker). 1999-12-22 Michael Krause * Released v0.3.7 * app/gui-settings.[ch]: Added upper/lower case hex number selection. * app/tracker.c (note2string): Rewritten. Supports upper/lower case selection now. * app/keys.c (keys_load_config): Recognize EOF condition correctly. Fixes the bug magog@mnf.nu reported (keymap loading wouldn't work for people where the automatic key recognition fails). * app/gui.c (gui_init): Initialize notebook_current_page variable so that keyboard works again. 1999-12-20 Michael Krause * app/playlist.[ch]: First attempt at creating a Playlist widget. At the moment it looks just like the old stuff in the upper left corner of the main window, but it's easier to modify this way. * app/instrument-editor.c (instrument_page_create): "Load XI" and "Save XI" buttons working again instead of crashing. (instrument_editor_clear_current_instrument): Stop playing before clearing the instrument. 1999-12-19 Michael Krause * app/file-operations.c: Handy single-click directory browsing and loading of modules, samples and instruments. Also handles the corresponding menu items in a clever way. * app/file-operations.[ch]: New notebook page; embeds the various file requesters we have. 1999-12-10 Michael Krause * po: Updated ja.po. Added ru.po from Michael Shigorin . 1999-11-20 Michael Krause * app/menubar.c: "Clear Current" instrument function. * app/sample-editor.c (sample_editor_clear_clicked): update modinfo page. * app/instrument-editor.c (instrument_editor_save_instrument), app/menubar.c: "Save XI" function. * app/xm.h: Use guint16 instead of short for STEnvelopePoint elements. * app/xm.c (xm_load_xi): Endianness conversion for some XI header fields. Don't cut first four letters of instrument name. (xm_save_xm_instrument): Save endian-converted volfade. Urgs. (xm_save_xi): New function to save instrument in XI format. 1999-11-14 Michael Krause * Released v0.3.6 * app/xm-player.c: Added "player_looped" variable which indicates to the audio renderer that the song has either looped, the "Bxx" command has been used to jump to another pattern or the "F00" command has been issued in order to stop the song. Should prevent endless saving loops. 1999-11-13 Michael Krause * app/audio.c (audio_ctlpipe_render_song_to_file): This is a special version of audio_ctlpipe_play_song(), which always uses the file driver, hacks in the desired filename and does the priority juggling (we don't want to run the rendering at nice -14). * app/drivers/file-output.c: This driver uses libaudiofile to render a WAV file. It's not directly accessible from the audio config, use the special menu item in the "File" menu instead. * app/scope-group.c (scope_group_timeout): Return immediately if current_driver is NULL. Fixes a crash. 1999-10-30 Michael Krause * app/audio.c: Begun work on code to render modules into a WAV file. * app/main.c: Initialize effective group ID as well. * configure.in: Moved poll()/select() check in front of the library checks. * po: Updated it.po and ja.po. * app/track-editor.c (track_editor_paste_pattern): Fix pasting of short patterns into long ones (reported by Martin Andersson); also update pattern length spinbutton in that case. * app/transposition.c (transposition_transpose_notes_sub): Don't transpose KEYOFF note (reported by Martin Andersson). 1999-10-16 Kai Vehmanen * app/drivers/alsa-output.c: Changed default soundcard id to 0. 1999-10-09 Michael Krause * app/drivers/esd-output.c: Quick and dirty implementation of an ESD driver. Note that this will not be supported because of its latency. * configure.in: Added ESD check, updated ALSA check to handle --disable-alsa correctly. 1999-10-08 Michael Krause * Released v0.3.5 * app/track-editor.c: Selection handling rewritten for multi-track selections. * app/st-subs.c: Several new functions for dealing with parts of a track (duplicating, clearing, pasting). * app/xm-player.c: Replaced sintab[] by sin(). * app/drivers/oss-output.c: Added code to make use of the high-accuracy SNDCTL_DSP_GETOPTR call when available. Gets rid of all the gettimeofday() calls. The old code is available as a fallback, though. 1999-10-07 Michael Krause * doc/hacking.texi: Old `HACKING' file extended to talk a little bit about ST's internals. 1999-10-06 Michael Krause * app/st-subs.c, app/menubar.c, app/track-editor.c: Insert track / Delete track. * app/track-editor.c: Saving jazz edit settings on exit. * app/gui-settings.c, app/gui.c, app/sample-editor.c, app/instrument-editor.c: Remember last used paths and store them in a configuration file. * configure.in: Continue if sys/poll.h is found, but poll() isn't. * po: Updated it.po and ja.po; added es.po from German Jose Gomez Garcia 1999-09-26 Michael Krause * app/mixers/integer32-asm.[sh]: i386 Assembly mixing routines for 16bit samples. These are only marginally faster than the original C code, though. * app/mixers/integer32.c: lqmono renamed; cleaned up reverb code to use arrays. 1999-09-25 Michael Krause * Released v0.3.4 * app/gui-settings.c, app/tracker.c: Added tracker row highlighting. 1999-09-24 Michael Krause * app/keys.c: Replace some empty strings by NULL pointers (fixes localization bugs in the keys dialog). 1999-09-23 Michael Krause * soundtracker.desktop: Added pl and de entries. * Added de.po from Colin Marquardt, updated ja.po. 1999-09-10 Michael Krause * Released v0.3.3 * app/audioconfig.c, app/audio.c: Editing and Playback drivers can be selected independently now. * app/gui.c (gui_handle_standard_keys): Removed "Shift+Space" special-casing. * app/track-editor.c (track_editor_handle_column_input): Returning flag if key was handled. * app/menubar.c: Added cut'n'paste functions to the Edit menu, with configurable shortcuts; this should be useful to those using a window manager that maps Alt-F4 to "exit" :-) * app/track-editor.c: Split block / pattern / track cut'n'paste handling into simple functions. 1999-09-09 Michael Krause * app/tracker.c (tracker_realize): Attach style, just to be sure. * app/sample-display.c (sample_display_realize): Attach style to widget, fixes a strange crash when playing with the #chans spinbutton. * app/keys.c, app/module-info.c (modinfo_page_create): Call gettext() on some the strings only marked with N_(). * app/time-buffer.c (time_buffer_get): After g_list_remove_link(), call g_list_free() on the freed node. Fixes the memory leak people were seeing. *sigh* 1999-09-08 Michael Krause * app/mixers/lqmono.c (lqmono_mix): Fix mixbufsize setting. Arghl. 1999-09-07 Michael Krause * app/mixers/lqmono.c (lqmono_mix): Update mixbufsize after allocating new mixbuf. Use g_new() and g_free(). 1999-09-07 Yuuki NINOMIYA * app/main.c: Use gtk_set_locale() instead of setlocale(). * app/menubar.c: The bug is fixed that i18n is invalid in the menu bar when build without GNOME. 1999-09-06 Kai Vehmanen * app/drivers/alsa-*.[ch]: Fixed some timing bugs and made a few improvements to the config widgets. 1999-09-06 Michael Krause * soundtracker.desktop: Added GNOME menu entry. * Updated ja.po, added it.po from Yuri Bongiorno, added pl.po from Zbigniew Chyla. 1999-09-04 Michael Krause * Released v0.3.2 * app/cheat-sheet.[ch]: Added an overview of all XM effects. * app/gui-settings.c: Added "Use anti-aliased envelope editor" option. * app/envelope-box.c (envelope_box_canvas_paint_grid): Reduced left X coordinate of long lines from 30000 to 16384 (non-aa canvas would bug here). * HACKING: Contains some `rules' for developers. * README: Added soundtracker.org homepage and information about the mailing lists. * app/tips-dialog.c: The tips are stored in an array inside this file now -- translation is easier this way. * app/preferences.c (prefs_get_line): Remove trailing newlines from returned strings. * app/audioconfig.c (audioconfig_clist_select): Fix driver selection. 1999-09-03 Michael Krause * FAQ: Removed ALSA-related question. * Added ALSA patch from Kai Vehmanen. 1999-09-02 Giles Constant * Playback effects menu added * "Master Reverb" added to playback effects (code ripped and regurgitated from libmikmod) 1999-08-31 Michael Krause * po/ja.po: updated by Atsushi Yamagata. 1999-08-29 Michael Krause * Released v0.3.1 * soundtracker.spec (%build): Initalize LINGUAS variable before building, so that all catalogs get installed. * INSTALL, FAQ: Some words about the gtk+ update. * app/sample-editor.c: Added horizontal scroll bar under the sample display. * app/sample-display.c: Added "window_changed" signal which is triggered whenever win_start / win_length are changed. * app/sample-editor.c (sample_editor_perform_ramp): change ABS(*p++) into q=*p++;q=ABS(q); macros suck :-) * app/sample-display.c: Middle mouse button pans the display window. * configure.in (CFLAGS): Require gtk+-1.2.2. Fixes the popular "GUI freezes if you click the menu bar" bug. 1999-08-25 Michael Krause * app/sample-editor.c (sample_editor_ok_clicked): Don't call sampler_page_enable_widgets() (the widgets have already been destroyed). * app/gui.c (gui_handle_standard_keys): Handle Shift+Space manually even though it's in the menu; works around a (so I think) gtk+ menu bug. 1999-08-23 Michael Krause * app/sample-editor.c: Added "Volume Ramp" dialog, including a normalizing function. 1999-08-22 Michael Krause * app/menubar.c: Rewrote non-GNOME menubar code to use GtkItemFactory, because we can handle user-defined accelerators this way. Added underscores to all the menu texts. Added "Edit" menu, with "Jazz Mode Edit" toggle and "Transpositions" dialog launcher. * app/gui.c (keyevent): All the key handlers return a flag indicating if the key has been handled or not. If it has not been handled, don't stop the signal, but let gtk+ continue to handle it. We need this to support the menubar correctly. * app/track-editor.c (track_editor_handle_keys): Binding "Home" and "End" keys to start and end of current pattern, respectively. * app/transposition.[ch]: Added new "Transposition Tools" dialog with a lot of transposition and instrument number related functions. 1999-08-21 Michael Krause * app/instrument-editor.c: Capturing clavierkey_enter and _leave signals to display the note the mouse is over in a framed label. Also added the "Initialize" button which fills the whole samplemap with the current sample value. * app/clavier.c: Added _enter and _leave signals which are called when the mouse is over a key or when it leaves one. 1999-08-19 Michael Krause * app/sample-editor.c (sample_editor_save_wav): Use libaudiofile to save WAVs. If compiling without libaudiofile, disable "Save WAV" widget. * po/ja.po: Added japanese translation from Atsushi Yamagata. 1999-08-13 Michael Krause * Released v0.3.0 * app/track-editor.c (track_editor_handle_keys): Shift + Tab goes one channel to the left. * app/keys.c (keys_is_key_pressed): New function which finds out if a key is actually physically pressed. We need this hack to deal with X's auto-repeat. * app/gui.c (handle_standard_keys): Toggle jazz edit mode with shift-space. * app/track-editor.c: Jazz edit stuff -- core handling is in track_editor_do_the_note_key. * app/track-editor.c (track_editor_handle_keys): Send keyoff note if a key is released. (track_editor_do_the_note_key): Encapsulated the relevant code for the other notebook pages. * app/gui.c (keyevent): Handle key-release events as well. Also, rename some handle_keys() functions all over the source and add the `pressed' argument. * app/gui-subs.c (gui_update_range_adjustment): Moved this from track-editor.c 1999-08-12 Michael Krause * app/st-subs.c (st_num_save_patterns): Return value based on the recently introduced save_all_patterns setting. * app/gui-settings.c: "Save XM saves all non-empty patterns" (as opposed to only the used patterns) option. * soundtracker_tips.ja.txt: Added japanese translation of soundtracker_tips.txt from Atsushi Yamagata . * app/mixers/lqmono.c (lqmono_updatesample): We don't stop the sample if only the loop has changed. In that case, we bend the current pointer to the loop start! * app/sample-editor.c (sampler_page_handle_keys): If a key is pressed, the currently displayed sample is played, not the one from the sample map (using gui_play_note_full / xmplayer_play_note_full). * app/gui.c (gui_play_note_full): The same for the GUI thread. * app/xm-player.c (xmplayer_play_note_full): Permits more control over what sample gets played and at which position it starts. Man, xm-player.c really is a mess... * INSTALL: some more explanations for the binary packages. * Bumped version number to v0.3.0 * soundtracker.spec: Added RPM specfile from Arthibus Gissehel, updated to distribute the NLS stuff as well. * Made the whole application NLS-aware. 1999-08-09 Michael Krause * Released v0.1.11 * app/gui.c (gui_init): Menubar in non-GNOME version doesn't have a 4 pixel gap around it any longer. * app/envelope-box.c (envelope_box_set_envelope): Install dummy envelope if env pointer is NULL. * app/instrument-editor.c (instrument_editor_update): Initialize empty envelope if instrument is null. 1999-08-08 Michael Krause * app/xm-player.c: Replace 1+!linearfreq by 1+(!linearfreq&&!ismod) in some commands to fix excessive vibrato depth for ProTracker modules. * app/audio.c (audio_prepare_for_playing): Allocating scopebufs[] according to that new GUI option. * app/gui-settings.c: Added "Scopes Buffer Size" option. 1999-08-07 Michael Krause * app/sample-editor.c (sample_editor_save_wav): Fix "bytes per second" field in saved WAV header (Stefan Hager). * app/gui-settings.c: Load / save all settings, move "hexmode" and "advance cursor" options from menubar into this window. 1999-08-06 Michael Krause * app/gui-settings.[ch]: New dialog which contains GUI parameters. * app/preferences.c: Removed "Preferences" notebook page. * app/instrument-editor.c (instrument_editor_set_instrument): Doing most work in _update() instead of here; fixes bug where loading sample into fresh instrument wouldn't initialize the instrument editor page. (instrument_editor_load_instrument): Initialize sample editor. * app/scope-group.c (scope_group_timeout): rewritten to use the new scope buffer layout. * app/audio.c (audio_prepare_for_playing): renamed from mixer_prepare(). (mixer_mix_and_handle_scopes): rewritten to use a different scope buffer layout. * app/drivers/oss-output.c (oss_open): Find out number of fragments used by sound driver and make corresponding corrections to get_play_time(). Now the GUI is really synchronized to audio, even with large fragment sizes. 1999-08-05 Michael Krause * app/gui.c (gui_init): Set minimum possible "Jump" value to 0. * app/keys.c (keys_dialog): Initialize cw_combostrings (multiple window openings could leave the combo box empty) * app/xm.c (xm_load_xi): Bug fix: missing string termination (erikyyy again). * app/instrument-editor.c (instrument_editor_load_instrument): Close file after reading (thanks to erikyyy). 1999-08-02 Michael Krause * Released v0.1.10 * configure.in, acconfig.h, app/sample-editor.c: ST can now build without libaudiofile. In that case, you will not be able to load samples in the sample editor. * app/menubar.c: Added "Load XI" menu item to "Instrument" menu. * app/xm.c (xm_load_xm_instrument): Fix volfade loading. * app/instrument-editor.c: Add "Load Instrument" function. * app/xm.c (xm_load_xi): New function that loads an instrument in XI format (funny that it isn't the same instrument format as found in XM modules...) 1999-07-27 Michael Krause * app/keys.c (keys_init): Removed unnecessary "symspercode > 4" check. 1999-07-26 Michael Krause * app/tips-dialog.c (read_tips_file): Correct "can't find tips file" message. 1999-07-25 Michael Krause * app/drivers/oss-output.c (oss_make_config_widgets): Some layout beautification. Added delay estimation. 1999-07-21 Michael Krause * Released v0.1.9 * app/Makefile.am (soundtracker_SOURCES): Oh I hate it when that happens. I left out a source file from the distribution. Reinserted driver.h ... who said "brown paper bag"? * Released v0.1.8 * app/tracker.c (tracker_expose): Fixed a long-standing bug that an X expose wouldn't redraw the cursor line correctly. * soundtracker_tips.txt: Added some useful tips. * app/tips-dialog.c: I hope this helps reducing stupid questions. People don't read the README or the FAQ anyway :( This was grabbed from the GIMP source code. * app/drivers/oss-output.c: Added configuration widget / loader / saver. Basically the same as the preferences.c code in previous versions. This will need beautification! * app/audioconfig.[ch]: Audio configuration dialog. * app/preferences.c: Removed all audio-related preferences. These are handled by the drivers themselves now. 1999-07-20 Michael Krause * app/sample-editor.c: Rewritten for the new sampling driver interface. Cool feature: SoundTracker can sample while it's playing a module, if your sound card supports full duplex. * app/driver.h: Split into driver-out.h and driver-in.h; Sampling drivers are controlled by the main thread now instead of going through the audio thread and a sampling buffer. The "base class" of the driver classes is still in driver.h. * app/sample-editor.c (sample_editor_load_wav): Fixed 8 bit sample loading. 1999-07-18 Michael Krause * app/scope-group.c (scope_group_timeout), app/track-editor.c (tracker_timeout): Changed to use driver->get_play_time(). * app/time-buffer.c (time_buffer_get): Return NULL if list is empty. * app/drivers/oss-output.c (oss_poll_ready_playing): An OSS playing driver for the new driver concept. * app/audio.c (mixer_mix_and_handle_scopes): (mixer_mix): return pointer to end of mixed data. (audio_mix): This routine contains the "main loop", as seen from the driver's view, now. It calls the player and mixer modules. * Again some changes to the driver subsystem; this time not as deep as in the 0.0.11 changes, and the resulting code is a bit easier. The driver objects handle configuration on their own now, including own GTK+ widgets. Besides, the driver has a get_play_time(), which handles what audio_time() did before. 1999-07-15 Michael Krause * README, INSTALL, FAQ: Updated 1999-07-04 Michael Krause * Released v0.1.7 * app/sample-editor.c (sample_editor_update_mixer_position): Update sample display accordingly. * app/audio.c (mixer_mix_and_handle_scopes): Added mixer position time buffer. * app/scope-group.c (scope_group_scope_event): Right mouse button inverts global channel status. * app/xm.c (xm_load_mod): Call xm_init_locks(). * app/gui.c: Finally added clipping indicator LED again * app/audio.c (mixer_mix_and_handle_scopes): Added clipping indicator time buffer. * app/track-editor.c (tracker_timeout): Use time_buffer * app/audio.c (audio_play): Use time_buffer * app/time-buffer.c: New API to handle some audio->gui synchronization (pattern play position, mixer position, clipping indicator etc.) in a more generalized way. * Use gthread functions instead of pthread functions everywhere. 1999-06-29 Michael Krause * configure.in: Remove pthread check, add gthread module to gtk check instead. Install some stupid workaround to get the gthread stuff into the command line. 1999-06-28 Michael Krause * app/sample-display.c: Added "zero line". (sample_display_do_marker_line): Make marker lines more visible. Fix small bug that would cause the line at the rightmost position not to be displayed. * app/gui.c: Added pitchbend reset button. 1999-06-22 Michael Krause * app/preferences.c, app/menubar.c, app/track-editor.c: Added "Advance Cursor in FX Columns" toggle. * app/track-editor.c, app/gui.c: Some global variables clean-up. * app/tracker.c: Removed tracker_note_typed_advance(), added tracker_redraw_row(), tracker_redraw_current_row(), tracker_step_cursor_row() instead. * app/gui.c: Add a "Jump" spin button. Reduce default width of Instrument / Sample entries. 1999-06-13 Michael Krause * Released v0.1.6 * app/xm.c (xm_load_mod): Call st_clean_instrument() for each instrument to initialize it. (xm_check_envelope): Check envelope settings here.. * app/st-subs.c (st_clean_instrument): Set panning envelope to constant 32 (middle panning). * app/envelope-box.c: More work on the envelope editor. Not much code is left from the old version. 1999-06-12 Michael Krause * app/envelope-box.c: Using the GNOME canvas widget for the graphical envelope editor. Really easy to use. This is fun. Now, the very first real reason for a GNOME-only SoundTracker :) * app/sample-editor.c (sample_editor_load_wav): Checking for maximum sample length. (sample_editor_ok_clicked): Dito * app/xm.c (XM_Load): Add check for correct sample lengths (don't need to add a similar check for MOD's, cause MOD samples are generally limited to 1 << 17 bytes). * app/mixers/lqmono.c (lqmono_startnote): Check for maximum sample length. * app/mixer.h, app/mixers/lqmono.c: New mixer structure field "max_sample_length". * configure.in (gnome): Remove zvt from linker flags. 1999-06-08 Michael Krause * Released v0.1.5 * Makefile.am (bindist): Added rules for automatic generation of my binary distributions. This really saves me some work :) * app/xm-player.c: Some fixes from the current OpenCP CVS version: (xm_player_playnote_fasttracker): Set procins to 0 if procnot == 97. (xmpPlayTick): Set procins to 0 if procnot == 97. Vibrato depth is twice as deep in non-linear frequencies mode (replace 1 by 1+!linearfreq in some commands). Retrigger command fixes. * app/menubar.c: Synchronized non-GNOME menu with the new version. Optimized mymenu structure a bit. 1999-06-06 Michael Krause * app/sample-editor.c (sample_editor_load_wav): Display error if file is unreadable (don't crash). * app/drivers/oss.c, app/xm.c, app/preferences.c, app/sample-editor.c: Make use of new error handling functions. * app/gui.c (read_mixer_pipe): Handle new backpipe id for errors and warnings (display simple gnome requesters for now). * app/errors.[ch] (error_error_common): (error_error): (error_warning): New file, new functions to handle errors and warnings more conveniently for the user. * app/gui-subs.c (gui_update_spin_adjustment): Moved here from gui.c (gnome_error_dialog): New function * app/drivers/oss.c (oss_open): Added workaround for Linux bug (some sound drivers, when in use by another program, block when opened instead of returning EBUSY). Wrote a mail to Thomas Sailer. 1999-06-04 Michael Krause * app/menubar.c (menubar_save_settings_on_exit_toggled): (menubar_save_settings_now): Add "Save Settings now" and "Save Settings on Exit" (default: on) menu items. * app/gui.c (gui_init): Remove initialization of scopes display and backing store options. This is handled in menubar.c:menubar_init_prefs() automatically. * app/menubar.c: Move "Display Scopes" and "Use Backing Store" toggles from preferences page to the Settings menu. Add these settings to the preferences structure. "Use Backing Store" is off by default now, so that the tracker doesn't use too much CPU time for first-time users. * app/track-editor.c (track_editor_handle_column_input): (track_editor_handle_hex_column_input): (track_editor_handle_semidec_column_input): Handling decimal instrument column correctly. * app/tracker.c (init_display): (print_notes_line): Line numbers dec/hex display. * app/menubar.c (menubar_hexmode_toggled): (menubar_init_prefs): Added hex/dec switch to menu bar. * app/preferences.c (prefs_get_line): (prefs_get_int): (prefs_put_int): (prefs_load_config): (prefs_save_config): Loading and saving preferences on startup and exit now. * app/tracker.c (note2string): Instrument numbers can be displayed in decimal or hexadecimal. 1999-05-28 Michael Krause * Released v0.1.4 * app/keys.c (keys_init): Clear unused entries in xkeymap[] (Jon Forsberg ). 1999-05-26 Michael Krause * Released v0.1.3 * app/menubar.c (mymenu): Adjusted menus for non-GNOME version. 1999-05-16 Michael Krause * Installed glibc-2.1.1pre2 today, and... well, I had to recompile some parts of my system, but the sound pause bug is gone now! Seems like this was really a glibc-2.0.7pre3 bug. Life is fun again, now that I've fixed one of the most disturbing bugs in my system :-) * FAQ: Mentioning the problem here as well... 1999-05-11 Michael Krause * Got a new machine today, a 400MHz K6-2. The sound pause bug introduced with kernel 2.2.3 is still present. I really start believing this is not a soundtracker bug. Besides that, the new computer rocks... 1999-05-02 Michael Krause * app/instrument-editor.c (instrument_page_create): Add the clavier widget and necessary callback functions. (instrument_editor_clavierkey_press_event): Modify samplemap appropriately. * app/clavier.c (clavier_draw_label, clavier_set_key_labels): Added these functions. (clavier_expose): Clear before drawing. (clavier_realize): Initializing color GC's. (clavier_init): Initializing font. * app/clavier.[ch]: This is Simon Kågedal's Clavier widget, taken from clavier-0.1.3. * app/st-subs.c (st_clear_pattern): Clear all the allocated track space, not just the visible part. (st_clear_track): optimized * app/menubar.c: Added "Delete unused instruments", "Find unused pattern", "Copy current to unused pattern", "Clear unused patterns", "Pack patterns" and "Optimize module" functions to the menu. Menu structure changed. Some key shortcuts added. (menubar_handle_keys): Handling key shortcuts here. * app/gui.c (change_current_pattern): Renamed to gui_change_current_pattern() and made public. * app/st-subs.c (st_copy_pattern, st_is_empty_track, st_is_empty_pattern, st_find_first_unused_and_empty_pattern, st_is_pattern_used_in_song): New functions. (st_dup_pattern): Using st_copy_pattern(). Initializing alloc_length field. * app/module-info.c: Removed "Delete unused instruments" button. (modinfo_copy_to_empty_pattern, modinfo_find_empty_pattern, modinfo_clear_unused_patterns, modinfo_reorder_patterns, modinfo_pack_patterns, modinfo_optimize_module): New functions. * Released v0.1.2 1999-05-01 Michael Krause * app/gui-subs.c (gnome_warning_dialog): Pure GTK+ implementation. * app/gui.c (gui_enable_sampler_mode): Fixes for the new GUI layout in 0.1.1. * app/menubar.c: Added menubar_enable() and menubar_disable() * app/gui-subs.c (gnome_app_ok_cancel_modal): Moved from menubar.c to this file. * app/gtkspinbutton.[ch]: Removed. * app/gui-subs.c (gui_subs_create_slider): (gui_put_labelled_spin_button): Use extspinbutton_new() instead of gtk_spin_button_new() * app/extspinbutton.[ch]: New widget which inherits from GtkSpinButton. The old gtkspinbutton size adjustment hack has been implemented in a clean object-oriented fashion now. * app/track-editor.c (tracker_page_handle_keys): Added support for keyoff note. * app/keys.c: Added keyoff note key. 1999-04-30 Michael Krause * app/xm.c (XM_Load): Trap xm_load_xm_instruments errors (xm_load_xm_instrument): Return error codes instead of doing exit(1). * app/instrument-editor.c (instrument_page_handle_keys), app/module-info.c (modinfo_page_handle_keys), app/sample-editor.c (sampler_page_handle_keys): Adjusted for new keys handling * app/gui.c (gui_play_note): Signature changed; takes note number instead of KeySym now. * app/track-editor.c (tracker_page_handle_keys): Adjusted for new keys handling. (track_editor_handle_column_input): Renamed from insert_note(); the note column is handled at the beginning of tracker_page_handle_keys() directly. * app/keys.[ch]: New file name of notekeys.[ch]. Some fixes to handle more key combinations. 1999-04-28 Michael Krause * app/st-subs.c (st_clean_song): Initialize xm->flags to zero. 1999-04-27 Michael Krause * app/notekeys.c: Nearly rewritten for the configuration dialog. Still a little bit buggy, and it can't save the settings, but better than nothing for now. * app/gui-subs.c (build_option_menu): Taken from testgtk.c (get_clist_in_scrolled_window): Moved from module-info.c 1999-04-23 Michael Krause * app/notekeys.c: Start designing notekeys configuration dialog. * app/menubar.c: Added "Settings" / "Keyboard Configuration". 1999-04-22 Michael Krause * app/audio.c: Added #include for glibc 2.1.1 1999-04-19 Michael Krause * app/track-editor.c (insert_note): (tracker_page_handle_keys): accept capital letters as key accelerators as well. Don't worry about additional modifiers. * app/sample-editor.c: Use mixer_sample_word_length instead of accessing type field directly. (sample_editor_copy_cut_common): remove_clicked() extended to handle the copy'n'paste buffer. Cut, Remove and Copy call this one. (sample_editor_convert_sample): added (sample_editor_resolution_changed): use convert_sample() (sample_editor_paste_clicked): implemented (sample_editor_page_create): enable cut, copy and paste buttons. (sample_editor_resolution_changed), (sample_editor_copy_cut_common), (sample_editor_paste_clicked): remove set_sample(NULL) calls; fixes crashes while unlock()ing (oops :D). (sample_editor_init_sample): added * app/mixer.h (mixer_sample_word_length): New helper function. 1999-04-18 Michael Krause * app/gui.c (programlist_initialize): This function could destroy the restart position value. Fixed. 1999-04-13 Michael Krause * app/audio.c (audio_raise_priority): Replace nice() call by sched_setscheduler() call to get realtime priority. Now soundtracker crashes the whole machine randomly while playing :( Using nice() only for now. You can remove the "&& 0" condition to test the realtime scheduler if you want. * app/audio.c: Added #include 1999-03-22 Michael Krause * configure.in, INSTALL: audiofile 0.1.5 is sufficient. 1999-03-21 Michael Krause * Released v0.1.1 * INSTALL: Updated requirements. * app/module-info.c (get_clist_in_scrolled_window), app/gtkspinbutton.c: Remove gtk+-1.0 special-casing. * configure.in: Require gtk+-1.2.0. I really need some new functions like gtk_table_resize() and gtk_window_set_modal(). 1999-03-20 Michael Krause * app/envelope-box.c (envelope_box_new): Removed put_labelled_spin_button in favour of gui-subs.c/gui_put_labelled_spin_button() * app/gui-subs.c (gui_put_labelled_spin_button): Additional argument 'callbackdata' * app/menubar.c: Added non-GNOME implementations of the menu bar and the dialog functions; this is based on Peter Zelezny's xchat-0.9.2/menu.c. * app/scope-group.c: ScopeGroup is now a GTK+ widget and uses a table to layout the scopes in two rows. Hmm, yes. Much better :-) * app/sample-display.c (sample_display_size_request): Reduced minimum height to 32 pixels. * app/gui.c (gui_init): Reworked layout of the upper part of the main window. Hmm, yes. Much better :-) * app/gui-subs.c (gui_subs_create_slider): Returns GtkWidget instead of adding it to a destbox. * app/gui-subs.h: Added type field to gui_subs_slider through which you can disable the hscale in addition to the spinbutton. * app/preferences.c (prefs_page_create), app/instrument-editor.c (instrument_editor_update): Use gui_subs_set_slider(). * app/gui-subs.c (gui_subs_set_slider_value): (gui_subs_get_slider_value): Added new functions for opaque handling of "gui_subs_slider"s. * app/preferences.c: Moved Doublebuffer and Scopes toggles to the preferences page. 1999-03-19 Michael Krause * app/sample-editor.c (sample_editor_loopradio_changed): Only update sample.looptype if it has really changed. * app/track-editor.c, app/sample-editor.c, app/instrument-editor.c, app/envelope-box.c, app/gui.c, app/module-info.c: Update xm->modified at all relevant places. * app/xm.h (xm_get_modified, xm_set_modified): Helper functions to access the modified flag. * app/gui.c (file_selected), app/menubar.c (menubar_clear_clicked): Implemented confirmation dialogs. * app/menubar.c: Added menu bar containing functions which don't have to be available as buttons. Moved some stuff from gui.c here. (menubar_quit_requested): This was gui_quit_requested(), and now it asks the user before actually quitting (in case the module has been modified). * app/gui.c (gui_init): Added GNOME code (some the above GNOME stuff is also inspired by Greg S. Hayes' work). * configure.in: Added GNOME check; copied from xchat-0.9.2 because it includes a --disable-gnome option which is essential for me. * app/xm.c (xm_load_mod): Add some more sanity checks to the loop point initialization. 1999-03-16 Michael Krause * app/sample-editor.c (sample_editor_load_wav): Sample loader uses the audiofile library now. Kinda works, but I didn't really understand the audiofile API. * configure.in: Added check for audiofile library. 1999-03-07 Michael Krause * app/audio.c (mixer_mix_and_handle_scopes): Call mixer->mix with scopebufs == NULL when scopes are disabled in the GUI. * app/mixers/lqmono.c (lqmono_mix): Only write scope data if scopebufs != NULL. * app/scope-group.c: Made scopes_on variable global. 1999-03-02 Michael Krause * app/audio.c (audio_thread): Don't die if poll() returns EINTR. * app/Makefile.am: Added install-exec-local rule which sets the setuid bit on the soundtracker executable. * app/main.c (main): Handle user ID's correctly. SoundTracker can now safely run setuid root; the mixer thread will run at a high priority then. * The audio subsystem is now automatically informed of loop setting changes; you don't have to play the song to initialize the sample settings any longer. You can also load, edit and save samples without having to stop playing. * app/xm-player.c (xmplayer_play_note): Don't modify channel->nextsamp (fixes segfault). * app/sample-editor.c: Lock the sample before changing it in any way and tell the mixer about it. * app/mixers/lqmono.c (lqmono_mix): Lock the sample we are currently mixing. * app/xm-player.c (channel): Removed nextsampid and cursampid * app/xm.c, app/sample-editor.c, app/xm-player.c: Update for new sample structure * app/lqmono.c: Updated; removed the big sample info array. * app/audio.c (driver_startnote): Changed signature to use pointer to st_mixer_sample_info * app/xm-player.c (xmplayer_init_playing): Removed sample initialization, it's not needed any longer * app/audio.c: Removed driver_setsample * app/mixer.h, app/xm.h et al: Sample structure updated; encapsulated mixer relevant data. Added synchronization mutex. * app/audio.c (mixer_mix): Removed some stupid debugging code. * app/driver.h, app/drivers/oss.c: Removed some superfluous code that I've prepared to handle self-mixing soundcards. I'm not going to implement this feature in the near future, and it needs more code changes anyway, so I'm removing it completely. * app/xm.c (xm_load_mod): Load more module formats (patch by Maik Naeher) 1999-02-17 Michael Krause * Released v0.1.0 * app/preferences.c: Added sliders adjusting the update frequency of the scopes and the pattern scrolling. * app/scope-group.c (scope_group_set_update_freq): * app/track-editor.c (tracker_set_update_freq): New functions * app/xm-player.c: * app/audio.c: * app/scope-group.c: Channels can be muted again by toggling its scope button. * app/module-info.c (modinfo_page_handle_keys): Added Linear/Amiga frequency choices, and ProTracker mode toggle. Besides that, you can play notes on the keyboard in the module info page now. * app/gui.c: Added Tempo and BPM sliders. * app/gui-subs.c (gui_subs_create_slider): Generic slider/spinbutton combination. * app/gui.c: Moved general GUI helper functions to gui-subs.c * app/xm-player.c (xmplayer_init_play_song): When starting playing at song position 0, reinitialize tempo and bpm. * app/audio.c (audio_play): (audio_ctlpipe_set_songpos): * app/gui.c (gui_update_player_pos): (read_mixer_pipe): Proper "set song position" synchronization. (read_mixer_pipe): gui_enable(1) when playing has stopped. (gui_enable): Handling some more widgets here. 1999-02-11 Michael Krause * app/gui.c (init_xm): Call tracker_set_num_channels(). * app/tracker.c (tracker_set_num_channels): New function. tracker.c is independent of the global xm pointer now. 1999-02-06 Michael Krause * app/xm-player.c (xmplayer_final_channel_ops): Don't handle envelopes, vibrato and volfade in ProTracker mode. (PlayNote): Split function into two, one for PT and one for FT, to avoid excessive ismod checks. (xm_player_playnote_protracker): Remove unnecessary statements, dealing with keyoff, sustain and so on.. 1999-02-05 Michael Krause * app/xm-player.c (PlayNote): Moved note initialization to xm_player_start_note(). (xmpPlayTick): Moved glissando handling to xm_player_handle_glissando(). (PlayNote): Moved frq initialization to xm_player_get_note_freq(). (channel): Renamed ArpNotes to ArpOffsets. (xmpPlayTick): Arpeggios for ProTracker modules use curtick % 3 as arpeggio index. (xm_player_get_note_frq): For ProTracker modules we fetch the correct period value from the new table 'protracker_periods', which was taken from the original ProTracker replayer. (xmplayer_final_channel_ops): For ProTracker modules we calculate the frequency out of the period according to the Amiga Manuals. All these changes result in a perfect mod replay: long samples no longer get out of sync as they do in most (all?) other PC module players. (xmpPlayTick): E10 and E20 are no-ops in ProTracker (they don't take the last-used value and slide around). (freqrange): Fixed frequency range check for ProTracker modules. 1999-01-30 Michael Krause * app/envelope-box.c: Removed frame 1999-01-28 Michael Krause * app/instrument-editor.c: Added volfade and vibrato widgets * app/xm.c (xm_load_xm_instrument): vibtype sanity check * app/gui.c: Moved some GUI helper functions from preferences.c 1999-01-21 Michael Krause * Released v0.0.13 1999-01-20 Michael Krause * app/gui.c (gui_update_player_pos): Moved gdk_flush() call from the beginning of read_mixer_pipe() to the end of this function. 1999-01-16 Michael Krause * app/gui.c: Disabled clipping LED. 1999-01-15 Michael Krause * app/preferences.c: Preferences page for main window notebook. Playing parameters can be set independently for editing and playing mode. Added necessary extensions to the audio subsystem (driver->setprefs() function). We don't load & save the preferences yet. * app/scope-group.c, app/track-editor.c, app/audio.c (audio_time), app/gui.c (gui_audio_tick): Don't let audio subsystem issue ticks into the backpipe; use time stamps in public variables (audio_playerpos_*) instead. * app/gui.c (gui_update_player_pos): Return if set_songpos_count != 0. * app/audio.c (audio_play): Using last_synctime_driver instead of player time as time stamp. 1999-01-14 Michael Krause * app/drivers/oss.c (oss_open): fragsize is returned as a byte count by OSS, but was used as a sample count in the code (this resulted in oss_poll_ready_playing() blocking at the write() call). Fixed. Playback should be smoother now. 1999-01-11 Michael Krause * app/track-editor.c (tracker_timeout): (tracker_start_updating): (tracker_stop_updating): (tracker_set_time): New functions, mostly c'n'p from scope-group.c. Pattern and song position are updated independent of audio player ticks now; this should give smoother and more exact display updates when using large fragment sizes. * app/gui.c (gui_update_player_pos): This is not done from track-editor.c since some of the variables should belong to gui.c only. * app/audio.c (audio_play): Added ring buffer for player position. 1998-12-29 Michael Krause * app/xm-player.c (xmpPlayTick): Did the same change to the Fine VolSlide effects. 1998-12-26 Michael Krause * app/xm-player.c (xmpPlayTick): Bug fix: The A00 effect (VolSlide with argument 0) in ProTracker modules does nothing, in FastTracker modules it uses the previously used argument (mod.Stardust Memories by Jester). 1998-12-19 Michael Krause * app/xm.c (XM_Load): A failed header length checking doesn't prevent loading the rest of the module. SoundTracker versions earlier than 0.0.12 could save the wrong value in here and 0.0.12 couldn't load those modules. * app/xm-player.c: Ported KB's OpenCP fixes from 981126. This mostly affects PlayNote(), vibrato and some strange envelope sustain handling fix. 1998-12-13 Michael Krause * Released v0.0.12 * app/sample-display.c (sample_display_draw_main): Removed assertion check against s->width, which was frequently triggered when changing the number of channels. We're just returning immediately now. * app/gui.c (read_mixer_pipe): PLAYING_STOPPED case: enabling GUI and setting pattern position only if GUI was disabled. 1998-12-12 Michael Krause * app/module-info.c (modinfo_delete_unused_instruments): This function is triggered by the new button "Delete unused instruments" and deletes all unused instrument in the current XM. * app/st-subs.c (st_instrument_used_in_song): New function, finds out if an instrument is used in an XM. * app/gui.c (programlist_songpos_changed): Don't change editing pattern when browsing in the playlist. * app/gtkspinbutton.c (gtk_spin_button_insert_text), app/module-info.c: gtk+-1.1.7 compatibility fixes. * app/xm-player.c (xmplayer_play_note): Clear channel data before initializing new note. * app/sample-editor.c (sample_editor_update): Check current_sample against NULL and disable the editor if there's no sample. * app/xm.c (XM_Save): Saving amiga frequencies flag if set. * app/sample-editor.c: Sampling is working again. Enabled 'Monitor' button. 1998-12-11 Michael Krause * app/drivers/oss.c (oss_open): Added sampling support. * app/audio.c (audio_lock, audio_unlock): Added locking primitives. (audio_sampled): Added basic support for sampling; limited to 16bit 44.1kHz mono sampling currently. 1998-12-10 Michael Krause * app/xm-player.c (xmplayer_final_channel_ops): If ismod is set, pan channels 0 and 3 to the left and channels 1 and 2 to the right (Amiga stereo support is very digital: left or right :D) * app/mixers/lqmono.c: Support stereo mixing. * app/audio.c (mixer_mix): Fixed stereo-to-mono conversion. * app/xm-player.c (xmplayer_final_channel_ops): ch->chFinalPitch == 0 is only wrong for Amiga frequencies. * app/gui.c (play_song, play_pattern): Moved GUI disabling calls to read_mixer_pipe(). (gui_enable): renamed from gui_enable_widgets_for_play_mode(). * app/gui.h: New convenience macros (GUI_ENABLED, GUI_EDITING). Renamed playing to gui_playing_mode and exported enum's. * app/gui.c (read_mixer_pipe), app/track-editor.c, app/audio.c: Note playing and editing fixed. 1998-12-09 Michael Krause * app/scope-group.c (scope_group_create): Setting group spacing to 0. Making buttons insensitive. * app/xm-player.c (xmplayer_final_channel_ops): Test ch->chFinalPitch against 0 before setting sample frequency. Fixes crashes on a lot of modules. * app/xm.c (xm_save_xm_pattern): Empty patterns are saved with data length 0. 1998-12-08 Michael Krause * app/xm.c: Various bug fixes and note saving compression: (xm_save_xm_instrument): Always use 40 as sample header size. (xm_put_xm_note): xm_save_xm_note() renamed, renders into a buffer now instead of into a file. Added note compression. (xm_save_xm_pattern): Rewritten for xm_put_xm_note(). (XM_Save): put_le_32(xh + 60, ...) instead of put_le_16(). XM's saved by ST can be loaded into MikIT and FastTracker now :) (XM_Load): get_le_32(xh + 60, ...) instead of get_le_16(). 1998-12-03 Michael Krause * Released v0.0.11-fixes patch * app/audio.c: #include needed for glibc2. * app/module-info.c: Replaced GTK_HAVE_FEATURES_1_1_5 check by explicit check of gtk version. 1998-12-01 Michael Krause * Released v0.0.11 * app/audio.c, app/gui.c: Clipping indicator working again. * app/audio.c (driver_sync): Pitchbend can now be changed while playing without crashing. * app/gui.c (gui_init): Added pitchbend slider. * app/gui.c (gui_adj_amplification_changed): Updated for the new audio.c. * app/audio.c, app/xm-player.c: Added keyboard note playing. Entered notes are played on the channel the cursor is positioned in, not in a hidden internal 33rd one as v0.0.10 and earlier did it. 1998-11-30 Michael Krause * app/scope-group.c (scope_group_timeout): Fixed the remaining bugs (rewritten). * app/sample-display.c (sample_display_set_data): These functions can copy the provided sample into their own buffer now. 1998-11-29 Michael Krause * app/scope-group.c, app/audio.c, app/mixer.h: I finally have working scopes again. The new code updates the scopes independently of the audio thread, so the scopes are updated frequently even if the audio fragment size is large. There are still some bugs in here, and the code needs cleanup, but that doesn't matter at the moment. * app/sample-display.c (sample_display_new): Widget can be created without the loop and selection editing properties; it is basically the scope widget in that case. * Removed scope.c and scope.h; sample-display.c offers the same functionality. 1998-11-28 Michael Krause * app/xm-player.c, app/audio.c, app/drivers/oss.c: Updated to use the new polling scheme. * app/driver.h: Added general fd poll() functions for the driver modules. 1998-11-25 Michael Krause * Whoo. I see that my just recently updated Emacs has a new date style. And I always wondered who's interested in the exact day time in a ChangeLog :) * app/module-info.c (get_clist_in_scrolled_window): New function to accomodate to the new clist handling in gtk+-1.1.5 Mon Nov 23 16:59:20 1998 Michael Krause * app/drivers/oss.c (oss_open): Rewrote to use the new mixer interface. Tries more playback formats now (unsigned and signed 16 bits little endian / big endian as well as unsigned / signed 8 bit formats) and can also play stereo (there's just the mixer which has to make use of this :D) * app/sample-display.c (sample_display_realize): * app/scope.c (scope_realize): * app/tracker.c (tracker_realize): Removed gtk_style_detach() calls. They caused a crash on some people's machines and were useless anyway. * app/audio.c: Added sound format conversion layer between driver and mixer. Also added extra layer between XM player and the driver so we can handle things like pitchbending and balancing transparently. Pitchbending variable works perfectly. Thu Nov 19 19:48:28 1998 Michael Krause * app/xm-player.c (xmpPlayTick): Added some last changes to make amiga frequencies work. * app/xm.c (xm_load_mod): Set xm->flags to IS_MOD and AMIGA_FREQ. (XM_Load): Set xm->flags to AMIGA_FREQ if necessary. * app/xm.h: Add flags field Wed Nov 18 17:44:23 1998 Michael Krause * app/poll.c: poll() emulation via select(). Cleans up the #ifdef mess in some of the other files. * app/sample-editor.c: Sampling temporarily disabled until support for that is in the driver module layer. * app/endian-conv.h: Using direct memory access on i386 machines. * app/xm.c (xm_save_xm_instrument): Save vibrato and volfade settings Sat Nov 14 17:33:15 1998 Michael Krause * app/xm.c (xm_load_xm_instrument): Loading vibrato and volfade settings. * app/xm.h: New fields for vibrato settings and volume fadeout. * I've just finished a first working version of the new player system. Also I've decided to replace my own XM player by the one from OpenCP. The following is a rough description of the changes: * app/audio.c: This file contains the audio handler thread (it will also handle sampling). It controls the driver and player (Note that the player is not (yet) modularized) and the mechanism for communicating with the main thread. * app/driver.h: Contains driver module definitions. The driver is the primary interface which audio.c deals with. I've written it with auto-sequencer devices like GUS and AWE in mind, but this might still need some tuning, as I don't own such a card. * app/drivers/: Contains available driver modules. A driver module supplies functions for playing and sampling data. * app/mixer.h: Mixer module definitions. Mixer functions are usually only called by the driver module which needs the mixer. The rest of SoundTracker doesn't care whether a mixer is needed or not. * app/mixers/: The available mixer modules. lqmono.c contains the mixer routines as found in 0.0.10. * app/xm-player.c: XM player routines. xmplayer_play() calls the driver functions directly and returns when driver->sync() blocks. Alright, this is the new OpenCP player. It's supposed to be the most FastTracker compatible player out there, despite of the chaotic source code :) Had to rewrite all the envelope handling and note / effect retrieval. * app/main.c (main): The former mixer communication pipe is allocated here; also we currently initialize the audio thread with the OSS driver and the lqmono mixer. * app/mixer.c: Is now obsolete. Sat Nov 7 14:19:40 1998 Michael Krause * Starting to think about a modular audio driver and mixer system. Sun Nov 1 12:37:39 1998 Michael Krause * Released v0.0.10 * app/xm.c: Doing charset conversion in the XM loader and saver. * app/recode.c: New file; converts characters between IBM PC and ISO Latin1 encodings (derived from the recode source code). * app/mixer.c (mixer_fill_buffer): Changed some loop calculations. I'm not yet completely happy with this piece of code. * app/gui.c: Added amplification slider and clipping indicator. * app/xm.c (xm_load_mod): Initialize sample only if length > 0. Check for correct loop parameters. * app/track-editor.c (vscrollbar_changed): Block patpos signal handler before tracker_set_patpos(). Fri Oct 30 20:13:58 1998 Michael Krause * app/sample-editor.c: WAV loader and saver do endianness conversion and handle 8 and 16 bit samples. Added relnote spin button, resolution display and sample length display. Telling the mixer to stop playing before doing destructive sample operations. (sample_editor_ok_clicked): Initialize sample type. Thu Oct 29 18:30:29 1998 Michael Krause * app/mixer.c (mixer_fill_buffer): Added amplification and signal clipping. * app/xm.c (xm_load_mod): Initialize s->panning to 128. * app/mixer.c (mixer_fill_buffer): Added support for 8 bit samples. * app/xm.c: Added support for 8 bit samples in XM loader/saver and MOD loader. * app/sample-display.c (sample_display_draw_data): Added support for 8 bit sample data. * app/xm.h (struct STSample): renamed 'type' to 'loop' and added new field 'type' which indicates 16 or 8 bit sample. * app/sample-display.c (handle_motion): Bug fixed: end points could be equal to the starting points. Wed Oct 28 15:11:43 1998 Michael Krause * app/sample-editor.c: Added some assertions to make sure that the loop and selection ends are always to the right of the start points. * app/sample-display.c: Made the whole source a lot more readable and fixed a good number of bugs. Thanks to Darin Ohashi for finding one of them. * configure.in: Check for select() only if poll() is not found. * app/gtkspinbutton.c (gtk_spin_button_configure): Fixed some compatibility #ifdef's and compiler warnings. * app/mixer.c: Use poll() instead of select() when available. * gui.c, sample-editor.c, configure.in: Doesn't fail when poll() is not available -- falling back to select(). Mon Oct 26 11:51:14 1998 Michael Krause * app/xm.c: Cleaned up and made all routines endianness- and typesize-safe. * app/st-subs.c: New file; moved some of the more general functions from xm.c to this place. * configure.in (CFLAGS): Added -Wall. And I always wondered why I got so few compiler warnings in the last few days :) * app/xm.h: Got rid of the num_patterns and num_instruments fields. These were only relevant to xm.c anyway. Sun Oct 25 18:18:05 1998 Michael Krause * app/mixer.c (player_tick): Instrument without note retriggers volume and envelope now. * Released v0.0.9 * TODO: Added a lot of things. * README: Added a list of keyboard mappings. * app/mixer.c (player_tick): Added ea* and eb* effects. * app/xm.c (MOD_Load): Hacked together a ProTracker module loader. The finetune conversion is not really okay I think. * app/endian-conv.h (get_be_16): Added. * app/tracker.c (tracker_draw): only draw when widget is visible. * app/gui.c (read_mixer_pipe): case STOPPED: tracker_set_pos(). (play_song): change_current_pattern(). * app/mixer.c (stop_playing): Set player_songpos and player_patpos. Wed Oct 21 20:02:24 1998 Michael Krause * app/gtkspinbutton.c: Hacked in some #if's to make it compile with gtk+ 1.0.x. Sun Oct 18 12:40:01 1998 Michael Krause * app/xm.c (XM_load_pattern): Do endianness conversion (whoops, forgot that yesterday :D) and clear allocated channels. (XM_load_note): optimized. Sat Oct 17 14:43:35 1998 Michael Krause * Released v0.0.8 * app/mixer.c (mixer_main): PLAY_NOTE: reset globalvolume and smplcount only if we aren't playing the module. * app/sample-editor.c: Added "Clear", "Show All", "Zoom in" and "Zoom out" operations. (remove_clicked): fix loop positions after cutting. * app/sample-display.c: Unified semantics of the loop, selection and window end: The loop, selection and window end offsets point to the first sample that is not to be played in the loop / that is not victim of a forthcoming sample operation / that is not to be displayed. * app/xm.h: Replaced STSample.looplen by loopend and changed the rest of the source code accordingly. * app/mixer.c (init_note_freq): Don't reset sample when initializing 3xx effect. * app/sample-editor.c (load_wav, save_wav): Do endianness conversion. * app/endian-conv.h: Moved the endianness routines from xm.c to this place. * configure.in: Remove checks for 'const' and 'inline'. We only compile on gcc anyway. * app/xm.c (byteswap_le_16_array): Actually implemented this routine. Untested. (XM_Load): Amiga frequencies are ignored but loading continues. Do endianness conversion. (XM_save_samples): Clear sh[] before working. (XM_load_instrument): Issueing a warning if vibrato or volume fadeout are used. Do endianness conversion. * app/sample-editor.c: Displaying selection data; reset button added. Fri Oct 16 14:46:44 1998 Michael Krause * app/sample-display.c (handle_motion): Almost rewritten. Should be working as expected now. * app/sample-editor.c (sample_editor_display_loop_changed): Handling the 'loop_change' signal. * app/sample-display.c: The loop points can be set with SHIFT-button1/3. Added signals 'selection_changed' and 'loop_changed'. * app/sample-editor.c: Added loop type/start/end controls. * app/gtkspinbutton.c: Modified version of the original GTK+ spinbutton widget which adjusts its width so that the number is always displayed completely. * app/xm.c (XM_load_samples): Initialize loopstart/-end if the loop flag is off. (st_clean_sample): Initialize looplen to 1. * app/gui.c (gui_put_labelled_spin_button, gui_update_spin_adjustment): made non-static. * app/sample-editor.c (sample_editor_update): After sampling into an empty sample slot, all the editing widgets are enabled now. Wed Oct 13 12:00:00 1998 Michael Krause * app/sample-display.c: Started to restructure this thing so that the drawing speed is optimized. Still a bit buggy. Mon Oct 12 12:36:37 1998 Michael Krause * app/xm.c (XM_Save): Save real module name instead of "". * app/module-info.c: Added "Module Info" page to the main window notebook, containing a list of all the instruments and samples and the song name. * app/xm.c (XM_new_pattern): Initialize p->alloc_length. Stupid bug. * app/sample-editor.c (ok_clicked, load_wav): exchange calls to st_clean_sample() and st_clean_instrument(); add extra call to st_clean_sample() to set sample name. (sample_editor_update): Set sample name text entry to new value. * app/gui.c (offset_current_sample, handle_standard_keys): Added ctrl-GDK_Up and ctrl-GDK_Down for sample switching. * app/track-editor.c (tracker_page_handle_keys): Check modifier keys in GDK_Up and GDK_Down. * app/gui.c (gui_init): Moved current_instrument_create() and editing_status_create() into this function. Added sample selector. (gui_get_text_entry): new function, automatically installs the keyboard capture handling on a newly created text entry. Sat Oct 10 11:22:25 1998 Michael Krause * app/gui.c (read_mixer_pipe): Checking startstop_fifo against 0 before decrementing. Prevents a crash when the mixer stops playing via the F00 command. * Released v0.0.7 * Using autoconf/automake for configuration now. Moved all the sources into the 'app' subdirectory. * mixer.c: Using explicit gint32's instead of int's in some fields of struct channel. * gui.c (play_song), (play_pattern): Call play_stop() first. * mixer.c (player_tick): Don't handle more than xm->num_channels channels. * gui.c, xm.c (st_set_num_channels): Number of channels is adjustable now. * gui.c (init_xm): Call change_current_pattern() instead of tracker_set_pattern(). New parameter 'new_xm'. * gui.c, xm.c (st_set_pattern_length): Pattern length can be changed now. * mixer.c: Replaced all occurences of the word 'period' by 'pitch'. A period is inversely proportional to the frequency; the value called period in the XM docs is not. 'Pitch' isn't exactly the right word either, but 'period' is worse because it has another meaning in the Amiga context. * gui.c (handle_standard_keys): Added GDK_Multi_key as a synonym for GDK_Control_R. Fri Oct 9 00:15:22 1998 Michael Krause * mixer.c (period_to_speed): Checking for integer overflow. Very short periods (very high frequencies) can't be rendered currently. The mixer code should be using long longs I guess. Some crashes are prevented for now. Thu Oct 8 22:22:50 1998 Michael Krause * gui.c (wait_for_player): Using new startstop_fifo variable to synchronize with the mixer thread. Fixes crash when loading XM after playing notes with the keyboard. * gui.c (free_xm): New routine which resets all subsystems of the tracker before calling XM_Free(). Fixes crash when loading XM while in sample editor with samples playing. * mixer.c (mixer_fill_buffer): Fixed loop handling again; first sample is now loopstart << ACCURACY, last sample is loopend << ACCURACY - 1. * gui.c (change_current_pattern): Call mixer_set_pattern even when we're not in playing_pattern mode. Can now change pattern while playing a mod, just like in PT. * mixer.c (mixer_main), gui.c (read_mixer_pipe): (programlist_songpos_changed): Added set_songpos_fifo variable to avoid GUI feedbacks when fast-forwarding the song position. Wed Oct 7 20:03:35 1998 Michael Krause * gui.c (programlist_songpos_changed): change_current_pattern() called even if playing. (change_current_pattern): Change editing_pat first, then call the other routines. Call mixer_set_pattern() only if in playing pattern mode. Tue Oct 6 17:37:14 1998 Michael Krause * gui.c (spin_editpat_changed): Call change_current_pattern() even if playing. * gui.c, xm.c: Added "Clear Song" and "Clear All" operations. * gui.c: Added restart position widget to the program list. * gui.c: Instrument name changes are stored. * mixer.c, gui.c: Position updates are handled together with the scopes in MSG2MAIN_TICK. Visual updates are a bit smoother on my slow machine now. And the scope buffers are double-buffered, so the scope is more in time with the sound. * mixer.c: Fixed period range checking to use OpenCP's values. * Makefile: Moved $(LDFLAGS) to the end of the line; some people's compilers complain otherwise. Mon Oct 5 17:10:03 1998 Michael Krause * mixer.c (player_tick): Handling playlist restart position now, adding support for position jumps. Added dxx effect. * xm.c: Added the framework for endianness conversion. Rewrote load_samples and save_samples to use the new "length" semantics. * xm.h: STSample.length / loopstart / looplen are measured in samples now, not in bytes. This removes the necessity for a lot of ">> 1" in the rest of the code. Sun Oct 4 17:29:10 1998 Michael Krause * Released v0.0.6 * sample-editor.c (daemon_thread): renamed daemon() to daemon_thread() so that we can compile on glibc2 systems :) * xm.c (XM_load_samples): if an XM has samples with loop length 0, disable the loop completely. * mixer.c (mixer_fill_buffer): fixed loop handling so that it works on very short loops, too. New routine is not yet optimized. * Released v0.0.5 today (first public release)