Commit Graph

247 Commits

Author SHA1 Message Date
5684185+vsariola@users.noreply.github.com
7ee43f199a fix(tracker): make sure undo & redo stack never grow beyond limit 2023-10-02 15:43:52 +03:00
5684185+vsariola@users.noreply.github.com
048de55f00 fix(tracker): save recovery in GUI thread and reduce recovery size&frequency 2023-10-02 13:40:26 +03:00
5684185+vsariola@users.noreply.github.com
ce7c8a0d3e feat(tracker): add menu to load instrument presets
The presets are embedded in the executable, so there's no additional files.

Closes #91
2023-10-01 18:54:50 +03:00
5684185+vsariola@users.noreply.github.com
df2605fddd feat(tracker): save recovery file regularly & load it on startup 2023-10-01 14:45:45 +03:00
5684185+vsariola@users.noreply.github.com
12f15d1066 fix(tracker/gioui): make VSTI close event wait that gioui actually quit 2023-10-01 12:42:12 +03:00
5684185+vsariola@users.noreply.github.com
00850c8001 code/text formatting and cleaning up whitespace 2023-09-24 10:47:54 +03:00
5684185+vsariola@users.noreply.github.com
14e548c4c1 fix(tracker/gioui): CopyUnitBtn marshaled unit incorrectly 2023-09-20 14:57:23 +03:00
5684185+vsariola@users.noreply.github.com
231e055faf fix(gioui/tracker): song files were not truncated when opened for writing (closes #103) 2023-09-02 14:32:23 +03:00
5684185+vsariola@users.noreply.github.com
de3f4d987f fix(tracker/gioui): hitting enter/return to focus on the instrument name editor 2023-09-01 22:51:59 +03:00
5684185+vsariola@users.noreply.github.com
c7d79035ce fix: copying and pasting units messed selection and Ctrl-C actually cut 2023-08-27 16:05:11 +03:00
5684185+vsariola@users.noreply.github.com
c040bdedee fix: when just saving a file, open the file in write mode (fixes #99) 2023-08-27 11:29:55 +03:00
5684185+vsariola@users.noreply.github.com
a0bcac3904 fix: check that MIDI triggered instrument is within patch limits (#98) 2023-08-27 11:10:54 +03:00
5684185+vsariola@users.noreply.github.com
33221b5203 fix: upgrade to latest gioui (closes #97)
Latest gioui has the fix that enter key up event alone does not trigger a button
2023-08-27 10:59:11 +03:00
5684185+vsariola@users.noreply.github.com
61776f397a feat: add ability to select & move multiple units (closes #71) 2023-07-21 00:39:45 +03:00
5684185+vsariola@users.noreply.github.com
5884a8d195 feat(tracker/gioui): add tooltips
Currently, only iconbtns and numeric updowns have tooltips. Closes #84
2023-07-19 22:31:29 +03:00
5684185+vsariola@users.noreply.github.com
cafb43f8c8 feat(tracker/gioui): add ability to scroll parameter values (closes #92) 2023-07-18 23:28:20 +03:00
5684185+vsariola@users.noreply.github.com
5a2e87982e feat(tracker): add ability to copy, cut and paste units 2023-07-18 17:17:50 +03:00
5684185+vsariola@users.noreply.github.com
ccc8dc906f fix(tracker): guard for malformed songs in SetSong 2023-07-17 23:51:14 +03:00
5684185+vsariola@users.noreply.github.com
c421748db9 fix: if fetching BPM from vsti host fails, keep the previous BPM as defined by the user 2023-07-17 23:26:11 +03:00
5684185+vsariola@users.noreply.github.com
d2ddba3944 fix(tracker/gioui): mouse clicks passed through the new unit button. closes #93 2023-07-08 16:07:17 +03:00
5684185+vsariola@users.noreply.github.com
3da62179e4 refactor(tracker/gioui): use gioui/x/explorer instead of home made file explorer 2023-07-08 15:12:45 +03:00
5684185+vsariola@users.noreply.github.com
8c4f7ee61f refactor(tracker/gioui): update gioui to newer version 2023-07-08 11:57:19 +03:00
5684185+vsariola@users.noreply.github.com
9ef271f1a8 fix(tracker/gioui): display voice states crashed if somehow patch had more than 32 voices 2023-07-06 23:49:40 +03:00
5684185+vsariola@users.noreply.github.com
cd00067da8 change(tracker): default delay to use BPM-tracking and make reverb similar to 4klang 2023-07-06 23:49:40 +03:00
5684185+vsariola@users.noreply.github.com
248ba483c6 feat: add ability to import 4klang patches and instruments 2023-07-06 23:47:55 +03:00
5684185+vsariola@users.noreply.github.com
9efddd673d fix(tracker): when reassigning unit IDs, update send targets. fixes instrument loading 2023-05-13 17:56:13 +03:00
5684185+vsariola@users.noreply.github.com
cd700ed954 feat!: implement vsti, along with various refactorings and api changes for it
The RPC and sync library mechanisms were removed for now; they never really worked and contained several obvious bugs. Need to consider if syncs are useful at all during the compose time, or just used during intro.
2023-05-13 17:56:13 +03:00
kendfss
7eb473e67e fix: instrumenteditor starting expansion state 2022-03-23 21:45:09 +01:00
vsariola
a8f8911f03 refactor(sointu): Change the signature of Play to accept SynthService instead of Synth
This is more logical as every single use of Play started with compiling the patch of a song with a SynthService.
2021-08-30 22:24:42 +03:00
vsariola
60e4518230 feat(tracker, gioui): make + and - keys adjust order numbers
Holding ctrl down while adjusting the order number keeps the song effectively same, but juggles pattern numbers. Useful for reorganizing song.
2021-05-15 14:19:46 +03:00
vsariola
7885c306ee feat(tracker, gioui): make a Editor for inputting the unit type manually
The keyboard shortcuts were too wonky, so removed them altogether. Had to remove also unit wrapping from model (now it just clamps the parameter to the current units) as it did not play nice with the new editor.

Closes #70.
2021-05-13 19:50:23 +03:00
vsariola
ede70380f2 feat(tracker, gioui): add menu item to remove all unused data from song
Reorders patterns and cuts them short and the order list short to remove all unused / unuseful (all holds) patterns.
2021-05-13 00:00:54 +03:00
vsariola
8a94058d44 feat(gioui): make split bars snap to window edges 2021-05-12 23:14:48 +03:00
vsariola
a2723829da refactor: implement Order and Pattern types: slices returning default values for out of bound indices 2021-05-12 12:08:55 +03:00
vsariola
ce6e5d4942 tracker: move gmdlsentries.go generation under tracker/generate folder 2021-05-12 09:18:48 +03:00
vsariola
e649b9ec54 fix(gioui): unnamed instruments on tracks with multiple voices crashed.
Closes #62.
2021-05-08 16:40:06 +03:00
vsariola
5aa16b4a97 feat(tracker, gioui): add the ability to reorder / drag tracks in order list 2021-04-24 22:47:45 +03:00
vsariola
442715334e feat(gioui): add grab cursor to DragList 2021-04-24 22:31:32 +03:00
vsariola
b2b15f825d refactor(tracker, gioui): get rid of EditMode, use gio focus instead 2021-04-24 22:07:56 +03:00
vsariola
e544e955cb refactor(gioui): move common button code to two functions 2021-04-20 18:21:21 +03:00
vsariola
c0a0a5d501 refactor(gioui): move common iconbutton code to a function 2021-04-20 17:57:36 +03:00
vsariola
8ba9fb1f00 fix(gioui): make editors lose focus when Escape is pressed. 2021-04-19 22:46:35 +03:00
vsariola
56ceafdaa6 tracker: make a slightly more sensible default song 2021-04-19 22:19:51 +03:00
vsariola
40d4d6576e feat(sointu, tracker, gioui): add a comment field to the instrument 2021-04-19 21:24:29 +03:00
vsariola
147e8a2513 feat(gioui): implement own file save / load dialogs
Removes the dependency on sqweek/dialogs, which was always very buggy.

Closes #12
2021-04-18 19:10:41 +03:00
vsariola
ac95fb65c4 fix(gioui): prevent crashing when loading malformed song 2021-04-17 23:30:13 +03:00
vsariola
485b783341 feat(gioui): add buttons to save and load instrument 2021-04-17 23:08:12 +03:00
vsariola
2a9284473a feat(tracker, gioui): add little "*" symbol to indicate if a pattern is unique 2021-04-17 14:56:05 +03:00
vsariola
1b4f1a8c5e feat(tracker): add menu item to export .wav
Also refactor the common functions for .wav export into base package so that both sointu-play and tracker can use same functions.
2021-04-17 14:24:05 +03:00
vsariola
7893c1d1ed feat(tracker, gioui): add confirmation dialogs before quit/new/load song
This should avoid accidentally losing all work by destroying window.
2021-04-16 22:42:51 +03:00
vsariola
0767440e60 fix(tracker): kill all notes except effects when starting play / skipping play position
Fixes #45.
2021-04-12 20:15:55 +03:00
vsariola
ce52aa0ee9 feat(tracker, gioui): add error message if vuanalyzer detects a NaN
Closes #50
2021-04-12 20:05:43 +03:00
vsariola
68a50247bd feat(tracker): make shift + left/right take 1 octace / 12 semitone steps in oscillator transpose
Closes #37
2021-04-12 19:25:11 +03:00
vsariola
b4705c941f feat(tracker, gioui): add visual indicators to show which instruments are playing
Closes #44
2021-04-11 17:51:34 +03:00
vsariola
1eca428801 feat(gioui): add confirmation dialog when deleting instrument
Closes #5
2021-04-11 16:46:07 +03:00
vsariola
a639e0c5e6 fix(gioui): in note editor, only step when user actually enters a note 2021-04-11 15:54:58 +03:00
vsariola
8c7349de12 fix(tracker): prevent crashing when deleting notes without order list entry
Closes #59
2021-04-10 19:21:48 +03:00
vsariola
4ce6abe1e8 fix(tracker): the mod function could return negative values with mod(-1,1)
Never copy-paste code from the internets
2021-04-10 19:17:38 +03:00
vsariola
d04895144b feat(gioui): add scrollbar to the order list 2021-04-10 19:16:04 +03:00
vsariola
847967c7b7 feat(gioui): add single letter track titles to order list 2021-04-10 18:09:20 +03:00
vsariola
8e55132ddd fix(tracker): the tracker has been displaying the musical names for notes incorrectly 2021-03-22 19:36:00 +02:00
vsariola
8ef6de7ffd feat(tracker): add titles showing which instrument(s) belong to a track
Refer #43
2021-03-14 21:14:48 +02:00
vsariola
5daf81f331 fix(tracker): avoid NaNs in volume analyzer better 2021-03-14 18:19:13 +02:00
vsariola
b6283cd13e feat(tracker): add button to make note off and use "1" also as the key event
Closes #54
2021-03-14 18:10:29 +02:00
vsariola
01226a2910 feat(tracker, gioui): add ability & button to delete tracks.
Refer #46.
2021-03-11 22:26:42 +02:00
vsariola
87f373370e feat(gioui): add empty cell grid lines to order list
Refer #48.
2021-03-11 22:14:33 +02:00
vsariola
8a5d337775 feat(tracker): auto-create patterns when adding notes to empty area
Closes #53.
2021-03-11 21:58:56 +02:00
vsariola
adc12dde4f fix(tracker): when creating a new track, a pattern full of noteoffs was created
Creating such patterns is unnecessary and was a relic of the past. We can leave the order completely uninitialized and let the user fill it as needed.

Related to #54.
2021-03-11 21:45:00 +02:00
vsariola
99dbdfe223 feat: add the ability to use Sointu as a sync-tracker
There is a new "sync" opcode that saves the top-most signal every 256 samples to the new "syncBuffer" output. Additionally, you can enable saving the current fractional row as sync[0], avoiding calculating the beat in the shader, but also calculating the beat correctly when the beat is modulated.
2021-03-09 23:52:33 +02:00
vsariola
c7448699b6 fix(gioui): disable file load / save dialogs in browser
This at least gets the program to compile into js as sqweek does not work in browser, but we really need to look for a long term solution. How to load & save songs in browser?
2021-03-04 11:21:20 +02:00
vsariola
079d5a9ef1 feat(tracker): wrap cursor in the song instead of clamping it
Closes #49
2021-03-04 11:21:19 +02:00
vsariola
a035845b81 reorganize things into different packages 2021-03-02 17:19:45 +02:00
vsariola
e46ece3648 feat(tracker): add rudimentary GUI for adjusting delay times 2021-03-01 20:42:37 +02:00
vsariola
adcf3ebce8 feat(sointu, tracker,...): restructure domain & tracker models
send targets are now by ID and Song has "Score" part, which is the notes for it. also, moved the model part separate of the actual gioui dependend stuff.

sorry to my future self about the code bomb; ended up too far and did not find an easy way to rewrite the history to make the steps smaller, so in the end, just squashed everything.
2021-02-28 14:24:54 +02:00
vsariola
fd1d018e82 feat(tracker): adding and deleting order rows, also backward and forward deletes 2021-02-18 22:48:48 +02:00
vsariola
a27494e17d feat(tracker): implement alerts that display useful notifications / errors
In particular, we show notification after the user has copied something to clipboard (#34) and when there is a patch compile error (#38).
2021-02-17 23:30:07 +02:00
vsariola
319fc5e853 fix(tracker): stack labels display error whenever the stack is not exactly 0 2021-02-17 17:51:06 +02:00
vsariola
2f0c9a9f04 tracker: improve the layout of unit editing buttons 2021-02-17 17:42:21 +02:00
vsariola
692615c76d feat(tracker): add scroll bars to lists
Closes #8
2021-02-17 17:10:38 +02:00
vsariola
12d5d392c5 tracker: only one "hex" checkbox in the tracker title bar
Closes #28
2021-02-17 17:10:38 +02:00
vsariola
da6cc0a2b8 fix(tracker): only add NoteOffs when keyjazz key is released during notetracking 2021-02-16 23:30:59 +02:00
vsariola
b095b799a0 feat(tracker): clicking on the parameter label when the parameter is already selected resets the parameter
Closes #17
2021-02-16 23:25:21 +02:00
vsariola
d49e0a6bc8 fix(tracker): accept '<' and '>' keycodes for changing octave too
Probably fixes issue #13, but cannot test as I don't have a Mac.
2021-02-16 22:53:19 +02:00
vsariola
b21bade6b5 tracker: make key.DeleteForward & key.DeleteBackward do same thing
Closes #9
2021-02-16 22:45:30 +02:00
vsariola
c3788e1a24 feat(tracker): highlight beats / every second beat in the tracker
Closes #30
2021-02-16 22:42:32 +02:00
vsariola
2853509d1d fix(tracker): CurrenParam / CurrentUnit were incorrectly updated
Closes #21, #20
2021-02-16 22:04:15 +02:00
vsariola
09a9f072cc feat(tracker): copy instrument to & paste from clipboard
Closes #25
2021-02-16 21:45:25 +02:00
vsariola
088bbc6c58 feat(tracker): add a rudimentary VU-meter to show master volume, peaks & clipping
Closes #16
2021-02-16 17:27:21 +02:00
vsariola
962d0f1152 fix(tracker): when the track editor was scrolled, the jump pointer event regions were wrong 2021-02-16 17:27:21 +02:00
vsariola
803184cbe7 feat(tracker): add step parameter to advance cursor after edit
The step is currently in the song panel; might consider putting it somewhere else.

Closes #6
2021-02-16 17:27:21 +02:00
vsariola
366a05c766 tracker: remove old unused code 2021-02-16 08:47:48 +02:00
vsariola
c781c24ae6 feat(tracker): add F1-F8 shortcut keys for changing editmode / playing
Related to #14
2021-02-15 23:57:35 +02:00
vsariola
25a4bfd5ac tracker: adjust the default split ratio to be more sensible
Closes #23
2021-02-15 23:31:00 +02:00
vsariola
94205b9ab2 feat(tracker): implement more proper menus, with Undo&Redo
Closes #24
2021-02-15 23:05:06 +02:00
vsariola
a470452e99 feat(tracker): add menu button for Paste
Closes #26
2021-02-15 19:30:18 +02:00
vsariola
712a4c927b fix(tracker): clicking anywhere outside a menu closes it but does not trigger other action
Closes #27
2021-02-15 19:21:54 +02:00
vsariola
070833ed9c feat(tracker): shortcut-N starts a new song project
Closes #29
2021-02-15 19:15:05 +02:00
vsariola
83d6277ae6 feat(sointu, tracker): find the send targets ports easily and use this to figure slider maximums dynamically
There is a new helper function in Sointu to find the target of a send. In future, compiler and others should be refactored to use this function to find send targets.

Closes #31
2021-02-15 19:11:13 +02:00
vsariola
0f136d544c fix(tracker): when instrument panel is clicked, only change EditMode when instruments
Changing to always EditUnits was causing unnecessarily going back from EditParameters.
2021-02-15 18:14:59 +02:00
vsariola
e93190892b fix(tracker): reduce visual jitter when adjusting unit parameter sliders
The solution is not to force the slider value when the user is dragging it.

Closes #33
2021-02-15 18:11:36 +02:00