Commit Graph

222 Commits

Author SHA1 Message Date
5684185+vsariola@users.noreply.github.com
b6ec5d1a04 style(tracker): group code into less number of files 2023-10-20 01:50:38 +03:00
5684185+vsariola@users.noreply.github.com
ff8e662857 refactor(tracker): move NoteStr and NoteAsValue to gioui package 2023-10-20 01:40:14 +03:00
5684185+vsariola@users.noreply.github.com
a60814bab7 refactor(tracker): make struct to hold all per voice data in Player 2023-10-20 01:26:41 +03:00
5684185+vsariola@users.noreply.github.com
0ce5ca3003 refactor(tracker): send Songs/Patches etc. from Model to Player 2023-10-20 00:54:03 +03:00
5684185+vsariola@users.noreply.github.com
14a0306064 docs(tracker): add go doc comments to Player 2023-10-19 23:28:57 +03:00
5684185+vsariola@users.noreply.github.com
d342fb860b refactor(tracker): put all recording data into struct Recording 2023-10-19 23:28:57 +03:00
5684185+vsariola@users.noreply.github.com
453f45c48a refactor(tracker): rename SongPoint to ScorePoint etc. 2023-10-19 22:28:44 +03:00
5684185+vsariola@users.noreply.github.com
50ccfe03da refactor(tracker): split Volume to PeakVolume and AverageVolume 2023-10-19 22:28:44 +03:00
5684185+vsariola@users.noreply.github.com
1a8a317464 docs(tracker): improve package go doc comments 2023-10-19 22:28:44 +03:00
5684185+vsariola@users.noreply.github.com
9073adadb3 fix(tracker/gioui): scroll bars move in sync with the cursor 2023-10-19 14:25:03 +03:00
5684185+vsariola@users.noreply.github.com
b772940b1f fix(tracker/gioui): preset menu scrollbar fits on screen 2023-10-19 14:22:19 +03:00
5684185+vsariola@users.noreply.github.com
d6abb14b08 feat(tracker/gioui): add scrollbars to menus 2023-10-19 14:07:09 +03:00
5684185+vsariola@users.noreply.github.com
64270eaf68 refactor: rename FindSendTarget to FindUnit 2023-10-19 13:31:34 +03:00
5684185+vsariola@users.noreply.github.com
ff4155a08e fix(tracker): notify player when recovery file is loaded 2023-10-19 10:59:07 +03:00
5684185+vsariola@users.noreply.github.com
b6815f70cb feat: remove unreleased parameter from Play function
The VMs now release all envelopes by default, so this mechanism was
useless / did not actually start them as unreleased even when you
thought they did.
2023-10-19 10:42:20 +03:00
5684185+vsariola@users.noreply.github.com
0a67129a0c refactor!: rename SynthService to Synther and related types
The -er suffix is more idiomatic for single method interfaces, and
the interface is not doing much more than converting the patch to a
synth. Names were updated throughout the project to reflect this
change. In particular, the "Service" in SynthService was not telling
anything helpful.
2023-10-18 17:32:13 +03:00
5684185+vsariola@users.noreply.github.com
0187cc66ec refactor: move Wav and Raw methods as members of AudioBuffer 2023-10-18 14:40:16 +03:00
5684185+vsariola@users.noreply.github.com
38e9007bf8 refactor: use [][2] as audio buffers, instead of []float32
Throughout sointu, we assume stereo audiobuffers, but were passing
around []float32. This had several issues, including len(buf)/2 and
numSamples*2 type of length conversion in many places. Also, it
caused one bug in a test case, causing it to succeed when it should
have not (the test had +-1 when it should have had +-2). This
refactoring makes it impossible to have odd length buffer issues.
2023-10-18 13:51:02 +03:00
5684185+vsariola@users.noreply.github.com
bb0d4d6800 docs(tracker): update comments 2023-10-17 20:31:57 +03:00
5684185+vsariola@users.noreply.github.com
462faf5f4e feat: save recovery data to disk and/or DAW project 2023-10-17 10:26:36 +03:00
5684185+vsariola@users.noreply.github.com
97a1b2f766 perf(tracker): use json recovery files instead of yaml for less garbage
The yaml marshaling and umarshaling seems to allocate a lot of memory. When saving the recovery file, the memory use jumped up by hundreds of megabytes. Switch to using json marshaling for the recovery file, as it does waste memory so badly. Binary marshaling was also an option, but its nice in emergency situations that the user can glance the recovery file and perhaps, with some effort, recover stuff from it. Json is good enough for manual recovery during emergency situations.
2023-10-15 11:11:26 +03:00
5684185+vsariola@users.noreply.github.com
4899b027ff perf(tracker/gioui): use pointer receivers in numericupdown to avoid garbage 2023-10-15 09:49:30 +03:00
5684185+vsariola@users.noreply.github.com
b455ef0f3c feat(tracker): add reverb presets for delay unit
The options are stereo, left and right. Similar to oscillator sample settings, if you tamper with these, it starts to show "custom". Used some of the generic features of go1.18, so had to update go.mod to require go1.18.
2023-10-14 14:58:38 +03:00
5684185+vsariola@users.noreply.github.com
f5eeabe5f3 fix(tracker/gioui): respawn window if VSTI accidentally closes it 2023-10-08 16:27:17 +03:00
5684185+vsariola@users.noreply.github.com
61ebd89da0 fix(tracker): set PrevUndoType to "" when undoing and redoing 2023-10-08 15:59:33 +03:00
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